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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGNumber.js

Issue 2741153003: Convert LayoutTests/svg/dom/*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Align with review comments 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/script-tests/SVGNumber.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGNumber.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGNumber.js
deleted file mode 100644
index d728676ccec5988540740ef69d1ea58b5e1a1700..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGNumber.js
+++ /dev/null
@@ -1,39 +0,0 @@
-description("This test checks the SVGNumber API");
-
-var svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
-var num = svgElement.createSVGNumber();
-
-debug("");
-debug("Check initial number value");
-shouldBe("num.value", "0");
-
-debug("");
-debug("Check assigning number");
-shouldBe("num.value = 100", "100");
-shouldBe("num.value = -100", "-100");
-shouldBe("num.value = 12345678", "12345678");
-shouldBe("num.value = -num.value", "-12345678");
-
-debug("");
-debug("Check that numbers are static, caching value in a local variable and modifying it, should have no effect");
-var numRef = num.value;
-numRef = 1000;
-shouldBe("numRef", "1000");
-shouldBe("num.value", "-12345678");
-
-debug("");
-debug("Check assigning invalid number, number should be 0 afterwards");
-shouldBe("num.value = 0", "0");
-shouldThrow("num.value = num");
-shouldThrow("num.value = 'aString'");
-shouldThrow("num.value = svgElement");
-shouldThrow("num.value = NaN");
-shouldThrow("num.value = Infinity");
-shouldBe("num.value", "0");
-shouldBeNull("num.value = null");
-
-debug("");
-debug("Check that the number is now null");
-shouldBe("num.value", "0");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698