EVOLUTION-MANAGER
Edit File: protractor.js
describe('SCE doc demo', function() { it('should sanitize untrusted values', function() { expect(element.all(by.css('.htmlComment')).first().getInnerHtml()) .toBe('<span>Is <i>anyone</i> reading this?</span>'); }); it('should NOT sanitize explicitly trusted values', function() { expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe( '<span onmouseover="this.textContent="Explicitly trusted HTML bypasses ' + 'sanitization."">Hover over this text.</span>'); }); });