feat(WebWorkers): Add WebWorker Todo Example. Add support for more DOM events.
Fixed breakage caused by previous DI commit in WebWorker Todo example
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
library examples.e2e_test.web_workers.todo_spec;
|
||||
|
||||
main() {
|
||||
|
||||
}
|
20
modules/examples/e2e_test/web_workers/todo/todo_spec.ts
Normal file
20
modules/examples/e2e_test/web_workers/todo/todo_spec.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import {verifyNoBrowserErrors} from 'angular2/src/test_lib/e2e_util';
|
||||
import {Promise} from 'angular2/src/facade/async';
|
||||
|
||||
describe('WebWorkers Todo', function() {
|
||||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
var URL = "examples/src/web_workers/todo/index.html";
|
||||
|
||||
it('should bootstrap', () => {
|
||||
browser.get(URL);
|
||||
|
||||
waitForBootstrap();
|
||||
expect(element(by.css("#todoapp header")).getText()).toEqual("todos");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function waitForBootstrap(): void {
|
||||
browser.wait(protractor.until.elementLocated(by.css("todo-app #todoapp")), 5000);
|
||||
}
|
Reference in New Issue
Block a user