| Index: third_party/WebKit/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js
|
| deleted file mode 100644
|
| index bd6d9af9b894e2d1c96f7b7ba5fc344bc6770ebb..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js
|
| +++ /dev/null
|
| @@ -1,69 +0,0 @@
|
| -description('Test setting valid and invalid properties of HTMLProgressElement.');
|
| -
|
| -var p = document.createElement('progress');
|
| -
|
| -debug("Test values before properties were set");
|
| -shouldBe("p.value", "0");
|
| -shouldBe("p.max", "1");
|
| -shouldBe("p.position", "-1");
|
| -
|
| -debug("Set valid values");
|
| -p.value = 7e1;
|
| -p.max = "1e2";
|
| -shouldBe("p.value", "70");
|
| -shouldBe("p.max", "100");
|
| -shouldBe("p.position", "0.7");
|
| -
|
| -debug("Set value bigger than max");
|
| -p.value = 200;
|
| -p.max = 100.0;
|
| -shouldBe("p.value", "100");
|
| -shouldBe("p.max", "100");
|
| -shouldBe("p.position", "1");
|
| -
|
| -debug("Set value less than zero");
|
| -p.value = -42;
|
| -shouldBe('p.value', '0');
|
| -shouldBe('p.position', '0');
|
| -
|
| -debug("Set invalid value, should throw");
|
| -shouldThrow('p.value = "200A";');
|
| -
|
| -debug("Set invalid max, should throw");
|
| -shouldThrow('p.max = "max";');
|
| -
|
| -debug("Set max to Infinity, should throw");
|
| -shouldThrow('p.max = Infinity;');
|
| -
|
| -debug("Set value to NaN, should throw");
|
| -shouldThrow('p.value = NaN;');
|
| -
|
| -debug("Set value to null and max to 0");
|
| -p.value = null;
|
| -p.max = 0;
|
| -shouldBe("p.value", "0");
|
| -shouldBe("p.max", "1");
|
| -shouldBe("p.position", "0");
|
| -
|
| -debug("Set attributes to valid numbers");
|
| -p.setAttribute("value", 5);
|
| -p.setAttribute("max", 10);
|
| -shouldBe("p.value", "5");
|
| -shouldBe("p.max", "10");
|
| -shouldBe("parseInt(p.getAttribute('value'))", "5");
|
| -shouldBe("parseInt(p.getAttribute('max'))", "10");
|
| -
|
| -debug("Set attributes to invalid values");
|
| -p.setAttribute("value", "ABC");
|
| -p.setAttribute("max", "#");
|
| -shouldBe("p.value", "0");
|
| -shouldBe("p.max", "1");
|
| -shouldBe("p.getAttribute('value')", "'ABC'");
|
| -shouldBe("p.getAttribute('max')", "'#'");
|
| -
|
| -debug("Set value and max to numbers with leading spaces");
|
| -p.setAttribute("value", " 5");
|
| -p.setAttribute("max", " 10");
|
| -shouldBe("p.value", "0");
|
| -shouldBe("p.max", "1");
|
| -shouldBe("p.position", "0");
|
|
|