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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/workers/data-url.html

Issue 2697003002: Fix incorrect tests for storage APIs in data: URL workers (Closed)
Patch Set: Added comment for the indexedDB test. Improved Web Sql Database test name. Created 3 years, 10 months 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 | « no previous file | third_party/WebKit/LayoutTests/external/wpt/workers/data-url-shared.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/external/wpt/workers/data-url.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/workers/data-url.html b/third_party/WebKit/LayoutTests/external/wpt/workers/data-url.html
index da468e79742d630515e05c41f0f893161c0213ea..3a4eb6c705c7b3c03ef7cfd0b90727d2ab49e422 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/workers/data-url.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/workers/data-url.html
@@ -41,9 +41,12 @@ assert_worker_sends_pass('empty MIME allowed', '', 'self.postMessage("PASS")');
// Communications goes both ways
assert_worker_sends_pass('communication goes both ways', 'application/javascript', 'onmessage = function(e) { self.postMessage("PASS"); }');
-// 'data:' workers are cross-origin
+// test access to storage APIs
+// once https://github.com/w3c/IndexedDB/pull/150 lands, this is spec conforming
assert_worker_throws('indexedDB inaccessible', 'self.indexedDB.open("someDBName")');
-assert_worker_throws('localStorage inaccessible', 'self.localStorage.testItem');
+assert_worker_throws('Web SQL Database inaccessible', 'self.openDatabase("someDBName", "1.0", "someDBName", 1);');
+
+// 'data:' workers are cross-origin
assert_worker_sends_pass('cross-origin worker', '', 'fetch("/").then(() => self.postMessage("FAIL"), () => self.postMessage("PASS"))');
// 'data:' workers have opaque origin
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/workers/data-url-shared.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698