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

Side by Side Diff: LayoutTests/fast/dom/HTMLElement/iscontenteditable-designmodeon-subframe.html

Issue 1031543003: Remove inheritance of designMode attribute. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments, add usage counter, rebase tests, rebase to ToT Created 5 years, 8 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <div id="result"></div> 9 <div id="result"></div>
10 <script> 10 <script>
11 description('document.designMode inherits from parent documents.') 11 description('document.designMode should not inherit from parent documents.')
12 12
13 function runTest() 13 function runTest()
14 { 14 {
15 evalAndLog('document.designMode = "on"'); 15 evalAndLog('document.designMode = "on"');
16 16
17 subDocument = document.getElementById("subframe").contentDocument; 17 subDocument = document.getElementById("subframe").contentDocument;
18 shouldBe('subDocument.designMode', '"off"');
18 shouldBe('subDocument.getElementById("div").contentEditable', '"inherit"'); 19 shouldBe('subDocument.getElementById("div").contentEditable', '"inherit"');
19 shouldBe('subDocument.getElementById("div").isContentEditable', 'true'); 20 shouldBe('subDocument.getElementById("div").isContentEditable', 'false');
20 21
21 document.getElementById("subframe").style.display= 'none'; 22 document.getElementById("subframe").style.display= 'none';
22 } 23 }
23 </script> 24 </script>
24 <iframe id="subframe" onload="runTest()" src="data:text/html,<div id='div'></div >"></iframe> 25 <iframe id="subframe" onload="runTest()" src="data:text/html,<div id='div'></div >"></iframe>
25 </body> 26 </body>
26 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698