/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/e2e/tests/ready.spec.js
25 строк
803 B
Michał Gołębiowski
feat(jqLite): implement jqLite(f) as alias to jqLite(document).ready(f)
12 окт 2016, 20:31
12 окт 2016, 20:31
369fb7f
Код
Авторство
О чём код?
'use strict'; describe('Firing a callback on ready', function() { it('should not have the div available immediately', function() { loadFixture('ready'); expect(element(by.className('before-ready')).getText()) .toBe(''); }); it('should wait for document ready', function() { loadFixture('ready'); expect(element(by.className('after-ready')).getText()) .toBe('This div is loaded after scripts.'); expect(element(by.className('after-ready-method')).getText()) .toBe('This div is loaded after scripts.'); }); it('should be asynchronous', function() { loadFixture('ready'); expect(element(by.className('after-ready-sync')).getText()) .toBe(''); expect(element(by.className('after-ready-method-sync')).getText()) .toBe(''); }); });