Skip to content

Commit 319b895

Browse files
Merge pull request #136 from angular/master
Update upstream
2 parents c4f3bc5 + 70b801f commit 319b895

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

test/AngularSpec.js

+3-15
Original file line numberDiff line numberDiff line change
@@ -1785,21 +1785,9 @@ describe('angular', function() {
17851785
protocol = 'browserext:'; // Upcoming standard scheme.
17861786
}
17871787

1788-
1789-
if (protocol === 'ms-browser-extension:') {
1790-
// Support: Edge 13-15
1791-
// In Edge, URLs with protocol 'ms-browser-extension:' return "null" for the origin,
1792-
// therefore it's impossible to know if a script is same-origin.
1793-
it('should not bootstrap for same-origin documents', function() {
1794-
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something'}, protocol))).toBe(false);
1795-
});
1796-
1797-
} else {
1798-
it('should bootstrap for same-origin documents', function() {
1799-
1800-
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something'}, protocol))).toBe(true);
1801-
});
1802-
}
1788+
it('should bootstrap for same-origin documents', function() {
1789+
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something'}, protocol))).toBe(true);
1790+
});
18031791

18041792
it('should not bootstrap for cross-origin documents', function() {
18051793
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something-else'}, protocol))).toBe(false);

test/ngSanitize/sanitizeSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('HTML', function() {
261261
});
262262
});
263263

264-
if (!/Edge\/16/.test(window.navigator.userAgent)) {
264+
if (!/Edge\/(16|17)/.test(window.navigator.userAgent)) {
265265
// Skip test on Edge 16 due to browser bug.
266266
it('should throw on a form with an input named "nextSibling"', function() {
267267
inject(function($sanitize) {

0 commit comments

Comments
 (0)