mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e.
This commit is contained in:
parent
12195a5c4a
commit
bfb96b9448
1166 changed files with 35123 additions and 900 deletions
|
@ -1,12 +1,12 @@
|
|||
iframe = document.createElement("IFRAME");
|
||||
iframe.src = "about:blank";
|
||||
document.body.appendChild(iframe);
|
||||
iframe.contentWindow.document.body.innerText = "Nothing to see here.";
|
||||
iframe.contentWindow.document.body.textContent = "Nothing to see here.";
|
||||
|
||||
storageEventList = new Array();
|
||||
iframe.contentWindow.onstorage = function (e) {
|
||||
iframe.contentWindow.addEventListener("storage", function(e) {
|
||||
window.parent.storageEventList.push(e);
|
||||
}
|
||||
});
|
||||
|
||||
function runAfterNStorageEvents(callback, expectedNumEvents)
|
||||
{
|
||||
|
@ -35,19 +35,12 @@ function countStorageEvents(callback, expectedNumEvents, times)
|
|||
|
||||
function testStorages(testCallback)
|
||||
{
|
||||
// When we're done testing LocalStorage, this is run.
|
||||
function allDone()
|
||||
{
|
||||
localStorage.clear();
|
||||
sessionStorage.clear();
|
||||
}
|
||||
|
||||
// When we're done testing with SessionStorage, this is run.
|
||||
function runLocalStorage()
|
||||
{
|
||||
testCallback("localStorage", allDone);
|
||||
}
|
||||
|
||||
// First run the test with SessionStorage.
|
||||
testCallback("sessionStorage", runLocalStorage);
|
||||
testCallback("sessionStorage");
|
||||
var hit = false;
|
||||
add_result_callback(function() {
|
||||
if (!hit) {
|
||||
hit = true;
|
||||
testCallback("localStorage");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue