summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-09-08 03:20:12 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-09-08 03:20:13 -0700
commitaaa9675b5c81a54ce83af18085d51528ad36320d (patch)
tree8ff8caf77bf6c606017e56d2c4fecd630c48c6e9 /tests
parentdb09da1071f369ebb05aa3b3cd757c7806d964ca (diff)
parent0e2bae14b408d001fea84c0cbdb7348c3ec611a3 (diff)
downloadframeworks_base-aaa9675b5c81a54ce83af18085d51528ad36320d.zip
frameworks_base-aaa9675b5c81a54ce83af18085d51528ad36320d.tar.gz
frameworks_base-aaa9675b5c81a54ce83af18085d51528ad36320d.tar.bz2
Merge "Update DumpRenderTree2 to reflect removal of WEBKIT_MERGE_REVISION"
Diffstat (limited to 'tests')
-rwxr-xr-xtests/DumpRenderTree2/assets/run_apache2.py4
-rw-r--r--tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java11
2 files changed, 7 insertions, 8 deletions
diff --git a/tests/DumpRenderTree2/assets/run_apache2.py b/tests/DumpRenderTree2/assets/run_apache2.py
index 74ab850..5d1e66c 100755
--- a/tests/DumpRenderTree2/assets/run_apache2.py
+++ b/tests/DumpRenderTree2/assets/run_apache2.py
@@ -76,8 +76,8 @@ def main():
directives += " -c \"Alias /LayoutTests " + layout_tests_path + "\""
directives += " -c \"Alias /WebKitTools/DumpRenderTree/android " + \
os.path.join(webkit_path, "WebKitTools", "DumpRenderTree", "android") + "\""
- directives += " -c \"Alias /WEBKIT_MERGE_REVISION " + \
- os.path.join(webkit_path, "WEBKIT_MERGE_REVISION") + "\""
+ directives += " -c \"Alias /ThirdPartyProject.prop " + \
+ os.path.join(webkit_path, "ThirdPartyProject.prop") + "\""
# This directive is commented out in apache2-debian-httpd.conf for some reason
# However, it is useful to browse through tests in the browser, so it's added here.
diff --git a/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java b/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java
index d18fb14..0efb78e 100644
--- a/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java
+++ b/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java
@@ -326,15 +326,14 @@ public class Summarizer {
private String getWebKitRevision() {
URL url = null;
try {
- url = new URL(ForwarderManager.getHostSchemePort(false) + "WEBKIT_MERGE_REVISION");
+ url = new URL(ForwarderManager.getHostSchemePort(false) + "ThirdPartyProject.prop");
} catch (MalformedURLException e) {
assert false;
}
- String webkitMergeRevisionFileContents = new String(FsUtils.readDataFromUrl(url));
- Matcher matcher =
- Pattern.compile("http://svn.webkit.org/repository/webkit/trunk@([0-9]+)").matcher(
- webkitMergeRevisionFileContents);
+ String thirdPartyProjectContents = new String(FsUtils.readDataFromUrl(url));
+ Matcher matcher = Pattern.compile("^version=([0-9]+)", Pattern.MULTILINE).matcher(
+ thirdPartyProjectContents);
if (matcher.find()) {
return matcher.group(1);
}
@@ -482,4 +481,4 @@ public class Summarizer {
}
return url;
}
-} \ No newline at end of file
+}