1 parent 6037f76 commit 6bba5ceCopy full SHA for 6bba5ce
1 file changed
test/cases/parsing/issue-551/index.js
@@ -1,19 +1,25 @@
1
var window = {};
2
3
it("should be able to set the public path", function() {
4
+ var originalValue = __webpack_public_path__;
5
+
6
global.xyz = "xyz";
7
__webpack_public_path__ = global.xyz;
8
__webpack_require__.p.should.be.eql("xyz");
9
+ delete global.xyz;
10
11
window.something = "something";
12
__webpack_public_path__ = window.something;
13
__webpack_require__.p.should.be.eql("something");
14
+ delete window.something;
15
16
__webpack_public_path__ = "abc";
17
__webpack_require__.p.should.be.eql("abc");
18
19
__webpack_public_path__ = func();
20
__webpack_require__.p.should.be.eql("func");
21
22
+ __webpack_public_path__ = originalValue;
23
24
function func() {
25
return "func";
0 commit comments