From d76e0844b99fd521a95ec398fae00ccc4e627109 Mon Sep 17 00:00:00 2001 From: Jason Leyba Date: Tue, 29 Jul 2014 15:21:29 -0700 Subject: [PATCH] Skip tests in IE <10. --- javascript/webdriver/test/promise_flow_test.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/javascript/webdriver/test/promise_flow_test.js b/javascript/webdriver/test/promise_flow_test.js index 67b4b9c75ce84..69fb263bdec4a 100644 --- a/javascript/webdriver/test/promise_flow_test.js +++ b/javascript/webdriver/test/promise_flow_test.js @@ -33,6 +33,10 @@ var STUB_ERROR = webdriver.test.testutil.STUB_ERROR, var clock, flow, flowHistory, flowTester; +function shouldRunTests() { + return !goog.userAgent.IE || goog.userAgent.isVersionOrHigher(10); +} + function setUp() { clock = webdriver.test.testutil.createMockClock(); @@ -2165,9 +2169,6 @@ function testCancelsRemainingTasksInFrameIfATaskFails() { } function testAnnotatesRejectedPromiseErrorsWithFlowState() { - if (goog.userAgent.IE && !goog.userAgent.isVersionOrHigher(8)) { - return; // stacktrace parsing is off in IE7. - } var error = Error('original message'); var originalStack = webdriver.stacktrace.format(error).stack; @@ -2194,9 +2195,6 @@ function testAnnotatesRejectedPromiseErrorsWithFlowState() { } function testAnnotatesChainedErrors() { - if (goog.userAgent.IE && !goog.userAgent.isVersionOrHigher(8)) { - return; // stacktrace parsing is off in IE7. - } var error = Error('original message'); var originalStack = webdriver.stacktrace.format(error).stack; @@ -2223,9 +2221,6 @@ function testAnnotatesChainedErrors() { } function testAnnotatesRejectedPromiseErrorsWithFlowState_taskErrorBubblesUp() { - if (goog.userAgent.IE && !goog.userAgent.isVersionOrHigher(8)) { - return; // stacktrace parsing is off in IE7. - } var error = Error('original message'); var originalStack = webdriver.stacktrace.format(error).stack; var pair = callbackPair(null, function(e) {