Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/case-sensitive.js

Issue 2538773003: Deflake storage/domstorage/events tests when run in random order (Closed)
Patch Set: Rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/basic.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/case-sensitive.js
diff --git a/third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/case-sensitive.js b/third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/case-sensitive.js
index 8d961a058271eaf77b5649d63f5d74fb8486380a..46451260cdece7f7748a43ffec928e331430179f 100644
--- a/third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/case-sensitive.js
+++ b/third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/case-sensitive.js
@@ -15,6 +15,16 @@ function test(storageString, callback)
evalAndLog("storage.clear()");
shouldBe("storage.length", "0");
+ iframe.onload = onload;
+ iframe.src = "about:blank";
+}
+
+function onload()
+{
+ iframe.contentWindow.onstorage = function (e) {
+ window.parent.storageEventList.push(e);
+ };
+
debug("");
debug("Verify storage events are case sensitive");
evalAndLog("storage.foo = 'test'");
« no previous file with comments | « third_party/WebKit/LayoutTests/storage/domstorage/events/script-tests/basic.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698