| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <meta charset="utf-8"> |
| 3 <title>Geometry Interfaces: DOMPointReadOnly</title> |
| 4 <link rel="help" href="https://drafts.fxtf.org/geometry/#DOMPoint"> |
| 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script src="./resources/geometry-interfaces-test-helpers.js"></script> |
| 8 <script> |
| 9 'use strict'; |
| 10 |
| 11 test(() => { |
| 12 var point = new DOMPointReadOnly(10, 20, 30, 40); |
| 13 assert_dom_point_equals(point, [10, 20, 30, 40]); |
| 14 }, 'DOMPointReadOnly constructor with x, y, z, w parameters'); |
| 15 |
| 16 test(() => { |
| 17 var point = new DOMPointReadOnly(1, 2, 3, 4); |
| 18 assert_readonly(point, 'x'); |
| 19 assert_readonly(point, 'y'); |
| 20 assert_readonly(point, 'z'); |
| 21 assert_readonly(point, 'w'); |
| 22 }, 'DOMPointReadOnly readonly test'); |
| 23 |
| 24 </script> |
| OLD | NEW |