fix(test): adds longer timers for NgZone and PromisePipe tests (IE11)

Closes #2055
This commit is contained in:
Marc Laval
2015-05-21 11:54:31 +02:00
parent 665ccafd73
commit 661a04798e
7 changed files with 41 additions and 23 deletions

View File

@ -326,4 +326,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
var baseUri = Uri.parse(uri);
return baseUri.path;
}
String getUserAgent() {
return window.navigator.userAgent;
}
}

View File

@ -372,6 +372,9 @@ getLocation() {
getBaseHref() {
return relativePath(document.baseURI);
}
getUserAgent(): string {
return window.navigator.userAgent;
}
}
// based on urlUtils.js in AngularJS 1

View File

@ -114,4 +114,5 @@ export class DomAdapter {
getHistory() { throw _abstract(); }
getLocation() { throw _abstract(); }
getBaseHref() { throw _abstract(); }
getUserAgent() { throw _abstract(); }
}

View File

@ -303,4 +303,7 @@ class Html5LibDomAdapter implements DomAdapter {
getBaseHref() {
throw 'not implemented';
}
String getUserAgent() {
throw 'not implemented';
}
}

View File

@ -540,6 +540,9 @@ export class Parse5DomAdapter extends DomAdapter {
getLocation() {
throw 'not implemented';
}
getUserAgent() {
return "Fake user agent";
}
}
//TODO: build a proper list, this one is all the keys of a HTMLInputElement