summaryrefslogtreecommitdiffstats
path: root/dom/bindings/test/test_named_getter_enumerability.html
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-08 18:12:08 +0000
committerMoonchild <moonchild@palemoon.org>2020-06-08 18:12:08 +0000
commitb0901eb0990191e1f063bfa13cb11701571612fd (patch)
treea2bf352e4f2cb73fc2000636ea8c2aec0130e82a /dom/bindings/test/test_named_getter_enumerability.html
parente8bdf27ac712ffca8fd680100f3c7d4b33241e49 (diff)
downloadUXP-b0901eb0990191e1f063bfa13cb11701571612fd.tar
UXP-b0901eb0990191e1f063bfa13cb11701571612fd.tar.gz
UXP-b0901eb0990191e1f063bfa13cb11701571612fd.tar.lz
UXP-b0901eb0990191e1f063bfa13cb11701571612fd.tar.xz
UXP-b0901eb0990191e1f063bfa13cb11701571612fd.zip
Issue #439 - Remove, fix and clean up automated tests
With the big amount of code churn around DOM a lot of tests broke severely enough that they caused build bustage. This commit cleans up, removes or otherwise fixes tests that are broken, no longer relevant or obsolete.
Diffstat (limited to 'dom/bindings/test/test_named_getter_enumerability.html')
-rw-r--r--dom/bindings/test/test_named_getter_enumerability.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/dom/bindings/test/test_named_getter_enumerability.html b/dom/bindings/test/test_named_getter_enumerability.html
deleted file mode 100644
index 641f78ab2..000000000
--- a/dom/bindings/test/test_named_getter_enumerability.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Test for named getter enumerability</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<div id="log"></div>
-<script>
-test(function() {
- var list = document.getElementsByTagName("div");
- var desc = Object.getOwnPropertyDescriptor(list, "0");
- assert_equals(typeof desc, "object", "Should have a '0' property");
- assert_true(desc.enumerable, "'0' property should be enumerable");
- desc = Object.getOwnPropertyDescriptor(list, "log");
- assert_equals(typeof desc, "object", "Should have a 'log' property");
- assert_false(desc.enumerable, "'log' property should not be enumerable");
-}, "Correct getOwnPropertyDescriptor behavior");
-test(function() {
- var list = document.getElementsByTagName("div");
- props = [];
- for (var prop in list) {
- props.push(prop);
- }
- assert_not_equals(props.indexOf("0"), -1, "Should enumerate '0'");
- assert_equals(props.indexOf("log"), -1, "Should not enumerate 'log'");
-}, "Correct enumeration behavior");
-test(function() {
- var list = document.getElementsByTagName("div");
- props = Object.keys(list)
- assert_not_equals(props.indexOf("0"), -1, "Keys should contain '0'");
- assert_equals(props.indexOf("log"), -1, "Keys should not contain 'log'");
-}, "Correct keys() behavior");
-test(function() {
- var list = document.getElementsByTagName("div");
- props = Object.getOwnPropertyNames(list)
- assert_not_equals(props.indexOf("0"), -1,
- "own prop names should contain '0'");
- assert_not_equals(props.indexOf("log"), -1,
- "own prop names should contain 'log'");
-}, "Correct getOwnPropertyNames() behavior");
-</script>