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

Side by Side Diff: LayoutTests/fast/frames/seamless/seamless-designMode.html

Issue 58533003: Move fast/js/resources files to resources. (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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <iframe id="iframe" seamless srcdoc="FAIL"></iframe> 3 <iframe id="iframe" seamless srcdoc="FAIL"></iframe>
4 <script> 4 <script>
5 debug("Test that being a seamless iframe does not break designMode.") 5 debug("Test that being a seamless iframe does not break designMode.")
6 window.onload = function () { 6 window.onload = function () {
7 window.iframe = document.getElementById("iframe"); 7 window.iframe = document.getElementById("iframe");
8 window.iframe.contentDocument.designMode = "on"; 8 window.iframe.contentDocument.designMode = "on";
9 var target = window.iframe.contentDocument.body; 9 var target = window.iframe.contentDocument.body;
10 target.focus(); 10 target.focus();
11 window.iframe.contentDocument.getSelection().selectAllChildren(target); 11 window.iframe.contentDocument.getSelection().selectAllChildren(target);
12 if (window.eventSender) { 12 if (window.eventSender) {
13 eventSender.keyDown("P"); 13 eventSender.keyDown("P");
14 eventSender.keyDown("A"); 14 eventSender.keyDown("A");
15 eventSender.keyDown("S"); 15 eventSender.keyDown("S");
16 eventSender.keyDown("S"); 16 eventSender.keyDown("S");
17 } 17 }
18 shouldBeEqualToString("window.iframe.contentDocument.body.textContent", "PAS S"); 18 shouldBeEqualToString("window.iframe.contentDocument.body.textContent", "PAS S");
19 } 19 }
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698