diff options
| author | Misko Hevery | 2012-02-10 21:35:02 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-02-21 22:46:00 -0800 |
| commit | cb10ccc44fa78b82c80afa1cb5dac2c34fdf24b7 (patch) | |
| tree | 0bbd21a88a43ccaf1f81186b2ecdbcc588870f0b /test/directivesSpec.js | |
| parent | 4a051efb89cf33e30d56f1227d1f6084ead4cd42 (diff) | |
| download | angular.js-cb10ccc44fa78b82c80afa1cb5dac2c34fdf24b7.tar.bz2 | |
feat($compile): mark scope creation with ng-scope class
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 45f1cffc..88e70b50 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -261,7 +261,7 @@ describe("directive", function() { $rootScope.$digest(); $rootScope.dynCls = 'foo'; $rootScope.$digest(); - expect(element[0].className).toBe('ui-panel ui-selected foo'); + expect(element[0].className).toBe('ui-panel ui-selected ng-scope foo'); })); @@ -269,7 +269,7 @@ describe("directive", function() { element = $compile('<div class="panel bar" ng:class="dynCls"></div>')($rootScope); $rootScope.dynCls = 'panel'; $rootScope.$digest(); - expect(element[0].className).toBe('panel bar'); + expect(element[0].className).toBe('panel bar ng-scope'); })); @@ -279,7 +279,7 @@ describe("directive", function() { $rootScope.$digest(); $rootScope.dynCls = 'window'; $rootScope.$digest(); - expect(element[0].className).toBe('bar window'); + expect(element[0].className).toBe('bar ng-scope window'); })); |
