OLD | NEW |
| (Empty) |
1 This is a testharness.js-based test. | |
2 PASS Invalid arguments to constructor should throw | |
3 PASS x, y, z and angle values are correct for rotate(0deg) | |
4 PASS x, y, z and angle values are correct for rotate(10deg) | |
5 PASS x, y, z and angle values are correct for rotate(-21deg) | |
6 PASS x, y, z and angle values are correct for rotate(3.2deg) | |
7 PASS x, y, z and angle values are correct for rotate3d(0, 0, 1, 90deg) | |
8 PASS x, y, z and angle values are correct for rotate3d(2.7, -3, 4.4, 0deg) | |
9 PASS x, y, z and angle values are correct for rotate3d(2, 3, 4, 10deg) | |
10 PASS x, y, z and angle values are correct for rotate3d(2, 3.7, -4, -1.2deg) | |
11 PASS x, y, z and angle values are correct for rotate3d(1, 0, 0, 0.5turn) | |
12 PASS is2D value is correct for rotate(0deg) | |
13 PASS is2D value is correct for rotate(10deg) | |
14 PASS is2D value is correct for rotate(-21deg) | |
15 PASS is2D value is correct for rotate(3.2deg) | |
16 PASS is2D value is correct for rotate3d(0, 0, 1, 90deg) | |
17 PASS is2D value is correct for rotate3d(2.7, -3, 4.4, 0deg) | |
18 PASS is2D value is correct for rotate3d(2, 3, 4, 10deg) | |
19 PASS is2D value is correct for rotate3d(2, 3.7, -4, -1.2deg) | |
20 PASS is2D value is correct for rotate3d(1, 0, 0, 0.5turn) | |
21 FAIL toString value is correct for rotate(0deg) assert_equals: expected "rotate(
0deg)" but got "" | |
22 FAIL toString value is correct for rotate(10deg) assert_equals: expected "rotate
(10deg)" but got "" | |
23 FAIL toString value is correct for rotate(-21deg) assert_equals: expected "rotat
e(-21deg)" but got "" | |
24 FAIL toString value is correct for rotate(3.2deg) assert_equals: expected "rotat
e(3.2deg)" but got "" | |
25 FAIL toString value is correct for rotate3d(0, 0, 1, 90deg) assert_equals: expec
ted "rotate3d(0, 0, 1, 90deg)" but got "" | |
26 FAIL toString value is correct for rotate3d(2.7, -3, 4.4, 0deg) assert_equals: e
xpected "rotate3d(2.7, -3, 4.4, 0deg)" but got "" | |
27 FAIL toString value is correct for rotate3d(2, 3, 4, 10deg) assert_equals: expec
ted "rotate3d(2, 3, 4, 10deg)" but got "" | |
28 FAIL toString value is correct for rotate3d(2, 3.7, -4, -1.2deg) assert_equals:
expected "rotate3d(2, 3.7, -4, -1.2deg)" but got "" | |
29 FAIL toString value is correct for rotate3d(1, 0, 0, 0.5turn) assert_equals: exp
ected "rotate3d(1, 0, 0, 0.5turn)" but got "" | |
30 PASS toMatrix works for rotate(0deg) | |
31 FAIL toMatrix works for rotate(10deg) assert_approx_equals: expected 0.9848077 +
/- 0.000001 but got 1 | |
32 FAIL toMatrix works for rotate(-21deg) assert_approx_equals: expected 0.9335804
+/- 0.000001 but got 1 | |
33 FAIL toMatrix works for rotate(3.2deg) assert_approx_equals: expected 0.9984407
+/- 0.000001 but got 1 | |
34 FAIL toMatrix works for rotate3d(0, 0, 1, 90deg) assert_equals: is2D expected fa
lse but got true | |
35 FAIL toMatrix works for rotate3d(2.7, -3, 4.4, 0deg) assert_equals: is2D expecte
d false but got true | |
36 FAIL toMatrix works for rotate3d(2, 3, 4, 10deg) assert_equals: is2D expected fa
lse but got true | |
37 FAIL toMatrix works for rotate3d(2, 3.7, -4, -1.2deg) assert_equals: is2D expect
ed false but got true | |
38 FAIL toMatrix works for rotate3d(1, 0, 0, 0.5turn) assert_equals: is2D expected
false but got true | |
39 PASS Setting x with valid values | |
40 PASS Setting y with valid values | |
41 PASS Setting z with valid values | |
42 PASS Setting angle with valid value | |
43 PASS Setting angle with invalid value | |
44 Harness: the test ran to completion. | |
45 | |
OLD | NEW |