Index: third_party/WebKit/LayoutTests/external/wpt/staticrange/idlharness.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/staticrange/idlharness.html b/third_party/WebKit/LayoutTests/external/wpt/staticrange/idlharness.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b6f93fb5dbb682be820e2e89f8683b21011bd6e6 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/staticrange/idlharness.html |
@@ -0,0 +1,36 @@ |
+<title>Static Range IDL tests</title> |
+<link rel="help" href="http://garykac.github.io/staticrange/index.html#interface-staticrange"/> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script src="/resources/WebIDLParser.js"></script> |
+<script src="/resources/idlharness.js"></script> |
+ |
+<pre id="untested_idl"> |
+interface Node { |
+}; |
+</pre> |
+ |
+<pre id='idl'> |
+[Constructor, |
foolip
2017/04/10 07:37:17
Match the spec byte-for-byte if possible. (It does
chongz
2017/04/12 20:47:11
Removed
```
[Constructor, Exposed=Window]
```
to m
|
+Exposed=Window] |
+interface StaticRange { |
+ readonly attribute Node startContainer; |
+ readonly attribute unsigned long startOffset; |
+ readonly attribute Node endContainer; |
+ readonly attribute unsigned long endOffset; |
+ readonly attribute boolean collapsed; |
+}; |
+</pre> |
+ |
+<script> |
+(function(){ |
+ "use strict"; |
+ const idl_array = new IdlArray(); |
+ idl_array.add_untested_idls(document.getElementById("untested_idl").textContent); |
+ idl_array.add_idls(document.getElementById("idl").textContent); |
+ idl_array.add_objects({ |
+ StaticRange: ['new StaticRange()'], |
+ }); |
+ idl_array.test(); |
+})(); |
+</script> |