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

Side by Side Diff: LayoutTests/editing/style/apply-style-crash3.html

Issue 1124863003: Harden changing font style over unknown elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up the test Created 5 years, 7 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 | « no previous file | LayoutTests/editing/style/apply-style-crash3-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <unknown>
8 <script></script>
9 <textarea></textarea>
10 <script>
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.waitUntilDone();
14 }
15
16 function onDOMNodeRemoved(e) {
17 if (!(e.srcElement instanceof Element))
18 return;
19
20 e.srcElement.insertAdjacentHTML('afterbegin', ' ');
21 document.execCommand('FontSizeDelta', false, '1px');
22 }
23
24 document.addEventListener("DOMNodeRemoved", onDOMNodeRemoved, false);
25 document.designMode = "on";
26 document.execCommand("SelectAll", false)
27 var unknown = document.getElementsByTagName("unknown")[0];
28 unknown.textContent = "sss";
29 unknown.outerHTML = "";
30 document.execCommand("SelectAll", false);
31 // Put description() here so as to not upset test condition.
32 description("Verify that changing the style over an unknown element does not cra sh.");
33 if (window.testRunner)
34 testRunner.notifyDone();
35 </script>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/style/apply-style-crash3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698