File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
test/cases/parsing/issue-551 Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11var window = { } ;
22
33it ( "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" ;
You can’t perform that action at this time.
0 commit comments