OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
2 <head> | 2 <head> |
3 <script>window.enablePixelTesting = true;</script> | 3 <script>window.enablePixelTesting = true;</script> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script src="../../fast/repaint/resources/repaint.js"></script> | 5 <script src="../../fast/repaint/resources/repaint.js"></script> |
6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
7 function repaintTest() { | 7 function repaintTest() { |
8 window.jsTestIsAsync = true; | 8 window.jsTestIsAsync = true; |
9 if (window.testRunner) | 9 if (window.testRunner) |
10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
11 | 11 |
12 path = document.getElementById("path"); | 12 path = document.getElementById("path"); |
13 shouldBe("path.pathSegList.numberOfItems", "3"); | 13 shouldBe("path.pathSegList.numberOfItems", "3"); |
14 | 14 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 String.prototype.formatDAttribute = function() { | 46 String.prototype.formatDAttribute = function() { |
47 return this.replace(/,/g, " ") // Remove Firefox commas | 47 return this.replace(/,/g, " ") // Remove Firefox commas |
48 .replace(/([A-Z])/g, " $1 ") // "M 100 0L 50 0" -> " M 100 0
L 50 0" | 48 .replace(/([A-Z])/g, " $1 ") // "M 100 0L 50 0" -> " M 100 0
L 50 0" |
49 .replace(/^\s/, "") // " M 100 0" -> "M 100 0" | 49 .replace(/^\s/, "") // " M 100 0" -> "M 100 0" |
50 .replace(/\s\s/g, " "); // If there was already whitespa
ce between coordinates & commands, fix it up again. | 50 .replace(/\s\s/g, " "); // If there was already whitespa
ce between coordinates & commands, fix it up again. |
51 } | 51 } |
52 ]]> | 52 ]]> |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |