From 5d53c19a10ab677d2ebcec0bfecc3b628663f407 Mon Sep 17 00:00:00 2001 From: Guang Zhu Date: Wed, 14 Jul 2010 17:17:54 -0700 Subject: [PATCH] add a paramter to control page-load-termination-on-JS-error A previous change terminates page load if there's certain JS errors; the intention was to speed up layout tests such that page accessing non-existent test controllers/methods will get immediate termination instead of waiting on timeout. However this causes problem for page cycler because it may interrupt the test run too early. Also there was a bug on bracketing on the termination conditions (operator precendence issue). Change-Id: I2f19e48fa0061286fddf0f7cbb4953d7f7d88f76 --- .../com/android/dumprendertree/LayoutTestsAutoTest.java | 1 + .../src/com/android/dumprendertree/TestShellActivity.java | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java index 68d01d4028864..3618c7bc0eb03 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java @@ -336,6 +336,7 @@ public class LayoutTestsAutoTest extends ActivityInstrumentationTestCase2