Skip to content

Commit

Permalink
CB-8620 Made wp8 tests not to run on windows
Browse files Browse the repository at this point in the history
github close #120
  • Loading branch information
alsorokin authored and sgrebnov committed Mar 6, 2015
1 parent aa9b4ff commit b911ce1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cordova-plugin-mobilespec-tests/tests/localXHR.tests.js
Expand Up @@ -20,6 +20,8 @@
*/

exports.defineAutoTests = function () {
var isWp8 = cordova.platformId === "windowsphone";

describe("XMLHttpRequest", function () {
var errorHandler = {
onError: function (done) {
Expand Down Expand Up @@ -171,7 +173,7 @@ exports.defineAutoTests = function () {

// only add these tests if we are testing on windows phone

if (/Windows Phone/.exec(navigator.userAgent)) {
if (isWp8) {
describe("XMLHttpRequest Windows Phone", function () {

var errorHandler = { onError: function () { } };
Expand All @@ -193,7 +195,6 @@ exports.defineAutoTests = function () {
return xhr;
};

console.log("running special windows tests");
it("XMLHttpRequest.spec.7 should be able to load the (WP8 backwards compatability) root page www/index.html", function (done) {
expect(function () {
createXHR("www/index.html", true, done, errorHandler.onError)
Expand Down

0 comments on commit b911ce1

Please sign in to comment.