chore(build): add Firefox to CI

This commit is contained in:
Marc Laval
2015-08-19 16:47:18 +02:00
parent 49997ca932
commit 1c9be9b5aa
3 changed files with 15 additions and 2 deletions

View File

@ -14,7 +14,8 @@ import {
it,
inject,
iit,
xit
xit,
isFirefox
} from 'angular2/test_lib';
import {DOM} from 'angular2/src/dom/dom_adapter';
@ -737,6 +738,13 @@ export function main() {
rootTC.componentInstance.form = form;
rootTC.detectChanges();
// In Firefox, effective text selection in the real DOM requires an actual focus
// of the field. This is not an issue in a new HTML document.
if (isFirefox()) {
var fakeDoc = DOM.createHtmlDocument();
DOM.appendChild(fakeDoc.body, rootTC.nativeElement);
}
var input = rootTC.query(By.css("input")).nativeElement;
input.value = "aa";
input.selectionStart = 1;