Ejemplo n.º 1
0
 ObservableWrapper.subscribe(a.valueChanges, (value) => {
   expect(value).toEqual(['old1', 'old2']);
   async.done();
 });
Ejemplo n.º 2
0
 inject([StyleInliner], (inliner) => {
   var css = '.main {}';
   var loadedCss = inliner.inlineImports(css, 'http://base');
   expect(loadedCss).toEqual(css);
 }));
Ejemplo n.º 3
0
 function(css) {
   expect(css).toEqual('.one {}\n.two {}\n.main {}');
   async.done();
 },
Ejemplo n.º 4
0
 () => { expect(fakeAsync(() => 'foo')()).toEqual('foo'); });
Ejemplo n.º 5
0
 function(css) {
   expect(css).toEqual(
       '@media (min-width: 700px) and (orientation: landscape) {\n.one {}\n}\n');
   async.done();
 },
Ejemplo n.º 6
0
 it('calling tick should throw', () => {
   expect(() => { tick(); })
       .toThrowError('The code should be running in the fakeAsync zone to call this function');
 });
Ejemplo n.º 7
0
 inject([Parser], fakeAsync((parser) => { expect(parser).toBeAnInstanceOf(Parser); })));
Ejemplo n.º 8
0
 it("should not update the parent when explicitly specified", () => {
   c.updateValue("newValue", {onlySelf: true});
   expect(g.value).toEqual({"one": "oldValue"});
 });
Ejemplo n.º 9
0
 (value) => { expect(value).toEqual("newValue"); });
Ejemplo n.º 10
0
 it("should update the value of the control", () => {
   c.updateValue("newValue");
   expect(c.value).toEqual("newValue");
 });