Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0588706

Browse files
committed
fix tests
1 parent de88cef commit 0588706

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/e2e/tests/base_tag.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ describe('SCE URL policy when base tags are present', function() {
55
var urlIsTrusted = browser.executeScript('return isTrustedUrl(arguments[0])', url);
66
expect(urlIsTrusted).toBe(allowed);
77
}
8-
loadFixture('base_tag');
98

10-
// sanity checks
9+
beforeAll(function() {
10+
loadFixture('base_tag');
11+
});
12+
1113
it('allows the page URL (location.href)', function() {
1214
checkUrl(browser.getLocationAbsUrl(), true);
1315
});
16+
1417
it('blocks off-origin URLs', function() {
15-
//browser.pause();
1618
checkUrl('http://evil.com', false);
1719
});
1820

1921
it('allows relative URLs ("/relative")', function() {
20-
//browser.pause();
2122
checkUrl('/relative', true);
2223
});
2324

@@ -28,7 +29,6 @@ describe('SCE URL policy when base tags are present', function() {
2829
it('tracks changes to the base URL', function() {
2930
browser.executeScript(
3031
'document.getElementsByTagName("base")[0].href = "http://xxx.example.com/";');
31-
//browser.pause();
3232
checkUrl('http://xxx.example.com/path/to/file.html', true);
3333
});
3434
});

0 commit comments

Comments
 (0)