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

Side by Side Diff: LayoutTests/fast/html/imports/import-remove.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 <head>
5 <link id="hello" rel="import" href="resources/hello.html">
6 </head>
7 <body>
8 <script>
9 jsTestIsAsync = true;
10 var hello = document.getElementById("hello");
11 shouldBeNonNull("hello.import");
12
13 debug("Node removal should make import deleted.");
14 hello.parentNode.removeChild(hello);
15 shouldBeNull("hello.import");
16
17 debug("Re-inserting it shouldn't help.");
18 document.head.appendChild(hello);
19 window.setTimeout(function() {
20 shouldBeNull("hello.import");
21 finishJSTest();
22 }, 0);
23
24 </script>
25 <script src="../../js/resources/js-test-post.js"></script>
26 </body>
27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/html/imports/import-owner-expected.txt ('k') | LayoutTests/fast/html/imports/import-remove-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698