Skip to content

Commit

Permalink
Skip tests in IE <10.
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyba committed Jul 29, 2014
1 parent c977fb4 commit d76e084
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions javascript/webdriver/test/promise_flow_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

Expand All @@ -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;

Expand All @@ -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) {
Expand Down

0 comments on commit d76e084

Please sign in to comment.