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

Side by Side Diff: LayoutTests/fast/html/imports/rel-import-to-style.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="import" href="resources/hello.html">
7 </head>
8 <body>
9 <script>
10 waitAndTest([
11 {
12 description: "Updating attribute value shouldn't invalidate loaded impor t.",
13 setup: function()
14 {
15 debug("Before update:");
16 shouldBeNull("target.sheet");
17 shouldBeNonNull("target.import");
18 target.setAttribute("href", "resources/hello.css");
19 target.setAttribute("rel", "stylesheet");
20 window.placeholder = createPlaceholder();
21 },
22 ready: function() { return window.placeholder.import; },
23 test: function()
24 {
25 debug("After update:");
26 shouldBeNull("target.sheet");
27 shouldBeNonNull("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