Index: LayoutTests/imported/web-platform-tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/script-IDL-event-htmlfor.html |
diff --git a/LayoutTests/imported/web-platform-tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/script-IDL-event-htmlfor.html b/LayoutTests/imported/web-platform-tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/script-IDL-event-htmlfor.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..65c2b9a297df7ed2f3d340e3537b9f605d140dda |
--- /dev/null |
+++ b/LayoutTests/imported/web-platform-tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/script-IDL-event-htmlfor.html |
@@ -0,0 +1,57 @@ |
+<!DOCTYPE html> |
+<title>event and htmlFor IDL attributes of HTMLScriptElement</title> |
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> |
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-event"> |
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-htmlfor"> |
+<script src="../../../../../../resources/testharness.js"></script> |
+<script src="../../../../../../resources/testharnessreport.js"></script> |
+<div id="log"></div> |
+<script> |
+test(function() { |
+ var script = document.createElement("script"); |
+ assert_equals(script.event, ""); |
+ assert_equals(script.htmlFor, ""); |
+}) |
+test(function() { |
+ var script = document.createElement("script"); |
+ script.setAttribute("event", "blah"); |
+ script.setAttribute("for", "blah"); |
+ assert_equals(script.event, ""); |
+ assert_equals(script.htmlFor, ""); |
+ assert_equals(script.getAttribute("event"), "blah"); |
+ assert_equals(script.getAttribute("for"), "blah"); |
+}) |
+test(function() { |
+ var script = document.createElement("script"); |
+ script.setAttribute("event", "blah"); |
+ script.setAttribute("for", "blah"); |
+ script.event = "foo"; |
+ script.htmlFor = "foo"; |
+ assert_equals(script.event, ""); |
+ assert_equals(script.htmlFor, ""); |
+ assert_equals(script.getAttribute("event"), "blah"); |
+ assert_equals(script.getAttribute("for"), "blah"); |
+}) |
+test(function() { |
+ var script = document.createElement("script"); |
+ script.setAttribute("event", "blah"); |
+ script.setAttribute("for", "blah"); |
+ script.event = null; |
+ script.htmlFor = null; |
+ assert_equals(script.event, ""); |
+ assert_equals(script.htmlFor, ""); |
+ assert_equals(script.getAttribute("event"), "blah"); |
+ assert_equals(script.getAttribute("for"), "blah"); |
+}) |
+test(function() { |
+ var script = document.createElement("script"); |
+ script.setAttribute("event", "blah"); |
+ script.setAttribute("for", "blah"); |
+ script.event = undefined; |
+ script.htmlFor = undefined; |
+ assert_equals(script.event, ""); |
+ assert_equals(script.htmlFor, ""); |
+ assert_equals(script.getAttribute("event"), "blah"); |
+ assert_equals(script.getAttribute("for"), "blah"); |
+}) |
+</script> |