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

Unified Diff: LayoutTests/fast/dom/script-tests/setPrimitiveValue-exceptions.js

Issue 689323002: Remove tests which are only testing getPropertyCSSValue, etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « LayoutTests/fast/dom/script-tests/css-RGBValue.js ('k') | LayoutTests/fast/dom/setPrimitiveValue.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/script-tests/setPrimitiveValue-exceptions.js
diff --git a/LayoutTests/fast/dom/script-tests/setPrimitiveValue-exceptions.js b/LayoutTests/fast/dom/script-tests/setPrimitiveValue-exceptions.js
deleted file mode 100644
index fdbae849e42eac1fec4f7373305853d0b1a1791a..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/script-tests/setPrimitiveValue-exceptions.js
+++ /dev/null
@@ -1,57 +0,0 @@
-description("Test exceptions thrown by the CSSPrimitiveValue APIs. Primitive values are currently immutable (see https://bugs.webkit.org/show_bug.cgi?id=31223)");
-
-var element = document.createElement('div');
-element.id = "test-element"
-document.documentElement.appendChild(element);
-
-var styleElement = document.createElement('style');
-styleElement.innerText = "#test-element { position: absolute; left: 10px; font-family: Times; }";
-document.documentElement.appendChild(styleElement);
-
-function checkThrows(style) {
- left = style.getPropertyCSSValue("left");
-
- shouldBe("left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "10");
- shouldBe("left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION)", "10");
- shouldBe("left.getFloatValue(CSSPrimitiveValue.CSS_PX)", "10");
-
- shouldThrow("left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25)");
- shouldThrow("left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25)");
- shouldThrow("left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25)");
- shouldThrow("left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25)");
- shouldThrow("left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25)");
- shouldThrow("left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN)");
- shouldThrow("left.getFloatValue(CSSPrimitiveValue.CSS_STRING)");
-
- shouldThrow("left.getStringValue()");
- shouldThrow("left.getCounterValue()");
- shouldThrow("left.getRectValue()");
- shouldThrow("left.getRGBColorValue()");
-
- shouldBe("left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "10");
- shouldBe("left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION)", "10");
- shouldBe("left.getFloatValue(CSSPrimitiveValue.CSS_PX)", "10");
-
- fontFamily = style.getPropertyCSSValue("font-family")[0];
-
- shouldBe("fontFamily.getStringValue()", '"Times"');
-
- shouldThrow("fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!')");
- shouldThrow("fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, \"G'day!\")");
- shouldThrow("fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!')");
- shouldThrow("fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, \"G'day!\")");
- shouldThrow("fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!')");
-
- shouldThrow("fontFamily.getFloatValue()");
- shouldThrow("fontFamily.getCounterValue()");
- shouldThrow("fontFamily.getRectValue()");
- shouldThrow("fontFamily.getRGBColorValue()");
-
- shouldBe("fontFamily.getStringValue()", '"Times"');
-}
-
-var style = styleElement.sheet.cssRules[0].style;
-checkThrows(style);
-
-var computedStyle = window.getComputedStyle(element, null);
-checkThrows(computedStyle);
« no previous file with comments | « LayoutTests/fast/dom/script-tests/css-RGBValue.js ('k') | LayoutTests/fast/dom/setPrimitiveValue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698