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

Side by Side 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: update 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script> 2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
6 }
7
4 document.cookie = "key=HelloCredentials"; 8 document.cookie = "key=HelloCredentials";
9 window.location = "resources/import-cors-credentials-body.html";
Yoav Weiss 2015/06/09 07:53:40 Why is this change related to the code change?
yoichio 2015/06/11 04:27:43 Because we preload not waiting this script inserti
Yoav Weiss 2015/06/11 10:50:47 OK, great :)
5 </script> 10 </script>
6 <link id="sameOrigin" rel="import" href="resources/cookie-match.cgi?key=HelloCre dentials">
7 <link id="crossOrigin" rel="import" href="http://localhost:8080/htmlimports/reso urces/cookie-match.cgi">
8 <link id="fromSameToCrossOrigin" rel="import" href="resources/having-cookie-matc h-8080.html">
9 <link id="fromCrossToSameOrigin" rel="import" href="http://localhost:8080/htmlim ports/resources/having-cookie-match-same.cgi">
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
13
14 shouldBeEqualToString("sameOrigin.import.body.innerHTML", "PASS");
15 shouldBeEqualToString("crossOrigin.import.body.innerHTML", "PASS");
16 shouldBeEqualToString("fromSameToCrossOrigin.import.getElementById('crossOrigin' ).import.body.innerHTML", "PASS");
17 shouldBeEqualToString("fromCrossToSameOrigin.import.getElementById('sameOrigin') .import.body.innerHTML", "PASS");
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698