| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>DOMImplementation.hasFeature(feature, version)</title> | 3 <title>DOMImplementation.hasFeature(feature, version)</title> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-hasfeatu
re"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-hasfeatu
re"> |
| 5 <script src="../../../../resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="../../../../resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 <div id="log"></div> | 7 <div id="log"></div> |
| 8 <script> | 8 <script> |
| 9 test(function() { | 9 test(function() { |
| 10 var tests = [ | 10 var tests = [ |
| 11 ["Core", "1.0"], | 11 ["Core", "1.0"], |
| 12 ["Core", "2.0"], | 12 ["Core", "2.0"], |
| 13 ["Core", "3.0"], | 13 ["Core", "3.0"], |
| 14 ["Core", "100.0"], | 14 ["Core", "100.0"], |
| 15 ["XML", "1.0"], | 15 ["XML", "1.0"], |
| 16 ["XML", "2.0"], | 16 ["XML", "2.0"], |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 [null, ""], | 132 [null, ""], |
| 133 [undefined, ""], | 133 [undefined, ""], |
| 134 ]; | 134 ]; |
| 135 tests.forEach(function(data) { | 135 tests.forEach(function(data) { |
| 136 test(function() { | 136 test(function() { |
| 137 assert_equals(document.implementation.hasFeature(data[0], data[1]), true) | 137 assert_equals(document.implementation.hasFeature(data[0], data[1]), true) |
| 138 }, "hasFeature(" + format_value(data[0]) + ", " + format_value(data[1]) + ")
") | 138 }, "hasFeature(" + format_value(data[0]) + ", " + format_value(data[1]) + ")
") |
| 139 }) | 139 }) |
| 140 }) | 140 }) |
| 141 </script> | 141 </script> |
| OLD | NEW |