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

Side by Side Diff: sky/tests/modules/load-event.sky

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/tests/lowlevel/img-expected.txt ('k') | sky/tests/services/event-sender.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <import src="../resources/dump-as-text.sky" /> 2 <import src="../resources/dump-as-text.sky" />
3 <div id="result1">FAIL</div> 3 <div id="result1">FAIL</div>
4 <div id="result2">FAIL</div> 4 <div id="result2">FAIL</div>
5 <script> 5 <script>
6 var element = document.createElement("import"); 6 var element = document.createElement("import");
7 element.setAttribute("src", "resources/pass.sky"); 7 element.setAttribute("src", "resources/pass.sky");
8 element.setAttribute("as", "hello"); 8 element.setAttribute("as", "hello");
9 element.addEventListener("load", function() { 9 element.addEventListener("load", function() {
10 document.getElementById("result1").textContent = "PASS: Load event fired."; 10 document.getElementById("result1").textContent = "PASS: Load event fired.";
11 }); 11 });
12 document.documentElement.appendChild(element); 12 document.firstElementChild.appendChild(element);
13 </script> 13 </script>
14 <script> 14 <script>
15 document.getElementById("result2").textContent = hello; 15 document.getElementById("result2").textContent = hello;
16 </script> 16 </script>
17 </html> 17 </html>
OLDNEW
« no previous file with comments | « sky/tests/lowlevel/img-expected.txt ('k') | sky/tests/services/event-sender.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698