Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/staticrange/idlharness.html

Issue 2791373002: [InputEvent] Make StaticRange immutable and move tests to wpt (Closed)
Patch Set: Remove StaticRange constructor Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <title>Static Range IDL tests</title>
2 <link rel="help" href="http://garykac.github.io/staticrange/index.html#interface -staticrange"/>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="/resources/WebIDLParser.js"></script>
6 <script src="/resources/idlharness.js"></script>
7
8 <pre id="untested_idl">
9 interface Node {
10 };
11 </pre>
12
13 <pre id='idl'>
14 interface StaticRange {
15 readonly attribute Node startContainer;
16 readonly attribute unsigned long startOffset;
17 readonly attribute Node endContainer;
18 readonly attribute unsigned long endOffset;
19 readonly attribute boolean collapsed;
20 };
21 </pre>
22
23 <script>
24 (function(){
25 "use strict";
26 const idl_array = new IdlArray();
27 idl_array.add_untested_idls(document.getElementById("untested_idl").textCont ent);
28 idl_array.add_idls(document.getElementById("idl").textContent);
29 idl_array.test();
30 })();
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698