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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html

Issue 2588583002: Rewrite the layout test for DOMPoint interface. (Closed)
Patch Set: Rewrite the layout test for DOMPoint interface. Created 4 years 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 <!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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698