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

Side by Side Diff: LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml ('k') | LayoutTests/svg/dom/SVGPoint.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml ('k') | LayoutTests/svg/dom/SVGPoint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698