summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/another-original.js15
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js110
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js.map1
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js93
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js.map1
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/iframe.html29
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/index.html32
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/new-original.js6
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original-with-no-update.js9
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original.js13
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js86
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js.map1
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/script.js22
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/webpack.config.js54
14 files changed, 472 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/another-original.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/another-original.js
new file mode 100644
index 0000000000..790775ed99
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/another-original.js
@@ -0,0 +1,15 @@
+// This content of this file is added before that of original-with-no-update.js in the generated file
+// bundle-with-another-original.js, its main goal is to just cause the content of the generated file to change.
+function funcA() {
+ funcB();
+ funcC();
+}
+
+function funcB() {
+ console.log("Hello!");
+}
+
+function funcC() {
+ console.log("You made it!");
+}
+funcA();
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js
new file mode 100644
index 0000000000..a09b38f0d5
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js
@@ -0,0 +1,110 @@
+/******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, {
+/******/ configurable: false,
+/******/ enumerable: true,
+/******/ get: getter
+/******/ });
+/******/ }
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = 0);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ (function(module, exports, __webpack_require__) {
+
+__webpack_require__(1);
+module.exports = __webpack_require__(2);
+
+
+/***/ }),
+/* 1 */
+/***/ (function(module, exports) {
+
+// This content of this file is added before that of original-with-no-update.js in the generated file
+// bundle-with-another-original.js, its main goal is to just cause the content of the generated file to change.
+function funcA() {
+ funcB();
+ funcC();
+}
+
+function funcB() {
+ console.log("Hello!");
+}
+
+function funcC() {
+ console.log("You made it!");
+}
+funcA();
+
+/***/ }),
+/* 2 */
+/***/ (function(module, exports) {
+
+window.baabar = function baabar() {
+ return new Promise(resolve => setTimeout(resolve, 100));
+};
+
+window.foobar = async function foobar() {
+ await baabar();
+ console.log("YO");
+};
+foobar();
+
+/***/ })
+/******/ ]);
+//# sourceMappingURL=bundle-with-another-original.js.map \ No newline at end of file
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js.map b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js.map
new file mode 100644
index 0000000000..9513b425bf
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle-with-another-original.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///webpack/bootstrap 389a5d9f33df08ebbd6c","webpack:///./another-original.js","webpack:///./original-with-no-update.js"],"names":["funcA","funcB","funcC","console","log","window","baabar","Promise","resolve","setTimeout","foobar"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;;;;;;;;;AC7DA;AACA;AACA,SAASA,KAAT,GAAiB;AACfC;AACAC;AACD;;AAED,SAASD,KAAT,GAAiB;AACfE,UAAQC,GAAR,CAAY,QAAZ;AACD;;AAED,SAASF,KAAT,GAAiB;AACfC,UAAQC,GAAR,CAAY,cAAZ;AACD;AACDJ,Q;;;;;;ACdAK,OAAOC,MAAP,GAAgB,SAASA,MAAT,GAAkB;AAChC,SAAO,IAAIC,OAAJ,CAAYC,WAAWC,WAAWD,OAAX,EAAoB,GAApB,CAAvB,CAAP;AACD,CAFD;;AAIAH,OAAOK,MAAP,GAAgB,eAAeA,MAAf,GAAwB;AACtC,QAAMJ,QAAN;AACAH,UAAQC,GAAR,CAAY,IAAZ;AACD,CAHD;AAIAM,S","file":"bundle-with-another-original.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 389a5d9f33df08ebbd6c","// This content of this file is added before that of original-with-no-update.js in the generated file\n// bundle-with-another-original.js, its main goal is to just cause the content of the generated file to change.\nfunction funcA() {\n funcB();\n funcC();\n}\n\nfunction funcB() {\n console.log(\"Hello!\");\n}\n\nfunction funcC() {\n console.log(\"You made it!\");\n}\nfuncA();\n\n\n\n// WEBPACK FOOTER //\n// ./another-original.js","window.baabar = function baabar() {\n return new Promise(resolve => setTimeout(resolve, 100))\n}\n\nwindow.foobar = async function foobar() {\n await baabar();\n console.log(\"YO\")\n}\nfoobar();\n\n\n\n// WEBPACK FOOTER //\n// ./original-with-no-update.js"],"sourceRoot":""} \ No newline at end of file
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js
new file mode 100644
index 0000000000..46b60e9164
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js
@@ -0,0 +1,93 @@
+/******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, {
+/******/ configurable: false,
+/******/ enumerable: true,
+/******/ get: getter
+/******/ });
+/******/ }
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = 0);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = __webpack_require__(1);
+
+
+/***/ }),
+/* 1 */
+/***/ (function(module, exports) {
+
+window.bar = function bar() {
+ return new Promise(resolve => setTimeout(resolve, 100));
+};
+
+// New comment
+// to add some
+// non-breakable lines
+window.foo = async function foo() {
+ await bar();
+ console.log("YO");
+};
+
+console.log("HEY");
+
+/***/ })
+/******/ ]);
+//# sourceMappingURL=bundle.js.map \ No newline at end of file
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js.map b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js.map
new file mode 100644
index 0000000000..75b4d8e101
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/bundle.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///webpack/bootstrap c1aed864c247e6fa3c67","webpack:///./original.js"],"names":["window","bar","Promise","resolve","setTimeout","foo","console","log"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;;;;;;;;AC7DAA,OAAOC,GAAP,GAAa,SAASA,GAAT,GAAe;AAC1B,SAAO,IAAIC,OAAJ,CAAYC,WAAWC,WAAWD,OAAX,EAAoB,GAApB,CAAvB,CAAP;AACD,CAFD;;AAIA;AACA;AACA;AACAH,OAAOK,GAAP,GAAa,eAAeA,GAAf,GAAqB;AAChC,QAAMJ,KAAN;AACAK,UAAQC,GAAR,CAAY,IAAZ;AACD,CAHD;;AAKAD,QAAQC,GAAR,CAAY,KAAZ,E","file":"bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c1aed864c247e6fa3c67","window.bar = function bar() {\n return new Promise(resolve => setTimeout(resolve, 100))\n}\n\n// New comment\n// to add some\n// non-breakable lines\nwindow.foo = async function foo() {\n await bar();\n console.log(\"YO\")\n}\n\nconsole.log(\"HEY\")\n\n\n\n// WEBPACK FOOTER //\n// ./original.js"],"sourceRoot":""} \ No newline at end of file
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/iframe.html b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/iframe.html
new file mode 100644
index 0000000000..04a2094e0d
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/iframe.html
@@ -0,0 +1,29 @@
+<!-- Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ -->
+<!doctype html>
+
+<html>
+ <head>
+ <meta charset="utf-8"/>
+ <title>Iframe v2</title>
+ </head>
+
+ <body>
+ <!-- A simple inline script, that helps to cover breakable lines/columns -->
+ <!-- Have them define first, so that we avoid shifting lines when adding new scripts later in the html -->
+ <script>
+ console.log('iframe breakable-line');
+ // Comment
+ </script>
+
+ <!-- A second inline script, that helps cover bugs when having two distinct inline scripts -->
+ <script>
+ console.log("second iframe inline script");
+ // Another comment
+ </script>
+
+ <!-- A script whose URL is loaded in many different ways -->
+ <script src="same-url.sjs"></script>
+ </body>
+
+</html>
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/index.html b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/index.html
new file mode 100644
index 0000000000..7467a29687
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/index.html
@@ -0,0 +1,32 @@
+<!-- Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ -->
+<!doctype html>
+
+<html>
+ <!-- A simple script -->
+ <script src="script.js"></script>
+
+ <!-- A bundle/generated source that contains an updated version of original.js -->
+ <script src="bundle.js"></script>
+
+ <!-- A bundle/generated source that contains original-with-no-update.js as well as content from a newly added another-original.js -->
+ <script src="bundle-with-another-original.js"></script>
+
+ <!-- Another bundle/generated source that contains new-original.js which replaced the content of removed-original.js -->
+ <script src="replaced-bundle.js"></script>
+ <head>
+ <meta charset="utf-8"/>
+ <title>Empty test page 2</title>
+ </head>
+
+ <body>
+ <!-- A simple inline script, that helps to cover breakable lines/columns -->
+ <script>
+ console.log('breakable-line');
+ // Comment
+ </script>
+
+ <iframe src="iframe.html"></script>
+ </body>
+
+</html>
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/new-original.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/new-original.js
new file mode 100644
index 0000000000..4b67c21be1
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/new-original.js
@@ -0,0 +1,6 @@
+// Pad the name with "_" in order to match the same length as v1/removed-original.js
+// and set the column breakpoints on the same column!
+window.____newOriginal = function ____newOriginal() {
+ console.log("New original");
+}
+window.____newOriginal();
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original-with-no-update.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original-with-no-update.js
new file mode 100644
index 0000000000..9fd6ecf110
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original-with-no-update.js
@@ -0,0 +1,9 @@
+window.baabar = function baabar() {
+ return new Promise(resolve => setTimeout(resolve, 100))
+}
+
+window.foobar = async function foobar() {
+ await baabar();
+ console.log("YO")
+}
+foobar();
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original.js
new file mode 100644
index 0000000000..fd36b53b56
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/original.js
@@ -0,0 +1,13 @@
+window.bar = function bar() {
+ return new Promise(resolve => setTimeout(resolve, 100))
+}
+
+// New comment
+// to add some
+// non-breakable lines
+window.foo = async function foo() {
+ await bar();
+ console.log("YO")
+}
+
+console.log("HEY")
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js
new file mode 100644
index 0000000000..040909d520
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js
@@ -0,0 +1,86 @@
+/******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, {
+/******/ configurable: false,
+/******/ enumerable: true,
+/******/ get: getter
+/******/ });
+/******/ }
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = 0);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = __webpack_require__(1);
+
+
+/***/ }),
+/* 1 */
+/***/ (function(module, exports) {
+
+// Pad the name with "_" in order to match the same length as v1/removed-original.js
+// and set the column breakpoints on the same column!
+window.____newOriginal = function ____newOriginal() {
+ console.log("New original");
+};
+window.____newOriginal();
+
+/***/ })
+/******/ ]);
+//# sourceMappingURL=replaced-bundle.js.map \ No newline at end of file
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js.map b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js.map
new file mode 100644
index 0000000000..74cac8bb85
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/replaced-bundle.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///webpack/bootstrap 94a35eb61033f6e1078b","webpack:///./new-original.js"],"names":["window","____newOriginal","console","log"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;;;;;;;;AC7DA;AACA;AACAA,OAAOC,eAAP,GAAyB,SAASA,eAAT,GAA2B;AAClDC,UAAQC,GAAR,CAAY,cAAZ;AACD,CAFD;AAGAH,OAAOC,eAAP,G","file":"replaced-bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 94a35eb61033f6e1078b","// Pad the name with \"_\" in order to match the same length as v1/removed-original.js\n// and set the column breakpoints on the same column!\nwindow.____newOriginal = function ____newOriginal() {\n console.log(\"New original\");\n}\nwindow.____newOriginal();\n\n\n\n// WEBPACK FOOTER //\n// ./new-original.js"],"sourceRoot":""} \ No newline at end of file
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/script.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/script.js
new file mode 100644
index 0000000000..5c55c1e859
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/script.js
@@ -0,0 +1,22 @@
+// Single line comment <<=== this is line 1
+console.log("body instruction");
+/* Multi
+* line
+* comment
+*/
+function bodyFunction() {
+ // Inline comment
+ /* Inline
+ * multiline comment
+ */
+ function inlineFunction() {
+ console.log("nested instruction");
+ }
+ const inlineCount = 1;
+ let inlineLet = 2;
+ var inlineVar = 3;
+ console.log("inline instruction");
+}
+const bodyCount = 1;
+let bodyLet = 2;
+var bodyVar = 3;
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/webpack.config.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/webpack.config.js
new file mode 100644
index 0000000000..88afb5b73e
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-reload-uncompressed/v2/webpack.config.js
@@ -0,0 +1,54 @@
+const path = require("path");
+const webpack = require("webpack");
+
+const config = {
+ devtool: "sourcemap",
+};
+
+if (webpack.version && webpack.version[0] === "4") {
+ // Webpack 3, used in sourcemaps-reload-uncompressed, doesn't support mode attribute.
+ // Webpack 4, used in sourcemaps-reload-compressed we want production mode in order to compress the sources
+ config.mode = "production";
+} else {
+ // Also Webpack 4 doesn't support the module.loaders attribute
+ config.module = {
+ loaders: [
+ {
+ test: /\.js$/,
+ exclude: /node_modules/,
+ loader: "babel-loader",
+ },
+ ],
+ };
+}
+
+const originalBundle = Object.assign({}, config, {
+ entry: [path.join(__dirname, "original.js")],
+ output: {
+ path: __dirname,
+ filename: "bundle.js",
+ },
+});
+
+const bundleWithAnotherOriginalFile = Object.assign({}, config, {
+ entry: [
+ // This should cause the content of `original-with-no-update.js`
+ // to shift in the new `bundle-with-another-original.js` generated.
+ path.join(__dirname, "another-original.js"),
+ path.join(__dirname, "original-with-no-update.js")
+ ],
+ output: {
+ path: __dirname,
+ filename: "bundle-with-another-original.js"
+ }
+});
+
+const replacedBundle = Object.assign({}, config, {
+ entry: [path.join(__dirname, "new-original.js")],
+ output: {
+ path: __dirname,
+ filename: "replaced-bundle.js",
+ },
+});
+
+module.exports = [originalBundle, bundleWithAnotherOriginalFile, replacedBundle];