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

Unified Diff: LayoutTests/http/tests/htmlimports/resources/import-cors-credentials-body.html

Issue 976263002: HTML Imports: Teach preloader about HTML Imports. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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: LayoutTests/http/tests/htmlimports/resources/import-cors-credentials-body.html
diff --git a/LayoutTests/http/tests/htmlimports/import-cors-credentials.html b/LayoutTests/http/tests/htmlimports/resources/import-cors-credentials-body.html
similarity index 72%
copy from LayoutTests/http/tests/htmlimports/import-cors-credentials.html
copy to LayoutTests/http/tests/htmlimports/resources/import-cors-credentials-body.html
index beb90273443369e7392ef3ebcf3ac77ddd1d5dae..9c6332f4b9f30cf521226402f26bc39172d22de3 100644
--- a/LayoutTests/http/tests/htmlimports/import-cors-credentials.html
+++ b/LayoutTests/http/tests/htmlimports/resources/import-cors-credentials-body.html
@@ -1,18 +1,16 @@
<!DOCTYPE html>
<script src="/js-test-resources/js-test.js"></script>
-<script>
-document.cookie = "key=HelloCredentials";
-</script>
-<link id="sameOrigin" rel="import" href="resources/cookie-match.cgi?key=HelloCredentials">
+<link id="sameOrigin" rel="import" href="cookie-match.cgi?key=HelloCredentials">
<link id="crossOrigin" rel="import" href="http://localhost:8080/htmlimports/resources/cookie-match.cgi">
-<link id="fromSameToCrossOrigin" rel="import" href="resources/having-cookie-match-8080.html">
+<link id="fromSameToCrossOrigin" rel="import" href="having-cookie-match-8080.html">
<link id="fromCrossToSameOrigin" rel="import" href="http://localhost:8080/htmlimports/resources/having-cookie-match-same.cgi">
<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
shouldBeEqualToString("sameOrigin.import.body.innerHTML", "PASS");
shouldBeEqualToString("crossOrigin.import.body.innerHTML", "PASS");
shouldBeEqualToString("fromSameToCrossOrigin.import.getElementById('crossOrigin').import.body.innerHTML", "PASS");
shouldBeEqualToString("fromCrossToSameOrigin.import.getElementById('sameOrigin').import.body.innerHTML", "PASS");
+
+if (window.testRunner)
+ window.setTimeout(function() { testRunner.notifyDone(); }, 0);
+
</script>
« no previous file with comments | « LayoutTests/http/tests/htmlimports/resources/hello.js ('k') | LayoutTests/http/tests/htmlimports/resources/preload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698