mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae
This commit is contained in:
parent
b23125d590
commit
6c901de216
844 changed files with 19802 additions and 3093 deletions
14
tests/wpt/web-platform-tests/storage/persisted.https.any.js
Normal file
14
tests/wpt/web-platform-tests/storage/persisted.https.any.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
// META: title=StorageManager: persisted()
|
||||
|
||||
test(function(t) {
|
||||
assert_true('persisted' in navigator.storage);
|
||||
assert_equals(typeof navigator.storage.persisted, 'function');
|
||||
assert_true(navigator.storage.persisted() instanceof Promise);
|
||||
}, 'persisted() method exists and returns a Promise');
|
||||
|
||||
promise_test(function(t) {
|
||||
return navigator.storage.persisted().then(function(result) {
|
||||
assert_equals(typeof result, 'boolean');
|
||||
assert_equals(result, false);
|
||||
});
|
||||
}, 'persisted() returns a promise and resolves as boolean with false');
|
Loading…
Add table
Add a link
Reference in a new issue