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

Unified Diff: LayoutTests/http/tests/htmlimports/cors-same-origin.html

Issue 186803005: [import] Use master document's origin to resolve CORS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | LayoutTests/http/tests/htmlimports/cors-same-origin-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/htmlimports/cors-same-origin.html
diff --git a/LayoutTests/http/tests/htmlimports/cors-same-origin.html b/LayoutTests/http/tests/htmlimports/cors-same-origin.html
index 09aaf6dc0c8455c7034983b683e9f20889c11a3f..8539b53fdfaf5373e195b26d30d2fa8c31765c7e 100644
--- a/LayoutTests/http/tests/htmlimports/cors-same-origin.html
+++ b/LayoutTests/http/tests/htmlimports/cors-same-origin.html
@@ -1,12 +1,19 @@
<!DOCTYPE html>
<html>
<head>
-<link id="target" rel="import" href="http://localhost:8080/htmlimports/resources/cors-basic.cgi">
+<link id="basic" rel="import" href="http://localhost:8080/htmlimports/resources/cors-basic.cgi">
+<link id="nested" rel="import" href="http://localhost:8080/htmlimports/resources/cors-subimports.cgi">
<script src="/js-test-resources/js-test.js"></script>
</head>
<body>
<script>
-shouldBe("target.import.querySelector('h1').innerHTML", "'Hello, CORS!'");
+
+shouldBeEqualToString("basic.import.querySelector('h1').innerHTML", "Hello, CORS!");
+shouldBeNull("nested.import.querySelector('#sameOriginNoCors').import");
+shouldBeEqualToString("nested.import.querySelector('#sameOriginCors').import.querySelector('h1').innerHTML", "Hello, CORS!");
+shouldBeEqualToString("nested.import.querySelector('#masterOriginNoCors').import.querySelector('h1').innerHTML", "Hello");
+shouldBeEqualToString("nested.import.querySelector('#masterOriginCors').import.querySelector('h1').innerHTML", "Hello, CORS!");
+
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/htmlimports/cors-same-origin-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698