summaryrefslogtreecommitdiffstats
path: root/tests/DumpRenderTree/src/com/android/dumprendertree/Menu.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/Menu.java')
-rw-r--r--tests/DumpRenderTree/src/com/android/dumprendertree/Menu.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/Menu.java b/tests/DumpRenderTree/src/com/android/dumprendertree/Menu.java
index de0da61..00e0f89 100644
--- a/tests/DumpRenderTree/src/com/android/dumprendertree/Menu.java
+++ b/tests/DumpRenderTree/src/com/android/dumprendertree/Menu.java
@@ -19,6 +19,7 @@ package com.android.dumprendertree;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
+import android.util.Log;
import java.io.File;
@@ -42,15 +43,12 @@ public class Menu extends FileList {
}
void processFile(String filename, boolean selection)
- {
- Intent result = new Intent();
- result.setClass(this, HTMLHostActivity.class);
- result.putExtra(HTMLHostActivity.RESUME_FROM_CRASH, false);
- result.putExtra(HTMLHostActivity.SINGLE_TEST_MODE, true);
- result.putExtra(HTMLHostActivity.TEST_PATH_PREFIX, filename);
- result.putExtra(HTMLHostActivity.TIMEOUT_IN_MILLIS, 8000);
- startActivity(result);
+ {
+ Intent intent = new Intent(Intent.ACTION_VIEW);
+ intent.setClass(this, TestShellActivity.class);
+ intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
+ intent.putExtra(TestShellActivity.TEST_URL, "file://" + filename);
+ startActivity(intent);
}
-
}