@@ -469,12 +469,12 @@ In these examples we use `<base href="/base/index.html" />`
469
469
it("should show fake browser info on load", function(){
470
470
expect(addressBar.getAttribute('value')).toBe(url);
471
471
472
- expect(element(by.binding('$location.protocol')).getText()).toBe('http');
473
- expect(element(by.binding('$location.host')).getText()).toBe('www.example.com');
474
- expect(element(by.binding('$location.port')).getText()).toBe('80');
475
- expect(element(by.binding('$location.path')).getText()).toBe('/path');
476
- expect(element(by.binding('$location.search')).getText()).toBe('{"a":"b"}');
477
- expect(element(by.binding('$location.hash')).getText()).toBe('h');
472
+ expect(element(by.binding('$location.protocol() ')).getText()).toBe('http');
473
+ expect(element(by.binding('$location.host() ')).getText()).toBe('www.example.com');
474
+ expect(element(by.binding('$location.port() ')).getText()).toBe('80');
475
+ expect(element(by.binding('$location.path() ')).getText()).toBe('/path');
476
+ expect(element(by.binding('$location.search() ')).getText()).toBe('{"a":"b"}');
477
+ expect(element(by.binding('$location.hash() ')).getText()).toBe('h');
478
478
479
479
});
480
480
@@ -485,24 +485,24 @@ In these examples we use `<base href="/base/index.html" />`
485
485
486
486
expect(addressBar.getAttribute('value')).toBe("http://www.example.com/base/first?a=b");
487
487
488
- expect(element(by.binding('$location.protocol')).getText()).toBe('http');
489
- expect(element(by.binding('$location.host')).getText()).toBe('www.example.com');
490
- expect(element(by.binding('$location.port')).getText()).toBe('80');
491
- expect(element(by.binding('$location.path')).getText()).toBe('/first');
492
- expect(element(by.binding('$location.search')).getText()).toBe('{"a":"b"}');
493
- expect(element(by.binding('$location.hash')).getText()).toBe('');
488
+ expect(element(by.binding('$location.protocol() ')).getText()).toBe('http');
489
+ expect(element(by.binding('$location.host() ')).getText()).toBe('www.example.com');
490
+ expect(element(by.binding('$location.port() ')).getText()).toBe('80');
491
+ expect(element(by.binding('$location.path() ')).getText()).toBe('/first');
492
+ expect(element(by.binding('$location.search() ')).getText()).toBe('{"a":"b"}');
493
+ expect(element(by.binding('$location.hash() ')).getText()).toBe('');
494
494
495
495
496
496
navigation.get(1).click();
497
497
498
498
expect(addressBar.getAttribute('value')).toBe("http://www.example.com/base/sec/ond?flag#hash");
499
499
500
- expect(element(by.binding('$location.protocol')).getText()).toBe('http');
501
- expect(element(by.binding('$location.host')).getText()).toBe('www.example.com');
502
- expect(element(by.binding('$location.port')).getText()).toBe('80');
503
- expect(element(by.binding('$location.path')).getText()).toBe('/sec/ond');
504
- expect(element(by.binding('$location.search')).getText()).toBe('{"flag":true}');
505
- expect(element(by.binding('$location.hash')).getText()).toBe('hash');
500
+ expect(element(by.binding('$location.protocol() ')).getText()).toBe('http');
501
+ expect(element(by.binding('$location.host() ')).getText()).toBe('www.example.com');
502
+ expect(element(by.binding('$location.port() ')).getText()).toBe('80');
503
+ expect(element(by.binding('$location.path() ')).getText()).toBe('/sec/ond');
504
+ expect(element(by.binding('$location.search() ')).getText()).toBe('{"flag":true}');
505
+ expect(element(by.binding('$location.hash() ')).getText()).toBe('hash');
506
506
});
507
507
508
508
</file>
@@ -621,12 +621,12 @@ In these examples we use `<base href="/base/index.html" />`
621
621
it("should show fake browser info on load", function(){
622
622
expect(addressBar.getAttribute('value')).toBe(url);
623
623
624
- expect(element(by.binding('$location.protocol')).getText()).toBe('http');
625
- expect(element(by.binding('$location.host')).getText()).toBe('www.example.com');
626
- expect(element(by.binding('$location.port')).getText()).toBe('80');
627
- expect(element(by.binding('$location.path')).getText()).toBe('/path');
628
- expect(element(by.binding('$location.search')).getText()).toBe('{"a":"b"}');
629
- expect(element(by.binding('$location.hash')).getText()).toBe('h');
624
+ expect(element(by.binding('$location.protocol() ')).getText()).toBe('http');
625
+ expect(element(by.binding('$location.host() ')).getText()).toBe('www.example.com');
626
+ expect(element(by.binding('$location.port() ')).getText()).toBe('80');
627
+ expect(element(by.binding('$location.path() ')).getText()).toBe('/path');
628
+ expect(element(by.binding('$location.search() ')).getText()).toBe('{"a":"b"}');
629
+ expect(element(by.binding('$location.hash() ')).getText()).toBe('h');
630
630
631
631
});
632
632
@@ -637,24 +637,24 @@ In these examples we use `<base href="/base/index.html" />`
637
637
638
638
expect(addressBar.getAttribute('value')).toBe("http://www.example.com/base/index.html#!/first?a=b");
639
639
640
- expect(element(by.binding('$location.protocol')).getText()).toBe('http');
641
- expect(element(by.binding('$location.host')).getText()).toBe('www.example.com');
642
- expect(element(by.binding('$location.port')).getText()).toBe('80');
643
- expect(element(by.binding('$location.path')).getText()).toBe('/first');
644
- expect(element(by.binding('$location.search')).getText()).toBe('{"a":"b"}');
645
- expect(element(by.binding('$location.hash')).getText()).toBe('');
640
+ expect(element(by.binding('$location.protocol() ')).getText()).toBe('http');
641
+ expect(element(by.binding('$location.host() ')).getText()).toBe('www.example.com');
642
+ expect(element(by.binding('$location.port() ')).getText()).toBe('80');
643
+ expect(element(by.binding('$location.path() ')).getText()).toBe('/first');
644
+ expect(element(by.binding('$location.search() ')).getText()).toBe('{"a":"b"}');
645
+ expect(element(by.binding('$location.hash() ')).getText()).toBe('');
646
646
647
647
648
648
navigation.get(1).click();
649
649
650
650
expect(addressBar.getAttribute('value')).toBe("http://www.example.com/base/index.html#!/sec/ond?flag#hash");
651
651
652
- expect(element(by.binding('$location.protocol')).getText()).toBe('http');
653
- expect(element(by.binding('$location.host')).getText()).toBe('www.example.com');
654
- expect(element(by.binding('$location.port')).getText()).toBe('80');
655
- expect(element(by.binding('$location.path')).getText()).toBe('/sec/ond');
656
- expect(element(by.binding('$location.search')).getText()).toBe('{"flag":true}');
657
- expect(element(by.binding('$location.hash')).getText()).toBe('hash');
652
+ expect(element(by.binding('$location.protocol() ')).getText()).toBe('http');
653
+ expect(element(by.binding('$location.host() ')).getText()).toBe('www.example.com');
654
+ expect(element(by.binding('$location.port() ')).getText()).toBe('80');
655
+ expect(element(by.binding('$location.path() ')).getText()).toBe('/sec/ond');
656
+ expect(element(by.binding('$location.search() ')).getText()).toBe('{"flag":true}');
657
+ expect(element(by.binding('$location.hash() ')).getText()).toBe('hash');
658
658
659
659
});
660
660
</file>
0 commit comments