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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/addressspace-test.js

Issue 1929353002: CORS-RFC1918: Service Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Works. Created 4 years, 8 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
Index: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/addressspace-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/addressspace-test.js b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/addressspace-test.js
index c7738bbf9124d42cb7ef7aa1593885d36079e3da..1f035479ab0cdb308718c94ac2e3d40fa49090b3 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/addressspace-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/addressspace-test.js
@@ -12,6 +12,8 @@ function createIFrame(origin, type) {
file = "post-addressspace-from-worker.html";
} else if (type == "sharedworker") {
file = "post-addressspace-from-sharedworker.html";
+ } else if (type == "serviceworker") {
+ file = "post-addressspace-from-serviceworker.html";
}
var i = document.createElement('iframe');
@@ -24,8 +26,8 @@ function addressSpaceTest(origin, type, expected, callback) {
var i = createIFrame(origin, type);
window.addEventListener("message", t.step_func(function (e) {
if (e.source == i.contentWindow) {
- assert_equals(e.data.origin, origin);
- assert_equals(e.data.addressSpace, expected);
+ assert_equals(e.data.origin, origin, 'origin');
+ assert_equals(e.data.addressSpace, expected, 'addressSpace');
if (callback)
callback();
t.done();

Powered by Google App Engine
This is Rietveld 408576698