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

Side by Side Diff: LayoutTests/fast/shapes/resources/simple-rectangle.js

Issue 20806004: Remove Explicit Shapes Enablement in Tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Enabled by default, no need to call internals Created 7 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 | Annotate | Revision Log
OLDNEW
1 if (window.internals)
2 window.internals.settings.setCSSExclusionsEnabled(true);
3
4 function createRectangleTest(elementId, stylesheetId, bounds, shapeBounds, units , content) { 1 function createRectangleTest(elementId, stylesheetId, bounds, shapeBounds, units , content) {
5 var elem; 2 var elem;
6 if (elementId) 3 if (elementId)
7 elem = document.getElementById(elementId); 4 elem = document.getElementById(elementId);
8 else { 5 else {
9 elem = document.createElement('div'); 6 elem = document.createElement('div');
10 elem.setAttribute('id', elementId); 7 elem.setAttribute('id', elementId);
11 document.appendChild(elem); 8 document.appendChild(elem);
12 } 9 }
13 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 stylesheet.insertRule('#' + elementId + '{' + rules.join(';') + '}'); 47 stylesheet.insertRule('#' + elementId + '{' + rules.join(';') + '}');
51 48
52 rules = []; 49 rules = [];
53 rules.push('left: ' + (shapeBounds.x - 1) + units, 'top: ' + (shapeBounds.y - 1) + units, 'width: ' + shapeBounds.width + units, 'height: ' + shapeBounds.he ight + units); 50 rules.push('left: ' + (shapeBounds.x - 1) + units, 'top: ' + (shapeBounds.y - 1) + units, 'width: ' + shapeBounds.width + units, 'height: ' + shapeBounds.he ight + units);
54 rules.push('position: absolute', 'display: block', 'content: \' \''); 51 rules.push('position: absolute', 'display: block', 'content: \' \'');
55 rules.push('border: 1px solid blue'); 52 rules.push('border: 1px solid blue');
56 stylesheet.insertRule('#' + elementId + ':before{' + rules.join(';') + '}'); 53 stylesheet.insertRule('#' + elementId + ':before{' + rules.join(';') + '}');
57 if (content) 54 if (content)
58 elem.innerHTML = content; 55 elem.innerHTML = content;
59 } 56 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/shapes/resources/simple-polygon.js ('k') | LayoutTests/fast/shapes/shape-inside/shape-inside-animation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698