Skip to content

Commit e2c0036

Browse files
committed
fix(asDirectiveSpec): fix spec execution check error in Firefox 38.0.0
1 parent 349000c commit e2c0036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/directive/asSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
describe('a', function() {
3+
describe('as', function() {
44

55
it('should bind in the current scope the controller of a component', function() {
66
var expected = {some: 'value'};
@@ -79,7 +79,7 @@ describe('a', function() {
7979

8080
expect(scope.$ctrl).toBe($ctrl);
8181
expect($ctrl.myDiv).not.toBeUndefined();
82-
expect($ctrl.myDiv && $ctrl.myDiv.innerText).toBe('SUCCESS');
82+
expect($ctrl.myDiv && $ctrl.myDiv.textContent).toBe('SUCCESS'); // https://jsperf.com/innerhtml-vs-innertext/49
8383
dealoc(element);
8484
scope.$destroy();
8585
}));

0 commit comments

Comments
 (0)