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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html

Issue 2615653003: [GeometryInterface] Implement DOMQuad and DOMQuadInit. (Closed)
Patch Set: add const keyword Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html
new file mode 100644
index 0000000000000000000000000000000000000000..2ffb2b7f0f90c0174b1a203efd12af970e06e43b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="./resources/geometry-interfaces-test-helpers.js"></script>
+<script>
+test(() => {
+ var p1 = new DOMPoint(0, 1, 3, 4);
+ var p2 = new DOMPoint(5, 6, 7, 8);
+ var p3 = new DOMPoint(9, 10, 11, 12);
+ var p4 = new DOMPoint(13, 14, 15, 16);
+ var quad = new DOMQuad(p1, p2, p3, p4);
+ assert_dom_point_equals(quad.p1, p1);
+ assert_dom_point_equals(quad.p2, p2);
+ assert_dom_point_equals(quad.p3, p3);
+ assert_dom_point_equals(quad.p4, p4);
+}, "DOMQuad() constructor");
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698