mirror of
https://github.com/servo/servo.git
synced 2025-08-25 15:18:22 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -5,4 +5,3 @@
|
|||
@kangxu
|
||||
@ibelem
|
||||
@jdm
|
||||
@Ms2ger
|
||||
|
|
|
@ -1,10 +1,2 @@
|
|||
This directory contains the Web Storage test suite.
|
||||
|
||||
The spec's Implementation Report contains a list of each test file in the test suite and the results of running the test file on several browsers <http://www.w3.org/wiki/Webapps/Interop/WebStorage>.
|
||||
|
||||
To run this test suite within a browser, go to: <http://w3c-test.org/webstorage/>.
|
||||
|
||||
A W3C Recommendation of Web Storage was published on 30 July 2013 <http://www.w3.org/TR/2013/REC-webstorage-20130730/>.
|
||||
|
||||
Latest Editor's Draft of Web Storage is: <http://dev.w3.org/html5/webstorage/>.
|
||||
|
||||
These are the storage (`localStorage`, `sessionStorage`) tests for the
|
||||
[Web storage chapter of the HTML Standard](https://html.spec.whatwg.org/multipage/webstorage.html).
|
||||
|
|
|
@ -22,21 +22,21 @@
|
|||
storage.b = 0;
|
||||
assert_equals(storage.b, "0");
|
||||
storage.c = function(){};
|
||||
assert_equals(storage.c, "function (){}");
|
||||
assert_equals(storage.c, "function(){}");
|
||||
|
||||
storage.setItem('d', null);
|
||||
assert_equals(storage.d, "null");
|
||||
storage.setItem('e', 0);
|
||||
assert_equals(storage.e, "0");
|
||||
storage.setItem('f', function(){});
|
||||
assert_equals(storage.f, "function (){}");
|
||||
assert_equals(storage.f, "function(){}");
|
||||
|
||||
storage['g'] = null;
|
||||
assert_equals(storage.g, "null");
|
||||
storage['h'] = 0;
|
||||
assert_equals(storage.h, "0");
|
||||
storage['i'] = function(){};
|
||||
assert_equals(storage.f, "function (){}");
|
||||
assert_equals(storage.f, "function(){}");
|
||||
|
||||
}, name + " only stores strings");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue