mirror of
https://github.com/servo/servo.git
synced 2025-06-21 23:59:00 +01:00
Add DOMImplementation skeleton
Creates a DOMImplementation struct corresponding to DOMImplementation WebIDL. Also implements a getter for Document::implementation. Closes #1486.
This commit is contained in:
parent
8f0f2d9ef5
commit
60dd40f412
7 changed files with 97 additions and 4 deletions
17
src/test/html/content/test_document_implementation.html
Normal file
17
src/test/html/content/test_document_implementation.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
<script>
|
||||
// test1: basic test
|
||||
{
|
||||
isnot(document.implementation, null, "test1-0, basic test");
|
||||
is_a(document.implementation, DOMImplementation, "test1-1, basic test");
|
||||
|
||||
var implementation = document.implementation;
|
||||
is(document.implementation, implementation, "test1-2, basic test");
|
||||
}
|
||||
|
||||
finish();
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue