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

Unified Diff: LayoutTests/fast/shapes/resources/multi-segment-polygon.js

Issue 772523003: Remove unused shape test resources (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/resources/simple-polygon.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/shapes/resources/multi-segment-polygon.js
diff --git a/LayoutTests/fast/shapes/resources/multi-segment-polygon.js b/LayoutTests/fast/shapes/resources/multi-segment-polygon.js
deleted file mode 100644
index e592c61fe89bb3c2b56cc5b2535b208b07ca6583..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/shapes/resources/multi-segment-polygon.js
+++ /dev/null
@@ -1,39 +0,0 @@
-function generatePolygon(width, height, fontSize, points, content, elementId) {
- var div = createOrInsert(elementId);
- var polygon = points.map(function(elem, index, array) {
- return elem.toString() + 'px' + (index < array.length - 1 && index % 2 == 1 ? ',' : '');
- }).join(' ');
- polygon = 'polygon(' + polygon + ')';
- div.style.setProperty('shape-inside', polygon);
- div.style.setProperty('width', width + 'px');
- div.style.setProperty('height', height + 'px');
- div.style.setProperty('font', fontSize + 'px/1 Ahem, sans-serif');
- div.style.setProperty('color', 'green');
- div.style.setProperty('word-wrap', 'break-word');
- div.innerHTML = content;
-}
-
-function simulateWithText(width, height, fontSize, content, elementId) {
- var div = createOrInsert(elementId);
- div.style.setProperty('width', width + 'px');
- div.style.setProperty('height', height + 'px');
- div.style.setProperty('font', fontSize + 'px/1 Ahem, sans-serif');
- div.style.setProperty('color', 'green');
- if (content instanceof Array) {
- div.style.setProperty('white-space', 'pre');
- content = content.join('\n');
- }
- div.innerHTML = content;
-}
-
-function createOrInsert(elementId) {
- if (elementId)
- return document.getElementById(elementId);
-
- var div = document.createElement('div');
- if (document.body.childNodes.length)
- docuemnt.body.insertBefore(div, document.body.childNodes[0]);
- else
- document.body.appendChild(div);
- return div;
-}
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/resources/simple-polygon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698