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

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

Issue 2680023003: [GeometryInterface] add getBounds function in DOMQaud. (Closed)
Patch Set: caching Created 3 years, 10 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
index 7cf37815962694d075863945f5a6d2470fd3aa27..fbc2ab63f167d079aa4859fef393c128bc7ad952 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interface-dom-quad.html
@@ -66,4 +66,14 @@ test(() => {
assert_dom_point_equals(quad.p4, expect_p4, "p4");
}, "DOMQuad() fromQuad - parameter of fromQuad function does not have any point.");
+test(() => {
+ var p1 = new DOMPoint(40, 25, 0, 1);
+ var p2 = new DOMPoint(180, 8, 0, 1);
+ var p3 = new DOMPoint(210, 150, 0, 1);
+ var p4 = new DOMPoint(10, 180, 0, 1);
+ var expect_rect = new DOMRect(10, 8, 200, 172);
+ var quad = new DOMQuad(p1, p2, p3, p4);
+ assert_dom_rect_equals(quad.getBounds(), expect_rect);
+}, "DOMQuad() getBounds");
+
</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