https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7cf8b31850c212e68883f583185b9885a31143cc authored by Geoffrey Sneddon on 30 March 2018, 03:09:04 UTC
Test for used column-count when column-count/width are not auto
Tip revision: 7cf8b31
Document-implementation.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Document.implementation</title>
<link rel=help href="https://dom.spec.whatwg.org/#dom-document-implementation">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
  var implementation = document.implementation;
  assert_true(implementation instanceof DOMImplementation,
              "implementation should implement DOMImplementation");
  assert_equals(document.implementation, implementation);
}, "Getting implementation off the same document");

test(function() {
  var doc = document.implementation.createHTMLDocument();
  assert_not_equals(document.implementation, doc.implementation);
}, "Getting implementation off different documents");
</script>
back to top