diff options
| author | Chirayu Krishnappa | 2013-08-22 16:31:40 -0700 | 
|---|---|---|
| committer | Chirayu Krishnappa | 2013-08-22 18:42:21 -0700 | 
| commit | 699f86c535cbc01589d60ea1dc48114a93cd4f19 (patch) | |
| tree | 7be771d5a0aff708951be055eceff26ebd193a1d /test | |
| parent | a671b0423c9ce49e483ec306ff44148e0a37c265 (diff) | |
| download | angular.js-699f86c535cbc01589d60ea1dc48114a93cd4f19.tar.bz2 | |
revert: fix($sce): allow IE7 standards mode to pass non-quirks mode test
This reverts commit 637c9b1611c5a75a42048ee1c591521c7031751a.
(ref #3633 and #3646)
The minimum bar for $sce is IE8 in standards mode.  IE7 standards mode
is not supported.  If you must support IE7, you should disable $sce
completely.
  angular.module('ie7support', []).config(function($sceProvider) {
    // Completely disable SCE to support IE7.
    $sceProvider.enabled(false);
  });
Diffstat (limited to 'test')
| -rw-r--r-- | test/ng/sceSpecs.js | 10 | 
1 files changed, 1 insertions, 9 deletions
| diff --git a/test/ng/sceSpecs.js b/test/ng/sceSpecs.js index c8a051e8..75c1fbaa 100644 --- a/test/ng/sceSpecs.js +++ b/test/ng/sceSpecs.js @@ -58,11 +58,7 @@ describe('SCE', function() {      }      it('should throw an exception when sce is enabled in quirks mode', function() { -      runTest(true, 5, true); -    }); - -    it('should NOT throw an exception when sce is enabled and in IE7 standards mode', function() { -      runTest(true, 7, false); +      runTest(true, 7, true);      });      it('should NOT throw an exception when sce is enabled and in standards mode', function() { @@ -74,10 +70,6 @@ describe('SCE', function() {      });      it('should NOT throw an exception when sce is disabled even when in quirks mode', function() { -      runTest(false, 5, false); -    }); - -    it('should NOT throw an exception when sce is disabled and in IE7 standards mode', function() {        runTest(false, 7, false);      }); | 
