Skip to content

Commit 6bba5ce

Browse files
committed
fixed browsertests
1 parent 6037f76 commit 6bba5ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cases/parsing/issue-551/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
var window = {};
22

33
it("should be able to set the public path", function() {
4+
var originalValue = __webpack_public_path__;
5+
46
global.xyz = "xyz";
57
__webpack_public_path__ = global.xyz;
68
__webpack_require__.p.should.be.eql("xyz");
9+
delete global.xyz;
710

811
window.something = "something";
912
__webpack_public_path__ = window.something;
1013
__webpack_require__.p.should.be.eql("something");
14+
delete window.something;
1115

1216
__webpack_public_path__ = "abc";
1317
__webpack_require__.p.should.be.eql("abc");
1418

1519
__webpack_public_path__ = func();
1620
__webpack_require__.p.should.be.eql("func");
21+
22+
__webpack_public_path__ = originalValue;
1723

1824
function func() {
1925
return "func";

0 commit comments

Comments
 (0)