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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-css-string.worker.js

Issue 2873663002: Import WPT css/geometry-1 (Closed)
Patch Set: x Created 3 years, 7 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
Index: third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-css-string.worker.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-css-string.worker.js b/third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-css-string.worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..2dd3eea1ce4507e0b32f21005b84269dfef883a9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-css-string.worker.js
@@ -0,0 +1,18 @@
+// https://drafts.fxtf.org/geometry/#DOMMatrix
+
+importScripts("/resources/testharness.js");
+
+['DOMMatrix', 'DOMMatrixReadOnly'].forEach(constr => {
+ test(() => {
+ assert_true(constr in self, `${constr} should exist`);
+ assert_throws(new TypeError(), () => new self[constr]('matrix(1,0,0,1,0,0)') );
+ }, `${constr} constructor with string argument in worker`);
+});
+
+test(() => {
+ assert_false('setMatrixValue' in DOMMatrix.prototype, 'on prototype');
+ const matrix = new DOMMatrix();
+ assert_false('setMatrixValue' in matrix, 'on instance');
+}, 'DOMMatrix setMatrixValue in worker');
+
+done();

Powered by Google App Engine
This is Rietveld 408576698