OLD | NEW |
(Empty) | |
| 1 // https://drafts.fxtf.org/geometry/#DOMMatrix |
| 2 |
| 3 importScripts("/resources/testharness.js"); |
| 4 |
| 5 ['DOMMatrix', 'DOMMatrixReadOnly'].forEach(constr => { |
| 6 test(() => { |
| 7 assert_true(constr in self, `${constr} should exist`); |
| 8 assert_throws(new TypeError(), () => new self[constr]('matrix(1,0,0,1,0,0)')
); |
| 9 }, `${constr} constructor with string argument in worker`); |
| 10 }); |
| 11 |
| 12 test(() => { |
| 13 assert_false('setMatrixValue' in DOMMatrix.prototype, 'on prototype'); |
| 14 const matrix = new DOMMatrix(); |
| 15 assert_false('setMatrixValue' in matrix, 'on instance'); |
| 16 }, 'DOMMatrix setMatrixValue in worker'); |
| 17 |
| 18 done(); |
OLD | NEW |