diff options
Diffstat (limited to 'src/ng/sce.js')
| -rw-r--r-- | src/ng/sce.js | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/src/ng/sce.js b/src/ng/sce.js index 321921f5..a7d616a5 100644 --- a/src/ng/sce.js +++ b/src/ng/sce.js @@ -624,13 +624,15 @@ function $SceDelegateProvider() {  ]  </file> -<file name="scenario.js"> +<file name="protractorTest.js">    describe('SCE doc demo', function() {      it('should sanitize untrusted values', function() { -      expect(element('.htmlComment').html()).toBe('<span>Is <i>anyone</i> reading this?</span>'); +      expect(element(by.css('.htmlComment')).getInnerHtml()) +          .toBe('<span>Is <i>anyone</i> reading this?</span>');      }); +      it('should NOT sanitize explicitly trusted values', function() { -      expect(element('#explicitlyTrustedHtml').html()).toBe( +      expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe(            '<span onmouseover="this.textContent="Explicitly trusted HTML bypasses ' +            'sanitization."">Hover over this text.</span>');      }); | 
