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

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

Issue 2514453005: DOMMatrix: add missing propagation of exceptions. (Closed)
Patch Set: Created 4 years, 1 month 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/DOMMatrix.cpp » ('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-matrix-multiply.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-multiply.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-multiply.html
index bc66520191d0424cbbaf580a93183ab67ea70e82..bc1eec893875a8cf67273d32c912055b9aecc005 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-multiply.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-multiply.html
@@ -26,6 +26,7 @@ test(function() {
assert_false(matrix.is2D);
assert_false(matrix.isIdentity);
assert_array_equals(matrix.toFloat64Array(), result.toFloat64Array());
+ assert_throws(new TypeError(), () => { matrix.multiplySelf({a: 2, m11: 3}) });
}, "DOMMatrix.multiply(other) and DOMMatrix.multiplySelf(other)");
test(function() {
@@ -48,5 +49,6 @@ test(function() {
var result = matrix.preMultiplySelf(other);
assert_3d_matrix_equals(result, [16, 2, 0, 0, 38, 4, 0, 0, 4, 0, 3, 0, 62, 6, 1, 1]);
assert_array_equals(matrix.toFloat64Array(), result.toFloat64Array());
+ assert_throws(new TypeError(), () => { matrix.preMultiplySelf({b: 3, m12: 2}) });
}, "DOMMatrix.preMultiplySelf(other)");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DOMMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698