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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/script-tests/unsigned-long-attribute-reflection.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/fast/dom/script-tests/unsigned-long-attribute-reflection.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/script-tests/unsigned-long-attribute-reflection.js b/third_party/WebKit/LayoutTests/fast/dom/script-tests/unsigned-long-attribute-reflection.js
deleted file mode 100644
index 660270e2c40a4432fc57b96adee8f2cb64a3dfa4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/script-tests/unsigned-long-attribute-reflection.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// http://whatwg.org/html#reflecting-content-attributes-in-idl-attributes
-// http://whatwg.org/html#rules-for-parsing-non-negative-integers
-function testUnsignedLong(interface, createElement, attribute)
-{
- test(function()
- {
- var element = createElement();
-
- assert_equals(element[attribute], 0);
-
- function t(input, output)
- {
- element.setAttribute(attribute, input);
- assert_equals(element[attribute], output);
- }
-
- t("", 0);
- t("0", 0);
- t("1", 1);
- t("2147483647", 2147483647);
- t("2147483648", 0);
- t("-1", 0);
- t("+42", 42);
- t(" 42", 42);
- t("42!", 42);
- }, "get " + interface + "." + attribute);
-
- test(function()
- {
- var element = createElement();
-
- assert_false(element.hasAttribute(attribute));
-
- function t(input, output)
- {
- element[attribute] = input;
- assert_equals(element.getAttribute(attribute), output);
- }
-
- t(0, "0");
- t(2147483647, "2147483647");
- t(2147483648, "0");
- t(2147483700, "0");
- t(-1, "0");
- t(-3, "0");
- }, "set " + interface + "." + attribute);
-}

Powered by Google App Engine
This is Rietveld 408576698