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

Side by Side Diff: LayoutTests/fast/html/import-node-into-quirks-document.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!-- quirks mode --> 1 <!-- quirks mode -->
2 2
3 <script src="../../fast/js/resources/js-test-pre.js"></script> 3 <script src="../../fast/js/resources/js-test-pre.js"></script>
4 4
5 <style> 5 <style>
6 .casesensitive { border: 1px solid red; } 6 .casesensitive { border: 1px solid red; }
7 </style> 7 </style>
8 8
9 <iframe id="standards-mode"></iframe> 9 <iframe id="standards-mode"></iframe>
10 10
11 <script> 11 <script>
12 description('Bug 257221: Moving an element from a standards mode document to a q uirks mode one should handle the case difference of the id and class attributes' ); 12 description('Bug 257221: Moving an element from a standards mode document to a q uirks mode one should handle the case difference of the id and class attributes' );
13 13
14 var iframeDoc = document.getElementById('standards-mode').contentDocument; 14 var iframeDoc = document.getElementById('standards-mode').contentDocument;
15 15
16 iframeDoc.open(); 16 iframeDoc.open();
17 iframeDoc.write('<!DOCTYPE html><div id="caseSensitive" class="caseSensitive">ca seSensitive</div>'); 17 iframeDoc.write('<!DOCTYPE html><div id="caseSensitive" class="caseSensitive">ca seSensitive</div>');
18 iframeDoc.close(); 18 iframeDoc.close();
19 19
20 div = iframeDoc.getElementById('caseSensitive'); 20 div = iframeDoc.getElementById('caseSensitive');
21 document.body.appendChild(div); 21 document.body.appendChild(div);
22 shouldBe('document.querySelector("#caseSensitive")', 'div'); 22 shouldBe('document.querySelector("#caseSensitive")', 'div');
23 shouldBe('document.getElementById("caseSensitive")', 'div'); 23 shouldBe('document.getElementById("caseSensitive")', 'div');
24 shouldBeEqualToString('getComputedStyle(div).borderTopWidth', '1px'); 24 shouldBeEqualToString('getComputedStyle(div).borderTopWidth', '1px');
25 </script> 25 </script>
26 26
27 <script src="../../fast/js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/html/hidden-attr-expected.txt ('k') | LayoutTests/fast/html/imports/import-element-removed-flag.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698