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

Unified Diff: LayoutTests/http/tests/htmlimports/import-cors-credentials.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/import-cors-credentials.html
diff --git a/LayoutTests/http/tests/htmlimports/import-cors-credentials.html b/LayoutTests/http/tests/htmlimports/import-cors-credentials.html
index beb90273443369e7392ef3ebcf3ac77ddd1d5dae..bba700a1a8b9b12154961d73aaa532b76f552e84 100644
--- a/LayoutTests/http/tests/htmlimports/import-cors-credentials.html
+++ b/LayoutTests/http/tests/htmlimports/import-cors-credentials.html
@@ -1,18 +1,10 @@
<!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="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="fromCrossToSameOrigin" rel="import" href="http://localhost:8080/htmlimports/resources/having-cookie-match-same.cgi">
-<script>
-if (window.testRunner)
+if (window.testRunner) {
testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
-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");
+document.cookie = "key=HelloCredentials";
+window.location = "resources/import-cors-credentials-body.html";
</script>
« no previous file with comments | « LayoutTests/http/tests/htmlimports/import-async.html ('k') | LayoutTests/http/tests/htmlimports/import-preload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698