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

Side by Side Diff: LayoutTests/fast/html/imports/rel-style-to-import.html

Issue 15856002: First step of HTMLImports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Mac build Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script src="../../js/resources/js-test-pre.js"></script>
4 <script src="resources/import-helpers.js"></script>
5 <head>
6 <link id="target", rel="stylesheet" href="resources/hello.css">
7 </head>
8 <body>
9 <script>
10 waitAndTest([
11 {
12 description: "Updating attribute value shouldn't result import loading." ,
13 setup: function()
14 {
15 debug("Before update:");
16 shouldBeNonNull("target.sheet");
17 shouldBeNull("target.import");
18 target.setAttribute("href", "resources/hello.html");
19 target.setAttribute("rel", "import");
20 window.placeholder = createPlaceholder();
21 },
22 ready: function() { return window.placeholder.import; },
23 test: function()
24 {
25 debug("After update:");
26 shouldBeNonNull("target.sheet");
27 shouldBeNull("target.import");
28 }
29 }
30 ]);
31 </script>
32 <script src="../../js/resources/js-test-post.js"></script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698