Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
disable SL_IOS9
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed Sep 14, 2017
1 parent d07a832 commit 56aec97
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion karma-dist-sauce-jasmine.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

module.exports = function (config) {
require('./karma-dist-jasmine.conf.js')(config);
require('./sauce.conf')(config);
require('./sauce.conf')(config, ['SL_IOS9']);
};
15 changes: 13 additions & 2 deletions sauce.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Sauce configuration

module.exports = function (config) {
module.exports = function (config, ignoredLaunchers) {
// The WS server is not available with Sauce
config.files.unshift('test/saucelabs.js');

var customLaunchers = {
var basicLaunchers = {
'SL_CHROME': {
base: 'SauceLabs',
browserName: 'chrome',
Expand Down Expand Up @@ -153,6 +153,17 @@ module.exports = function (config) {
}
};

var customLaunchers = {};
if (!ignoredLaunchers) {
customLaunchers = basicLaunchers;
} else {
Object.keys(basicLaunchers).forEach(function(key) {
if (ignoredLaunchers.filter(function(ignore) {return ignore === key;}).length === 0) {
customLaunchers[key] = basicLaunchers[key];
}
});
}

config.set({
captureTimeout: 120000,
browserNoActivityTimeout: 240000,
Expand Down
20 changes: 7 additions & 13 deletions test/rxjs/rxjs.Observable.combine.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ describe('Observable.combine', () => {
const constructorZone1: Zone = Zone.current.fork({name: 'Constructor Zone1'});
const subscriptionZone: Zone = Zone.current.fork({name: 'Subscription Zone'});
observable1 = constructorZone1.run(() => {
const source = Rx.Observable.interval(10);
const highOrder = source
.map((src: any) => {
expect(Zone.current.name).toEqual(constructorZone1.name);
return Rx.Observable.interval(50).take(3);
})
.take(2);
const source = Rx.Observable.of(1, 2, 3);
const highOrder = source.map((src: any) => {
expect(Zone.current.name).toEqual(constructorZone1.name);
return Rx.Observable.of(src);
});
return highOrder.combineAll((x: any, y: any) => {
expect(Zone.current.name).toEqual(constructorZone1.name);
return {x: x, y: y};
Expand All @@ -76,14 +74,10 @@ describe('Observable.combine', () => {
() => {
log.push('completed');
expect(Zone.current.name).toEqual(subscriptionZone.name);
expect(log).toEqual([
{x: 0, y: 0}, {x: 1, y: 0}, {x: 1, y: 1}, {x: 2, y: 1}, {x: 2, y: 2}, 'completed'
]);
expect(log).toEqual([{x: 1, y: 2}, 'completed']);
done();
});
});

expect(log).toEqual([]);
}, Zone.root));

it('combineLatest func callback should run in the correct zone', () => {
Expand Down Expand Up @@ -141,4 +135,4 @@ describe('Observable.combine', () => {

expect(log).toEqual([7, 8, 9, 'completed']);
});
});
});

0 comments on commit 56aec97

Please sign in to comment.