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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js

Issue 2730413003: Remove non-standard API SVGStyleElement#disabled (Closed)
Patch Set: Fix webexposed in Layout tests Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js b/third_party/WebKit/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js
deleted file mode 100644
index 5317ffaef4b7564c67372968d3561c98050d2acf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js
+++ /dev/null
@@ -1,51 +0,0 @@
-description('Test the disabled property on an svg style element.');
-
-var console = document.getElementById('console');
-
-// Setup
-function createStyle(ns, type, ruletext) {
- var style = document.createElementNS(ns, "style");
- var rules = document.createTextNode(ruletext);
- style.appendChild(rules);
- style.type = type;
- return style;
-}
-
-var xmlns = "http://www.w3.org/2000/svg";
-var svg = document.createElementNS(xmlns, "svg");
-svg.style.display = "block";
-
-var defs = document.createElementNS(xmlns, "defs");
-var styleElement = createStyle(xmlns, "text/css", "rect { fill: #0000ff; }");
-var otherStyleElement = createStyle(xmlns, "foo/bar", "");
-defs.appendChild(styleElement);
-defs.appendChild(otherStyleElement);
-svg.appendChild(defs);
-
-var rect = document.createElementNS(xmlns, "rect");
-rect.setAttribute("width", 100);
-rect.setAttribute("height", 100);
-svg.appendChild(rect);
-
-document.body.appendChild(svg);
-
-// Simple case
-shouldBeFalse('styleElement.disabled');
-shouldBe('window.getComputedStyle(rect).fill', '"rgb(0, 0, 255)"');
-
-styleElement.disabled = true
-shouldBeTrue('styleElement.disabled');
-shouldBe('window.getComputedStyle(rect).fill', '"rgb(255, 0, 0)"');
-
-// Test disconnected element
-var newStyleElement = document.createElementNS(xmlns, 'style');
-shouldBeFalse('newStyleElement.disabled');
-newStyleElement.disabled = true
-shouldBeFalse('newStyleElement.disabled');
-
-// Test non-CSS element
-shouldBeFalse('otherStyleElement.disabled');
-otherStyleElement.disabled = true
-shouldBeFalse('otherStyleElement.disabled');
-
-document.body.removeChild(svg);

Powered by Google App Engine
This is Rietveld 408576698