Revision 83be7773ed3e2df8c2f8625d11ec35358586e48c authored by Anne van Kesteren on 13 March 2018, 17:31:34 UTC, committed by Anne van Kesteren on 13 March 2018, 17:31:34 UTC
See https://github.com/whatwg/html/pull/3562.
1 parent 970fca8
Raw File
evaluator-constructor.html
<!doctype html>
<meta charset=utf-8>
<title>XPathEvaluator constructor</title>
<link rel=help href="http://wiki.whatwg.org/wiki/DOM_XPath">
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function() {
  var x = new XPathEvaluator();
  assert_true(x instanceof XPathEvaluator);
}, "Constructor with 'new'");
test(function() {
  assert_throws(new TypeError(), "var x = XPathEvaluator()");
}, "Constructor without 'new'");
</script>
back to top