From cb10ccc44fa78b82c80afa1cb5dac2c34fdf24b7 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 10 Feb 2012 21:35:02 -0800 Subject: feat($compile): mark scope creation with ng-scope class --- test/directivesSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/directivesSpec.js') 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('
')($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'); })); -- cgit v1.2.3