fix(test): adds longer timers for NgZone and PromisePipe tests (IE11)
Closes #2055
This commit is contained in:
@ -326,4 +326,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
var baseUri = Uri.parse(uri);
|
||||
return baseUri.path;
|
||||
}
|
||||
String getUserAgent() {
|
||||
return window.navigator.userAgent;
|
||||
}
|
||||
}
|
||||
|
@ -372,6 +372,9 @@ getLocation() {
|
||||
getBaseHref() {
|
||||
return relativePath(document.baseURI);
|
||||
}
|
||||
getUserAgent(): string {
|
||||
return window.navigator.userAgent;
|
||||
}
|
||||
}
|
||||
|
||||
// based on urlUtils.js in AngularJS 1
|
||||
|
@ -114,4 +114,5 @@ export class DomAdapter {
|
||||
getHistory() { throw _abstract(); }
|
||||
getLocation() { throw _abstract(); }
|
||||
getBaseHref() { throw _abstract(); }
|
||||
getUserAgent() { throw _abstract(); }
|
||||
}
|
||||
|
@ -303,4 +303,7 @@ class Html5LibDomAdapter implements DomAdapter {
|
||||
getBaseHref() {
|
||||
throw 'not implemented';
|
||||
}
|
||||
String getUserAgent() {
|
||||
throw 'not implemented';
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user