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

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

Issue 2587743002: The DOMPointReadOnly interface requires serializer. (Closed)
Patch Set: The DOMPointReadOnly interface requires serializer. 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
index c71e8e194dfe1699f5583555480c11e516f7fde9..285cc0a992f713795310e04bf6821a8ab0f52d70 100644
--- 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
@@ -21,4 +21,8 @@ test(() => {
assert_readonly(point, 'w');
}, 'DOMPointReadOnly readonly test');
+test(() => {
+ var point = new DOMPointReadOnly(1, 2, 3, 4);
+ assert_object_equals(point.toJSON(), {x: 1, y: 2, z: 3, w: 4});
+}, 'DOMPointReadOnly toJSON');
</script>

Powered by Google App Engine
This is Rietveld 408576698