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

Unified Diff: LayoutTests/fast/css/resources/CSSPrimitiveValue-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
Index: LayoutTests/fast/css/resources/CSSPrimitiveValue-exceptions.js
diff --git a/LayoutTests/fast/css/resources/CSSPrimitiveValue-exceptions.js b/LayoutTests/fast/css/resources/CSSPrimitiveValue-exceptions.js
deleted file mode 100644
index b831fb5e28d4a5f39a2c495c625c3142ec7ff8a1..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/css/resources/CSSPrimitiveValue-exceptions.js
+++ /dev/null
@@ -1,33 +0,0 @@
-description("This tests that the methods on CSSPrimitiveValue throw exceptions ");
-
-div = document.createElement('div');
-div.style.width = "10px";
-div.style.height = "90%";
-div.style.content = "counter(dummy, square)";
-div.style.clip = "rect(0, 0, 1, 1)";
-div.style.color = "rgb(0, 0, 0)";
-
-// Test passing invalid unit to getFloatValue
-shouldThrow("div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN)");
-shouldThrow("div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_STRING)");
-
-// Test invalid unit conversions in getFloatValue
-shouldThrow("div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_HZ)");
-shouldThrow("div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_S)");
-shouldThrow("div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_RAD)");
-shouldThrow("div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)");
-shouldThrow("div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS_PX)");
-shouldThrow("div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS_DEG)");
-
-// Test calling get*Value for CSSPrimitiveValue of the wrong type
-shouldBe("div.style.getPropertyCSSValue('clip').primitiveType", "CSSPrimitiveValue.CSS_RECT");
-shouldThrow("div.style.getPropertyCSSValue('clip').getFloatValue(CSSPrimitiveValue.CSS_PX)");
-shouldThrow("div.style.getPropertyCSSValue('clip').getStringValue()");
-shouldThrow("div.style.getPropertyCSSValue('clip').getCounterValue()");
-shouldThrow("div.style.getPropertyCSSValue('clip').getRGBColorValue()");
-
-shouldBe("div.style.getPropertyCSSValue('color').primitiveType", "CSSPrimitiveValue.CSS_RGBCOLOR");
-shouldThrow("div.style.getPropertyCSSValue('color').getFloatValue(CSSPrimitiveValue.CSS_PX)");
-shouldThrow("div.style.getPropertyCSSValue('color').getStringValue()");
-shouldThrow("div.style.getPropertyCSSValue('color').getCounterValue()");
-shouldThrow("div.style.getPropertyCSSValue('color').getRectValue()");
« no previous file with comments | « LayoutTests/fast/css/image-value-type-expected.txt ('k') | LayoutTests/fast/css/value-list-out-of-bounds-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698