EVOLUTION-MANAGER
Edit File: jquery_test.js
describe("", function() { var rootEl; beforeEach(function() { rootEl = browser.rootEl; browser.get("build/docs/examples/example-example110/index-jquery.html"); }); 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>'); }); }); });