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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/tables/table-cell-changes-to-colgroup.html

Issue 2532283002: Minor test cleanup of table-cell-changes-to-colgroup.html (Closed)
Patch Set: Created 4 years 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/paint/tables/table-cell-changes-to-colgroup-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 <script src="../../resources/run-after-layout-and-paint.js"></script> 2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <!-- Test passes if it does not crash on an ASAN build. --> 3 <!-- Test passes if it does not crash on an ASAN build. -->
4 <style> 4 <style>
5 .c7 { 5 .tableColumnGroup {
6 background: white; 6 background: white;
7 display: table-column-group; 7 display: table-column-group;
8 } 8 }
9 .c13 { 9 .tableCell {
10 display: table-cell; 10 display: table-cell;
11 border-style: ridge; 11 border-style: ridge;
12 will-change: transform; 12 will-change: transform;
13 } 13 }
14 </style> 14 </style>
15 <script> 15 <script>
16 var label = document.createElement('label'); 16 function createAndAppendWithClass(targetType, targetClass) {
17 label.setAttribute('class', 'c13'); 17 var targetElement = document.createElement(targetType);
18 document.documentElement.appendChild(label); 18 targetElement.setAttribute('class', targetClass);
19 var colgroup = document.createElement('colgroup'); 19 document.documentElement.appendChild(targetElement);
20 colgroup.setAttribute('class', 'c13'); 20 return targetElement;
21 document.documentElement.appendChild(colgroup); 21 }
22 var aside = document.createElement('aside'); 22 var label = createAndAppendWithClass('label', 'tableCell');
23 aside.setAttribute('class', 'c13'); 23 var colgroup = createAndAppendWithClass('colgroup', 'tableCell');
24 document.documentElement.appendChild(aside); 24 createAndAppendWithClass('aside', 'tableCell');
25 if (window.testRunner) 25 if (window.testRunner)
26 testRunner.waitUntilDone(); 26 testRunner.waitUntilDone();
27 runAfterLayoutAndPaint(function() { 27 runAfterLayoutAndPaint(function() {
28 colgroup.setAttribute('class', 'c11'); 28 colgroup.setAttribute('class', '');
29 label.setAttribute('class', 'c7'); 29 label.setAttribute('class', 'tableColumnGroup');
30 }, true); 30 }, true);
31 </script> 31 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/tables/table-cell-changes-to-colgroup-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698