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

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: Make attributes immutable and address foolip's comments 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 [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
15 Exposed=Window]
16 interface StaticRange {
17 readonly attribute Node startContainer;
18 readonly attribute unsigned long startOffset;
19 readonly attribute Node endContainer;
20 readonly attribute unsigned long endOffset;
21 readonly attribute boolean collapsed;
22 };
23 </pre>
24
25 <script>
26 (function(){
27 "use strict";
28 const idl_array = new IdlArray();
29 idl_array.add_untested_idls(document.getElementById("untested_idl").textCont ent);
30 idl_array.add_idls(document.getElementById("idl").textContent);
31 idl_array.add_objects({
32 StaticRange: ['new StaticRange()'],
33 });
34 idl_array.test();
35 })();
36 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698