Skip to content

Commit

Permalink
make chrome tests skip context check
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Mar 21, 2014
1 parent f21db28 commit b3ecd19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/helpers/webview.js
@@ -1,7 +1,8 @@
"use strict";

var env = require("./env"),
uuidGenerator = require('node-uuid');
var env = require("./env")
, _ = require('underscore')
, uuidGenerator = require('node-uuid');

var spinTitle = function (expTitle, browser, _timeout) {
var timeout = typeof _timeout === 'undefined' ? 90 : _timeout;
Expand Down Expand Up @@ -29,7 +30,7 @@ var loadWebView = function (app, browser, urlToLoad, titleToSpin) {
if (typeof titleToSpin === "undefined") {
titleToSpin = uuid;
}
if (app === "safari" || app === "iwebview") {
if (_.contains(["safari", "iwebview", "chrome", "chromium"], app)) {
return browser
.get(urlToLoad)
.then(function () { return spinTitle(titleToSpin, browser); });
Expand Down

0 comments on commit b3ecd19

Please sign in to comment.