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

Unified Diff: LayoutTests/fast/css/getFloatValueForUnit.html

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/getFloatValueForUnit.html
diff --git a/LayoutTests/fast/css/getFloatValueForUnit.html b/LayoutTests/fast/css/getFloatValueForUnit.html
deleted file mode 100644
index 55bb3c7ef5e5566c82eb25c4c91be22a59bf630b..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/css/getFloatValueForUnit.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<div id="test-div" style="font-size: 10pt; transform: rotate(100grad); -webkit-animation-delay: 0.2s;"></div>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-description("Testing whether CSSPrimitiveValue.getFloatValue() converts units correctly.");
-
-function getFloatValue(nestLevel, propertyName, unit)
-{
- var value = document.getElementById("test-div").style.getPropertyCSSValue(propertyName);
- while (nestLevel--)
- value = value[0];
- return Number(value.getFloatValue(unit).toFixed(6));
-}
-
-shouldBe("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_PT)", "10");
-shouldBe("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_MM)", "3.527778");
-shouldBe("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_CM)", "0.352778");
-shouldBe("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_IN)", "0.138889");
-shouldBe("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_PC)", "0.833333");
-shouldBe("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_PX)", "13.333333");
-shouldBe("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_NUMBER)", "13.333333");
-shouldBe("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_DEG)", "90");
-shouldBe("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_RAD)", "1.570796");
-shouldBe("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_GRAD)", "100");
-shouldBe("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_NUMBER)", "90");
-shouldBe("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_MS)", "200");
-shouldBe("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_S)", "0.2");
-shouldBe("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_NUMBER)", "200");
-
-shouldThrow("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_PERCENTAGE)");
-shouldThrow("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_MS)");
-shouldThrow("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_HZ)");
-shouldThrow("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_DEG)");
-shouldThrow("getFloatValue(0, 'font-size', CSSPrimitiveValue.CSS_RGBCOLOR)");
-
-shouldThrow("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_PERCENTAGE)");
-shouldThrow("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_PX)");
-shouldThrow("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_MS)");
-shouldThrow("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_HZ)");
-shouldThrow("getFloatValue(2, 'transform', CSSPrimitiveValue.CSS_RGBCOLOR)");
-
-shouldThrow("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_PERCENTAGE)");
-shouldThrow("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_PX)");
-shouldThrow("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_DEG)");
-shouldThrow("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_HZ)");
-shouldThrow("getFloatValue(1, '-webkit-animation-delay', CSSPrimitiveValue.CSS_RGBCOLOR)");
-</script>
-</body>
« no previous file with comments | « LayoutTests/fast/css/counters/getCounterValue-expected.txt ('k') | LayoutTests/fast/css/getFloatValueForUnit-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698