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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html
new file mode 100644
index 0000000000000000000000000000000000000000..c71e8e194dfe1699f5583555480c11e516f7fde9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html
@@ -0,0 +1,24 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Geometry Interfaces: DOMPointReadOnly</title>
+<link rel="help" href="https://drafts.fxtf.org/geometry/#DOMPoint">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="./resources/geometry-interfaces-test-helpers.js"></script>
+<script>
+'use strict';
+
+test(() => {
+ var point = new DOMPointReadOnly(10, 20, 30, 40);
+ assert_dom_point_equals(point, [10, 20, 30, 40]);
+}, 'DOMPointReadOnly constructor with x, y, z, w parameters');
+
+test(() => {
+ var point = new DOMPointReadOnly(1, 2, 3, 4);
+ assert_readonly(point, 'x');
+ assert_readonly(point, 'y');
+ assert_readonly(point, 'z');
+ assert_readonly(point, 'w');
+}, 'DOMPointReadOnly readonly test');
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698