Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>Geometry Interfaces: DOMPointReadOnly</title> | 3 <title>Geometry Interfaces: DOMPointReadOnly</title> |
| 4 <link rel="help" href="https://drafts.fxtf.org/geometry/#DOMPoint"> | 4 <link rel="help" href="https://drafts.fxtf.org/geometry/#DOMPoint"> |
| 5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script src="./resources/geometry-interfaces-test-helpers.js"></script> | 7 <script src="./resources/geometry-interfaces-test-helpers.js"></script> |
| 8 <script> | 8 <script> |
| 9 'use strict'; | 9 'use strict'; |
| 10 | 10 |
| 11 test(() => { | 11 test(() => { |
| 12 var point = new DOMPointReadOnly(10, 20, 30, 40); | 12 var point = new DOMPointReadOnly(10, 20, 30, 40); |
| 13 assert_dom_point_equals(point, [10, 20, 30, 40]); | 13 assert_dom_point_equals(point, [10, 20, 30, 40]); |
| 14 }, 'DOMPointReadOnly constructor with x, y, z, w parameters'); | 14 }, 'DOMPointReadOnly constructor with x, y, z, w parameters'); |
| 15 | 15 |
| 16 test(() => { | 16 test(() => { |
| 17 var point = new DOMPointReadOnly(1, 2, 3, 4); | 17 var point = new DOMPointReadOnly(1, 2, 3, 4); |
| 18 assert_readonly(point, 'x'); | 18 assert_readonly(point, 'x'); |
| 19 assert_readonly(point, 'y'); | 19 assert_readonly(point, 'y'); |
| 20 assert_readonly(point, 'z'); | 20 assert_readonly(point, 'z'); |
| 21 assert_readonly(point, 'w'); | 21 assert_readonly(point, 'w'); |
| 22 }, 'DOMPointReadOnly readonly test'); | 22 }, 'DOMPointReadOnly readonly test'); |
| 23 | 23 |
| 24 </script> | 24 test(() => { |
| 25 var point = DOMPointReadOnly.fromPoint({x: 1, y: 2, z: 3, w: 4}); | |
| 26 assert_dom_point_equals(point, [1, 2, 3, 4]); | |
| 27 }, 'DOMPointReadOnly.fromPoint({x: 1, y: 2, z: 3, w: 4}) should creat a DOMPoint ReadOnly'); | |
|
zino
2016/12/19 18:02:31
nit: should create
Byoungkwon Ko
2016/12/19 18:59:42
Done.
Byoungkwon Ko
2016/12/19 18:59:42
Done.
| |
| 28 | |
| 29 </script> | |
| OLD | NEW |