Permalink
Browse files

setupTestEnvironment.pl update

  • Loading branch information...
lovelywcm committed Jul 19, 2010
1 parent 781216e commit cd73de8deb2feb6e436b72a75e9ca3a48b72ab70
Showing with 4 additions and 3 deletions.
  1. +4 −3 setupTestEnvironment.pl
View
@@ -48,9 +48,10 @@
my $chromeManifest = fixupFile(readFile("chrome.manifest"));
my $baseURL = cwd;
$baseURL =~ s/\\/\//g;
$baseURL = "file:///$baseURL/chrome";
$chromeManifest =~ s~jar:chrome/\w+\.jar!~$baseURL~g;
$chromeManifest =~ s~^content ~content mochikit $baseURL/content/mochitest/\n$&~m if -d "chrome/content/mochitest";
$baseURL = "file:///$baseURL";
$chromeManifest =~ s~jar:chrome/\w+\.jar!~$baseURL/chrome~g;
$chromeManifest =~ s~^\s*resource\s+\S+\s+~$&$baseURL/~gmi;
$chromeManifest =~ s~^content ~content mochikit $baseURL/chrome/content/mochitest/\n$&~m if -d "chrome/content/mochitest";
push @files, ["chrome.manifest", $chromeManifest];

0 comments on commit cd73de8

Please sign in to comment.