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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-rect.html

Issue 2603393002: The DOMRectReadOnly implementation are different with spec. (Closed)
Patch Set: The DOMRect/DOMRectReadOnly implementation are different with spec. 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/Source/core/dom/DOMRectReadOnly.idl » ('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-interfaces-dom-rect.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-rect.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-rect.html
index 432ef6c9d1c977c19852aded1ff407206413721a..a9989a3fd15f6b7e1895a68f388482e7b4aefe24 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-rect.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-rect.html
@@ -52,6 +52,26 @@ test(() => {
}, 'DOMRect setter');
test(() => {
+ var rect = new DOMRectReadOnly();
+ assert_dom_rect_equals(rect, [0, 0, 0, 0, 0, 0, 0, 0]);
+}, 'DOMRectReadOnly constructor without parameter');
+
+test(() => {
+ var rect = new DOMRectReadOnly(10);
+ assert_dom_rect_equals(rect, [10, 0, 0, 0, 0, 10, 0, 10]);
+}, 'DOMRectReadOnly constructor with x parameter');
+
+test(() => {
+ var rect = new DOMRectReadOnly(10, 20);
+ assert_dom_rect_equals(rect, [10, 20, 0, 0, 20, 10, 20, 10]);
+}, 'DOMRectReadOnly constructor with x, y parameters');
+
+test(() => {
+ var rect = new DOMRectReadOnly(10, 20, 80);
+ assert_dom_rect_equals(rect, [10, 20, 80, 0, 20, 90, 20, 10]);
+}, 'DOMRectReadOnly constructor with x, y, width parameters');
+
+test(() => {
var rect = new DOMRectReadOnly(10, 20, 80, 50);
assert_dom_rect_equals(rect, [10, 20, 80, 50, 20, 90, 70, 10]);
}, 'DOMRectReadOnly constructor with x, y, width, height parameters');
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DOMRectReadOnly.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698