Index: LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-interfaces-01.html |
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-interfaces-01.html b/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-interfaces-01.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6360ff2f5ab0ff0d334d3cf747fd025e55173a19 |
--- /dev/null |
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-interfaces-01.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<title>form.elements: interfaces</title> |
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> |
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-form-elements"> |
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#htmlformcontrolscollection"> |
+<script src="../../../../../../resources/testharness.js"></script> |
+<script src="../../../../../../resources/testharnessreport.js"></script> |
+<div id="log"></div> |
+<script> |
+test(function() { |
+ var form = document.createElement("form"); |
+ ["HTMLFormControlsCollection", "HTMLCollection"].forEach(function(i) { |
+ test(function() { |
+ assert_true(i in window, "Interface should exist") |
+ assert_true(form.elements instanceof window[i], |
+ "elements should implement the interface") |
+ }, "Testing interface " + i) |
+ }) |
+}) |
+</script> |