Changeset 105445 in webkit
- Timestamp:
- Jan 19, 2012 2:04:55 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r105443 r105445 1 2012-01-19 Alexey Proskuryakov <ap@apple.com> 2 3 make-new-script-test should work with HTTP tests 4 https://bugs.webkit.org/show_bug.cgi?id=76603 5 6 Reviewed by Adam Roben. 7 8 * Scripts/make-new-script-test: 9 (makePathToSharedSources): Renamed from makeTestRelativePathToSharedSources(), since it 10 now also creates absolute paths for HTTP. 11 1 12 2012-01-19 Ryosuke Niwa <rniwa@webkit.org> 2 13 -
trunk/Tools/Scripts/make-new-script-test
r99220 r105445 35 35 use webkitdirs; 36 36 37 sub make TestRelativePathToSharedSources;37 sub makePathToSharedSources; 38 38 sub openTestInEditor; 39 39 sub writeTestFile; … … 73 73 exit 0; 74 74 75 sub make TestRelativePathToSharedSources75 sub makePathToSharedSources 76 76 { 77 77 my $layoutTestsPath = getcwd(); 78 78 $testAbsolutePath =~ m/^$layoutTestsPath/ or die "Path $testAbsolutePath is not in LayoutTests directory.\n"; 79 my $result = File::Spec->abs2rel("fast/js/resources/", dirname($testAbsolutePath)); 80 return $result; 79 my $isHTTPTest = $testAbsolutePath =~ m/^$layoutTestsPath\/http/; 80 if ($isHTTPTest) { 81 return "/js-test-resources"; 82 } else { 83 return File::Spec->abs2rel("fast/js/resources/", dirname($testAbsolutePath)); 84 } 81 85 } 82 86 … … 85 89 die "Test $testAbsolutePath already exists.\n" if (-e $testAbsolutePath); 86 90 87 my $ relativePathToSharedSources = makeTestRelativePathToSharedSources();91 my $pathToSharedSources = makePathToSharedSources(); 88 92 89 93 open TEST, ">", ${testAbsolutePath} or die "Cannot create test file at $testAbsolutePath.\n"; … … 93 97 <head> 94 98 <meta charset="utf-8"> 95 <script src="$ relativePathToSharedSources/js-test-pre.js"></script>99 <script src="$pathToSharedSources/js-test-pre.js"></script> 96 100 </head> 97 101 <body> … … 103 107 104 108 </script> 105 <script src="$ relativePathToSharedSources/js-test-post.js"></script>109 <script src="$pathToSharedSources/js-test-post.js"></script> 106 110 </body> 107 111 </html>
Note: See TracChangeset
for help on using the changeset viewer.