Browse Source

test(webframe): add basic test case

OJ Kwon 7 years ago
parent
commit
690a9e9483
1 changed files with 6 additions and 0 deletions
  1. 6 0
      spec/api-web-frame-spec.js

+ 6 - 0
spec/api-web-frame-spec.js

@@ -139,4 +139,10 @@ describe('webFrame module', function () {
       webFrame.setLayoutZoomLevelLimits(0, 25)
     })
   })
+
+  it('supports setting cache capacity', function () {
+    assert.doesNotThrow(function () {
+      webFrame.setCacheCapacity(1024)
+    })
+  })
 })