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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/style/justify-left-crash.html

Issue 2254453004: Convert editing/style/justify-left-crash.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-17T16:00:35 Created 4 years, 4 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 | third_party/WebKit/LayoutTests/editing/style/justify-left-crash-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!doctype html>
2 <html hidden> 2 <html hidden>
3 <head> 3 <head>
4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
4 <style> 6 <style>
5 html, head, style { 7 html, head, style {
6 display: block; 8 display: block;
7 } 9 }
8 </style> 10 </style>
9 </head> 11 </head>
12 <body>
13 <div id="sample">foo</div>
10 <script> 14 <script>
11 document.designMode = "on"; 15 document.designMode = 'on';
12 document.execCommand("selectAll"); 16 document.execCommand('selectAll');
13 document.execCommand("italic"); 17 document.execCommand('italic');
14 document.execCommand("justifyLeft"); 18 document.execCommand('justifyLeft');
15 document.documentElement.removeAttribute("hidden"); 19 document.documentElement.removeAttribute('hidden');
20
21 test(() => {
22 var sample = document.getElementById('sample');
23 assert_equals(sample.innerHTML, '<i>foo</i>');
24 // TODO(yosin): Once we do lazy visible position canonicalization,
25 // we should have a caret.
26 assert_equals(getSelection().rangeCount, 0);
27 }, 'This is a crash test.');
16 </script> 28 </script>
17 <body>
18 This test passes if it does not crash.
19 </body> 29 </body>
20 </html> 30 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/style/justify-left-crash-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698