Bug 1313961 - Update new debugger frontend r=me
--HG-- rename : devtools/client/debugger/new/test/mochitest/.eslintrc.js => devtools/client/debugger/new/test/mochitest/.eslintrc
|
@ -7,7 +7,6 @@ const svg = {
|
|||
"blackBox": require("./blackBox.svg"),
|
||||
"breakpoint": require("./breakpoint.svg"),
|
||||
"close": require("./close.svg"),
|
||||
"disableBreakpoints": require("./disableBreakpoints.svg"),
|
||||
"domain": require("./domain.svg"),
|
||||
"file": require("./file.svg"),
|
||||
"folder": require("./folder.svg"),
|
||||
|
@ -15,6 +14,7 @@ const svg = {
|
|||
"magnifying-glass": require("./magnifying-glass.svg"),
|
||||
"pause": require("./pause.svg"),
|
||||
"pause-exceptions": require("./pause-exceptions.svg"),
|
||||
"plus": require("./plus.svg"),
|
||||
"prettyPrint": require("./prettyPrint.svg"),
|
||||
"resume": require("./resume.svg"),
|
||||
"settings": require("./settings.svg"),
|
||||
|
@ -22,7 +22,9 @@ const svg = {
|
|||
"stepOut": require("./stepOut.svg"),
|
||||
"stepOver": require("./stepOver.svg"),
|
||||
"subSettings": require("./subSettings.svg"),
|
||||
"worker": require("./worker.svg")
|
||||
"toggleBreakpoints": require("./toggle-breakpoints.svg"),
|
||||
"worker": require("./worker.svg"),
|
||||
"sad-face": require("./sad-face.svg")
|
||||
};
|
||||
|
||||
module.exports = function(name, props) { // eslint-disable-line
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="##4A464C">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill-rule="evenodd">
|
||||
<circle cx="8" cy="8.5" r="1.5"/>
|
||||
<path d="M15.498 8.28l-.001-.03v-.002-.004l-.002-.018-.004-.031c0-.002 0-.002 0 0l-.004-.035.006.082c-.037-.296-.133-.501-.28-.661-.4-.522-.915-1.042-1.562-1.604-1.36-1.182-2.74-1.975-4.178-2.309a6.544 6.544 0 0 0-2.755-.042c-.78.153-1.565.462-2.369.91C3.252 5.147 2.207 6 1.252 7.035c-.216.233-.36.398-.499.577-.338.437-.338 1 0 1.437.428.552.941 1.072 1.59 1.635 1.359 1.181 2.739 1.975 4.177 2.308.907.21 1.829.223 2.756.043.78-.153 1.564-.462 2.369-.91 1.097-.612 2.141-1.464 3.097-2.499.217-.235.36-.398.498-.578.12-.128.216-.334.248-.554 0 .01 0 .01-.008.04l.013-.079-.001.011.003-.031.001-.017v.005l.001-.02v.008l.002-.03.001-.05-.001-.044v-.004-.004zm-.954.045v.007l.001.004V8.33v.012l-.001.01v-.005-.005l.002-.015-.001.008c-.002.014-.002.014 0 0l-.007.084c.003-.057-.004-.041-.014-.031-.143.182-.27.327-.468.543-.89.963-1.856 1.752-2.86 2.311-.724.404-1.419.677-2.095.81a5.63 5.63 0 0 1-2.374-.036c-1.273-.295-2.523-1.014-3.774-2.101-.604-.525-1.075-1.001-1.457-1.496-.054-.07-.054-.107 0-.177.117-.152.244-.298.442-.512.89-.963 1.856-1.752 2.86-2.311.724-.404 1.419-.678 2.095-.81a5.631 5.631 0 0 1 2.374.036c1.272.295 2.523 1.014 3.774 2.101.603.524 1.074 1 1.457 1.496.035.041.043.057.046.076 0 .01 0 .01.008.043l-.009-.047.003.02-.002-.013v-.008.016c0-.004 0-.004 0 0v-.004z"/>
|
||||
|
|
До Ширина: | Высота: | Размер: 1.6 KiB После Ширина: | Высота: | Размер: 1.6 KiB |
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="6px" height="6px" viewBox="0 0 6 6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="16px" height="16px" viewBox="0 0 6 6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M1.35191454,5.27895256 L5.31214367,1.35518468 C5.50830675,1.16082764 5.50977084,0.844248536 5.3154138,0.648085456 C5.12105677,0.451922377 4.80447766,0.450458288 4.60831458,0.644815324 L0.648085456,4.56858321 C0.451922377,4.76294025 0.450458288,5.07951935 0.644815324,5.27568243 C0.83917236,5.47184551 1.15575146,5.4733096 1.35191454,5.27895256 L1.35191454,5.27895256 Z" id="Line" stroke="none" fill="#696969" fill-rule="evenodd"></path>
|
||||
<path d="M5.31214367,4.56858321 L1.35191454,0.644815324 C1.15575146,0.450458288 0.83917236,0.451922377 0.644815324,0.648085456 C0.450458288,0.844248536 0.451922377,1.16082764 0.648085456,1.35518468 L4.60831458,5.27895256 C4.80447766,5.4733096 5.12105677,5.47184551 5.3154138,5.27568243 C5.50977084,5.07951935 5.50830675,4.76294025 5.31214367,4.56858321 L5.31214367,4.56858321 Z" id="Line-Copy-2" stroke="none" fill="#696969" fill-rule="evenodd"></path>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 1.2 KiB После Ширина: | Высота: | Размер: 1.2 KiB |
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#DDE1E4">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.05 4.634l-2.144.003-.116.116v1.445l.92.965.492.034.116-.116v-.617L9.13 5.7l.035-.95M12.482 10.38l-1.505-1.462H9.362l-.564.516-.034 1.108.72.768 1.323.034-.117-.116v1.2l.972 1.02.315.034.116-.116v-1.154l.422-.374.034-.927-.117.117h.26l.408-.36V10.5l-.125-.124-.575-.033"/>
|
||||
<path d="M8.47 15.073c-3.088 0-5.6-2.513-5.6-5.602V9.4v-.003c0-.018 0-.018.002-.034l.182-.088.724.587.49.033.497.543-.034.9.317.383h.47l.114.096-.032 1.9.524.553h.105l.025-.338 1.004-.95.054-.474.53-.462v-.888l-.588-.038-1.118-1.155H4.48l-.154-.09V9.01l.155-.1h1.164v-.273l.12-.115.7.033.494-.443.034-.746-.624-.655h-.724v.28l-.11.07H4.64l-.114-.09.025-.64.48-.43v-.244h-.382c-.102 0-.152-.128-.08-.2 1.04-1.01 2.428-1.59 3.903-1.59 1.374 0 2.672.5 3.688 1.39.08.068.03.198-.075.198l-1.144-.034-.81.803.52.523v.16l-.382.388h-.158l-.176-.177v-.16l.076-.074-.252-.252-.37.362.53.53c.072.072.005.194-.096.194l-.752-.005v.844h.783L9.885 8l.16-.143h.16l.62.61v.267l.58.027.003.002V8.76l.18-.03 1.234 1.24.753-.708h.382l.116.108c0 .02.003.016.003.036v.065c0 3.09-2.515 5.603-5.605 5.603M8.47 3C4.904 3 2 5.903 2 9.47c0 3.57 2.903 6.472 6.47 6.472 3.57 0 6.472-2.903 6.472-6.47C14.942 5.9 12.04 3 8.472 3"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 1.5 KiB После Ширина: | Высота: | Размер: 1.5 KiB |
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#DDE1E4">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4 2v12h9V4.775L9.888 2H4zm0-1h5.888c.246 0 .483.09.666.254l3.112 2.774c.212.19.334.462.334.747V14c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1z"/>
|
||||
<path d="M9 1.5v4c0 .325.306.564.62.485l4-1c.27-.067.432-.338.365-.606-.067-.27-.338-.432-.606-.365l-4 1L10 5.5v-4c0-.276-.224-.5-.5-.5s-.5.224-.5.5z"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 645 B После Ширина: | Высота: | Размер: 630 B |
|
@ -1,6 +1,6 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#DDE1E5">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M2 5.193v7.652c0 .003-.002 0 .007 0H14v-7.69c0-.003.002 0-.007 0h-7.53v-2.15c0-.002-.004-.005-.01-.005H2.01C2 3 2 3 2 3.005V5.193zm-1 0V3.005C1 2.45 1.444 2 2.01 2h4.442c.558 0 1.01.45 1.01 1.005v1.15h6.53c.557 0 1.008.44 1.008 1v7.69c0 .553-.45 1-1.007 1H2.007c-.556 0-1.007-.44-1.007-1V5.193zM6.08 4.15H2v1h4.46v-1h-.38z" fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 675 B После Ширина: | Высота: | Размер: 660 B |
|
@ -1,7 +1,4 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="14px" height="14px" viewBox="488 384 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M495.5,391.5 L500.200877,396.200877" id="Line" stroke="#4A90E2" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>
|
||||
<ellipse id="Oval-6" stroke="#4A90E2" stroke-width="1.25" fill="#FFFFFF" fill-rule="evenodd" cx="493.5" cy="389.5" rx="4.5" ry="4.5"></ellipse>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
||||
<path class="st0" d="M9 9.3l3.6 3.6"/>
|
||||
<ellipse fill="transparent" cx="5.9" cy="6.2" rx="4.5" ry="4.5"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 676 B После Ширина: | Высота: | Размер: 200 B |
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#4A464C">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill-rule="evenodd">
|
||||
<path d="M6.5 12.003l.052-9a.5.5 0 1 0-1-.006l-.052 9a.5.5 0 1 0 1 .006zM13 11.997l-.05-9a.488.488 0 0 0-.477-.497.488.488 0 0 0-.473.503l.05 9a.488.488 0 0 0 .477.497.488.488 0 0 0 .473-.503z"/>
|
||||
</g>
|
||||
|
|
До Ширина: | Высота: | Размер: 551 B После Ширина: | Высота: | Размер: 536 B |
|
@ -0,0 +1,6 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.5 8.5V14a.5.5 0 1 1-1 0V8.5H2a.5.5 0 0 1 0-1h5.5V2a.5.5 0 0 1 1 0v5.5H14a.5.5 0 1 1 0 1H8.5z" fill-rule="evenodd"/>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 433 B |
|
@ -1,6 +1,6 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="##4A464C">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.525 13.21h-.472c-.574 0-.987-.154-1.24-.463-.253-.31-.38-.882-.38-1.719v-.573c0-.746-.097-1.265-.292-1.557-.196-.293-.51-.44-.945-.44v-.974c.435 0 .75-.146.945-.44.195-.292.293-.811.293-1.556v-.58c0-.833.126-1.404.379-1.712.253-.31.666-.464 1.24-.464h.472v.783h-.179c-.37 0-.628.08-.774.24-.145.159-.218.54-.218 1.141v.383c0 .824-.096 1.432-.287 1.823-.191.39-.516.679-.974.866.458.191.783.482.974.873.191.39.287.998.287 1.823v.382c0 .602.073.982.218 1.142.146.16.404.239.774.239h.18v.783zm9.502-4.752c-.43 0-.744.147-.942.44-.197.292-.296.811-.296 1.557v.573c0 .837-.125 1.41-.376 1.719-.251.309-.664.463-1.237.463h-.478v-.783h.185c.37 0 .628-.08.774-.24.145-.159.218-.539.218-1.14v-.383c0-.825.096-1.433.287-1.823.191-.39.516-.682.974-.873-.458-.187-.783-.476-.974-.866-.191-.391-.287-.999-.287-1.823v-.383c0-.602-.073-.982-.218-1.142-.146-.159-.404-.239-.774-.239h-.185v-.783h.478c.573 0 .986.155 1.237.464.25.308.376.88.376 1.712v.58c0 .673.088 1.174.263 1.503.176.329.5.493.975.493v.974z" fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 1.3 KiB После Ширина: | Высота: | Размер: 1.3 KiB |
|
@ -1,6 +1,6 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#696969" >
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6.925 12.5l7.4-5-7.4-5v10zM6 12.5v-10c0-.785.8-1.264 1.415-.848l7.4 5c.58.392.58 1.304 0 1.696l-7.4 5C6.8 13.764 6 13.285 6 12.5z" fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 484 B После Ширина: | Высота: | Размер: 468 B |
|
@ -0,0 +1,9 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#D92215">
|
||||
<path d="M8 14.5c-3.6 0-6.5-2.9-6.5-6.5S4.4 1.5 8 1.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zm0-12C5 2.5 2.5 5 2.5 8S5 13.5 8 13.5 13.5 11 13.5 8 11 2.5 8 2.5z"/>
|
||||
<circle cx="5" cy="6" r="1" transform="translate(1 1)"/>
|
||||
<circle cx="9" cy="6" r="1" transform="translate(1 1)"/>
|
||||
<path d="M5.5 11c-.1 0-.2 0-.3-.1-.2-.1-.3-.4-.1-.7C6 9 7 8.5 8.1 8.5c1.7.1 2.8 1.7 2.8 1.8.2.2.1.5-.1.7-.2.1-.6 0-.7-.2 0 0-.9-1.3-2-1.3-.7 0-1.4.4-2.1 1.3-.2.2-.4.2-.5.2z"/>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 772 B |
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#4A464C">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill-rule="evenodd">
|
||||
<path d="M1.5 14.042h4.095a.5.5 0 0 0 0-1H1.5a.5.5 0 1 0 0 1zM7.983 2a.5.5 0 0 1 .517.5v7.483l3.136-3.326a.5.5 0 1 1 .728.686l-4 4.243a.499.499 0 0 1-.73-.004L3.635 7.343a.5.5 0 0 1 .728-.686L7.5 9.983V3H1.536C1.24 3 1 2.776 1 2.5s.24-.5.536-.5h6.447zM10.5 14.042h4.095a.5.5 0 0 0 0-1H10.5a.5.5 0 1 0 0 1z"/>
|
||||
</g>
|
||||
|
|
До Ширина: | Высота: | Размер: 664 B После Ширина: | Высота: | Размер: 649 B |
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="##4A464C">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill-rule="evenodd">
|
||||
<path d="M5 13.5H1a.5.5 0 1 0 0 1h4a.5.5 0 1 0 0-1zM12 13.5H8a.5.5 0 1 0 0 1h4a.5.5 0 1 0 0-1zM6.11 5.012A.427.427 0 0 1 6.21 5h7.083L9.646 1.354a.5.5 0 1 1 .708-.708l4.5 4.5a.498.498 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708-.708L13.293 6H6.5v5.5a.5.5 0 1 1-1 0v-6a.5.5 0 0 1 .61-.488z"/>
|
||||
</g>
|
||||
|
|
До Ширина: | Высота: | Размер: 642 B После Ширина: | Высота: | Размер: 626 B |
|
@ -1,7 +1,7 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#4A464C">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill-rule="evenodd">
|
||||
<path d="M13.297 6.912C12.595 4.39 10.167 2.5 7.398 2.5A5.898 5.898 0 0 0 1.5 8.398a.5.5 0 0 0 1 0A4.898 4.898 0 0 1 7.398 3.5c2.75 0 5.102 2.236 5.102 4.898v.004L8.669 7.029a.5.5 0 0 0-.338.942l4.462 1.598a.5.5 0 0 0 .651-.34.506.506 0 0 0 .02-.043l2-5a.5.5 0 1 0-.928-.372l-1.24 3.098z"/>
|
||||
<circle cx="7" cy="12" r="1"/>
|
||||
|
|
До Ширина: | Высота: | Размер: 681 B После Ширина: | Высота: | Размер: 666 B |
|
@ -1,6 +1,6 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#696969">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.219 7c.345 0 .635.117.869.352.234.234.351.524.351.869 0 .351-.118.652-.356.903-.238.25-.526.376-.864.376-.332 0-.615-.125-.85-.376a1.276 1.276 0 0 1-.351-.903A1.185 1.185 0 0 1 12.218 7zM8.234 7c.345 0 .635.117.87.352.234.234.351.524.351.869 0 .351-.119.652-.356.903-.238.25-.526.376-.865.376-.332 0-.613-.125-.844-.376a1.286 1.286 0 0 1-.347-.903c0-.352.114-.643.342-.874.228-.231.51-.347.85-.347zM4.201 7c.339 0 .627.117.864.352.238.234.357.524.357.869 0 .351-.119.652-.357.903-.237.25-.525.376-.864.376-.338 0-.623-.125-.854-.376A1.286 1.286 0 0 1 3 8.221 1.185 1.185 0 0 1 4.201 7z" fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 942 B После Ширина: | Высота: | Размер: 927 B |
|
@ -0,0 +1,8 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill-rule="evenodd">
|
||||
<path d="M3.233 11.25l-.417 1H1.712C.763 12.25 0 11.574 0 10.747V6.503C0 5.675.755 5 1.712 5h4.127l-.417 1H1.597C1.257 6 1 6.225 1 6.503v4.244c0 .277.267.503.597.503h1.636zM7.405 11.27L7 12.306c.865.01 2.212-.024 2.315-.04.112-.016.112-.016.185-.035.075-.02.156-.046.251-.082.152-.056.349-.138.592-.244.415-.182.962-.435 1.612-.744l.138-.066a179.35 179.35 0 0 0 2.255-1.094c1.191-.546 1.191-2.074-.025-2.632l-.737-.34a3547.554 3547.554 0 0 0-3.854-1.78c-.029.11-.065.222-.11.336l-.232.596c.894.408 4.56 2.107 4.56 2.107.458.21.458.596 0 .806L9.197 11.27H7.405zM4.462 14.692l5-12a.5.5 0 1 0-.924-.384l-5 12a.5.5 0 1 0 .924.384z"/>
|
||||
</g>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 970 B |
|
@ -1,6 +1,6 @@
|
|||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#DDE1E4">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M8.5 8.793L5.854 6.146l-.04-.035L7.5 4.426c.2-.2.3-.4.3-.6 0-.2-.1-.4-.2-.6l-1-1c-.4-.3-.9-.3-1.2 0l-4.1 4.1c-.2.2-.3.4-.3.6 0 .2.1.4.2.6l1 1c.3.3.9.3 1.2 0l1.71-1.71.036.04L7.793 9.5l-3.647 3.646c-.195.196-.195.512 0 .708.196.195.512.195.708 0L8.5 10.207l3.646 3.647c.196.195.512.195.708 0 .195-.196.195-.512 0-.708L9.207 9.5l2.565-2.565L13.3 8.5c.1.1 2.3 1.1 2.7.7.4-.4-.3-2.7-.5-2.9l-1.1-1.1c.1-.1.2-.4.2-.6 0-.2-.1-.4-.2-.6l-.4-.4c-.3-.3-.8-.3-1.1 0l-1.5-1.4c-.2-.2-.3-.2-.5-.2s-.3.1-.5.2L9.2 3.4c-.2.1-.2.2-.2.4s.1.4.2.5l1.874 1.92L8.5 8.792z"/>
|
||||
</svg>
|
||||
|
|
До Ширина: | Высота: | Размер: 900 B После Ширина: | Высота: | Размер: 885 B |
|
@ -46,17 +46,8 @@ var Debugger =
|
|||
/***/ 0:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var prettyFast = __webpack_require__(417);
|
||||
|
||||
self.onmessage = function (msg) {
|
||||
var _prettyPrint = prettyPrint(msg.data);
|
||||
|
||||
var code = _prettyPrint.code;
|
||||
var mappings = _prettyPrint.mappings;
|
||||
|
||||
mappings = invertMappings(mappings);
|
||||
self.postMessage({ code, mappings });
|
||||
};
|
||||
var prettyFast = __webpack_require__(453);
|
||||
var assert = __webpack_require__(245);
|
||||
|
||||
function prettyPrint(_ref) {
|
||||
var url = _ref.url;
|
||||
|
@ -97,10 +88,44 @@ var Debugger =
|
|||
return mapping;
|
||||
});
|
||||
}
|
||||
|
||||
self.onmessage = function (msg) {
|
||||
var _msg$data = msg.data;
|
||||
var id = _msg$data.id;
|
||||
var args = _msg$data.args;
|
||||
|
||||
assert(msg.data.method === "prettyPrint", "Method must be `prettyPrint`");
|
||||
|
||||
try {
|
||||
var _prettyPrint = prettyPrint(args[0]);
|
||||
|
||||
var code = _prettyPrint.code;
|
||||
var mappings = _prettyPrint.mappings;
|
||||
|
||||
self.postMessage({ id, response: {
|
||||
code, mappings: invertMappings(mappings)
|
||||
} });
|
||||
} catch (e) {
|
||||
self.postMessage({ id, error: e });
|
||||
}
|
||||
};
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 417:
|
||||
/***/ 245:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
function assert(condition, message) {
|
||||
if (!condition) {
|
||||
throw new Error("Assertion failure: " + message);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = assert;
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 453:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* -*- indent-tabs-mode: nil; js-indent-level: 2; fill-column: 80 -*- */
|
||||
|
@ -122,8 +147,8 @@ var Debugger =
|
|||
}(this, function () {
|
||||
"use strict";
|
||||
|
||||
var acorn = this.acorn || __webpack_require__(418);
|
||||
var sourceMap = this.sourceMap || __webpack_require__(419);
|
||||
var acorn = this.acorn || __webpack_require__(454);
|
||||
var sourceMap = this.sourceMap || __webpack_require__(455);
|
||||
var SourceNode = sourceMap.SourceNode;
|
||||
|
||||
// If any of these tokens are seen before a "[" token, we know that "[" token
|
||||
|
@ -982,7 +1007,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 418:
|
||||
/***/ 454:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
||||
|
@ -3642,7 +3667,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 419:
|
||||
/***/ 455:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/*
|
||||
|
@ -3650,14 +3675,14 @@ var Debugger =
|
|||
* Licensed under the New BSD license. See LICENSE.txt or:
|
||||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
exports.SourceMapGenerator = __webpack_require__(420).SourceMapGenerator;
|
||||
exports.SourceMapConsumer = __webpack_require__(426).SourceMapConsumer;
|
||||
exports.SourceNode = __webpack_require__(428).SourceNode;
|
||||
exports.SourceMapGenerator = __webpack_require__(456).SourceMapGenerator;
|
||||
exports.SourceMapConsumer = __webpack_require__(462).SourceMapConsumer;
|
||||
exports.SourceNode = __webpack_require__(464).SourceNode;
|
||||
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 420:
|
||||
/***/ 456:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -3671,10 +3696,10 @@ var Debugger =
|
|||
}
|
||||
!(__WEBPACK_AMD_DEFINE_RESULT__ = function (require, exports, module) {
|
||||
|
||||
var base64VLQ = __webpack_require__(421);
|
||||
var util = __webpack_require__(423);
|
||||
var ArraySet = __webpack_require__(424).ArraySet;
|
||||
var MappingList = __webpack_require__(425).MappingList;
|
||||
var base64VLQ = __webpack_require__(457);
|
||||
var util = __webpack_require__(459);
|
||||
var ArraySet = __webpack_require__(460).ArraySet;
|
||||
var MappingList = __webpack_require__(461).MappingList;
|
||||
|
||||
/**
|
||||
* An instance of the SourceMapGenerator represents a source map which is
|
||||
|
@ -4064,7 +4089,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 421:
|
||||
/***/ 457:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -4108,7 +4133,7 @@ var Debugger =
|
|||
}
|
||||
!(__WEBPACK_AMD_DEFINE_RESULT__ = function (require, exports, module) {
|
||||
|
||||
var base64 = __webpack_require__(422);
|
||||
var base64 = __webpack_require__(458);
|
||||
|
||||
// A single base 64 digit can contain 6 bits of data. For the base 64 variable
|
||||
// length quantities we use in the source map spec, the first bit is the sign,
|
||||
|
@ -4213,7 +4238,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 422:
|
||||
/***/ 458:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -4262,7 +4287,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 423:
|
||||
/***/ 459:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -4588,7 +4613,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 424:
|
||||
/***/ 460:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -4602,7 +4627,7 @@ var Debugger =
|
|||
}
|
||||
!(__WEBPACK_AMD_DEFINE_RESULT__ = function (require, exports, module) {
|
||||
|
||||
var util = __webpack_require__(423);
|
||||
var util = __webpack_require__(459);
|
||||
|
||||
/**
|
||||
* A data structure which is a combination of an array and a set. Adding a new
|
||||
|
@ -4692,7 +4717,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 425:
|
||||
/***/ 461:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -4706,7 +4731,7 @@ var Debugger =
|
|||
}
|
||||
!(__WEBPACK_AMD_DEFINE_RESULT__ = function (require, exports, module) {
|
||||
|
||||
var util = __webpack_require__(423);
|
||||
var util = __webpack_require__(459);
|
||||
|
||||
/**
|
||||
* Determine whether mappingB is after mappingA with respect to generated
|
||||
|
@ -4785,7 +4810,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 426:
|
||||
/***/ 462:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -4799,10 +4824,10 @@ var Debugger =
|
|||
}
|
||||
!(__WEBPACK_AMD_DEFINE_RESULT__ = function (require, exports, module) {
|
||||
|
||||
var util = __webpack_require__(423);
|
||||
var binarySearch = __webpack_require__(427);
|
||||
var ArraySet = __webpack_require__(424).ArraySet;
|
||||
var base64VLQ = __webpack_require__(421);
|
||||
var util = __webpack_require__(459);
|
||||
var binarySearch = __webpack_require__(463);
|
||||
var ArraySet = __webpack_require__(460).ArraySet;
|
||||
var base64VLQ = __webpack_require__(457);
|
||||
|
||||
/**
|
||||
* A SourceMapConsumer instance represents a parsed source map which we can
|
||||
|
@ -5367,7 +5392,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 427:
|
||||
/***/ 463:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -5454,7 +5479,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 428:
|
||||
/***/ 464:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -5468,8 +5493,8 @@ var Debugger =
|
|||
}
|
||||
!(__WEBPACK_AMD_DEFINE_RESULT__ = function (require, exports, module) {
|
||||
|
||||
var SourceMapGenerator = __webpack_require__(420).SourceMapGenerator;
|
||||
var util = __webpack_require__(423);
|
||||
var SourceMapGenerator = __webpack_require__(456).SourceMapGenerator;
|
||||
var util = __webpack_require__(459);
|
||||
|
||||
// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
|
||||
// operating systems these days (capturing the result).
|
||||
|
|
|
@ -175,22 +175,22 @@ var Debugger =
|
|||
|
||||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
|
||||
|
||||
var networkRequest = __webpack_require__(178);
|
||||
var URL = __webpack_require__(230);
|
||||
var path = __webpack_require__(224);
|
||||
var networkRequest = __webpack_require__(205);
|
||||
var URL = __webpack_require__(289);
|
||||
var path = __webpack_require__(276);
|
||||
|
||||
var _require = __webpack_require__(429);
|
||||
var _require = __webpack_require__(465);
|
||||
|
||||
var SourceMapConsumer = _require.SourceMapConsumer;
|
||||
var SourceMapGenerator = _require.SourceMapGenerator;
|
||||
|
||||
var _require2 = __webpack_require__(223);
|
||||
var _require2 = __webpack_require__(275);
|
||||
|
||||
var isJavaScript = _require2.isJavaScript;
|
||||
|
||||
var assert = __webpack_require__(189);
|
||||
var assert = __webpack_require__(245);
|
||||
|
||||
var _require3 = __webpack_require__(216);
|
||||
var _require3 = __webpack_require__(263);
|
||||
|
||||
var originalToGeneratedId = _require3.originalToGeneratedId;
|
||||
var generatedToOriginalId = _require3.generatedToOriginalId;
|
||||
|
@ -267,7 +267,9 @@ var Debugger =
|
|||
}
|
||||
|
||||
// Fire off the request, set it in the cache, and return it.
|
||||
var req = _resolveAndFetch(generatedSource);
|
||||
// Suppress any errors and just return null (ignores bogus
|
||||
// sourcemaps).
|
||||
var req = _resolveAndFetch(generatedSource).catch(() => null);
|
||||
sourceMapRequests.set(generatedSource.id, req);
|
||||
return req;
|
||||
}
|
||||
|
@ -299,7 +301,7 @@ var Debugger =
|
|||
|
||||
var response = publicInterface[method].apply(undefined, args);
|
||||
if (response instanceof Promise) {
|
||||
response.then(val => self.postMessage({ id, response: val }), err => self.postMessage({ id, response: err }));
|
||||
response.then(val => self.postMessage({ id, response: val }), err => self.postMessage({ id, error: err }));
|
||||
} else {
|
||||
self.postMessage({ id, response });
|
||||
}
|
||||
|
@ -307,29 +309,29 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 103:
|
||||
/***/ 77:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
module.exports = function(module) {
|
||||
if(!module.webpackPolyfill) {
|
||||
module.deprecate = function() {};
|
||||
module.paths = [];
|
||||
// module.parent = undefined by default
|
||||
module.children = [];
|
||||
module.webpackPolyfill = 1;
|
||||
}
|
||||
return module;
|
||||
}
|
||||
module.exports = function(module) {
|
||||
if(!module.webpackPolyfill) {
|
||||
module.deprecate = function() {};
|
||||
module.paths = [];
|
||||
// module.parent = undefined by default
|
||||
module.children = [];
|
||||
module.webpackPolyfill = 1;
|
||||
}
|
||||
return module;
|
||||
}
|
||||
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 178:
|
||||
/***/ 205:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
function networkRequest(url, opts) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const req = new XMLHttpRequest();
|
||||
var req = new XMLHttpRequest();
|
||||
|
||||
req.addEventListener("readystatechange", () => {
|
||||
if (req.readyState === XMLHttpRequest.DONE) {
|
||||
|
@ -357,10 +359,9 @@ var Debugger =
|
|||
|
||||
module.exports = networkRequest;
|
||||
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 186:
|
||||
/***/ 242:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
|
||||
|
@ -373,7 +374,7 @@ var Debugger =
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
var co = __webpack_require__(187);
|
||||
var co = __webpack_require__(243);
|
||||
|
||||
function asPaused(client, func) {
|
||||
if (client.state != "paused") {
|
||||
|
@ -587,7 +588,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 187:
|
||||
/***/ 243:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
|
||||
|
@ -831,7 +832,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 189:
|
||||
/***/ 245:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
function assert(condition, message) {
|
||||
|
@ -844,10 +845,10 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 216:
|
||||
/***/ 263:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var md5 = __webpack_require__(217);
|
||||
var md5 = __webpack_require__(264);
|
||||
|
||||
function originalToGeneratedId(originalId) {
|
||||
var match = originalId.match(/(.*)\/originalSource/);
|
||||
|
@ -872,14 +873,14 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 217:
|
||||
/***/ 264:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
(function(){
|
||||
var crypt = __webpack_require__(218),
|
||||
utf8 = __webpack_require__(219).utf8,
|
||||
isBuffer = __webpack_require__(220),
|
||||
bin = __webpack_require__(219).bin,
|
||||
var crypt = __webpack_require__(265),
|
||||
utf8 = __webpack_require__(266).utf8,
|
||||
isBuffer = __webpack_require__(267),
|
||||
bin = __webpack_require__(266).bin,
|
||||
|
||||
// The core
|
||||
md5 = function (message, options) {
|
||||
|
@ -1039,7 +1040,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 218:
|
||||
/***/ 265:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
(function() {
|
||||
|
@ -1142,7 +1143,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 219:
|
||||
/***/ 266:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
var charenc = {
|
||||
|
@ -1182,7 +1183,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 220:
|
||||
/***/ 267:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
/*!
|
||||
|
@ -1210,14 +1211,14 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 223:
|
||||
/***/ 275:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var _require = __webpack_require__(186);
|
||||
var _require = __webpack_require__(242);
|
||||
|
||||
var endTruncateStr = _require.endTruncateStr;
|
||||
|
||||
var _require2 = __webpack_require__(224);
|
||||
var _require2 = __webpack_require__(276);
|
||||
|
||||
var basename = _require2.basename;
|
||||
|
||||
|
@ -1248,7 +1249,6 @@ var Debugger =
|
|||
return url && /\.(jsm|js)?$/.test(trimUrlQuery(url)) || contentType.includes("javascript");
|
||||
}
|
||||
|
||||
// TODO: This should use a shared Source type
|
||||
function isPretty(source) {
|
||||
return source.url ? /formatted$/.test(source.url) : false;
|
||||
}
|
||||
|
@ -1278,7 +1278,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 224:
|
||||
/***/ 276:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
function basename(path) {
|
||||
|
@ -1304,7 +1304,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 230:
|
||||
/***/ 289:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
// Copyright Joyent, Inc. and other Node contributors.
|
||||
|
@ -1328,7 +1328,7 @@ var Debugger =
|
|||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
var punycode = __webpack_require__(231);
|
||||
var punycode = __webpack_require__(290);
|
||||
|
||||
exports.parse = urlParse;
|
||||
exports.resolve = urlResolve;
|
||||
|
@ -1400,7 +1400,7 @@ var Debugger =
|
|||
'gopher:': true,
|
||||
'file:': true
|
||||
},
|
||||
querystring = __webpack_require__(232);
|
||||
querystring = __webpack_require__(291);
|
||||
|
||||
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
||||
if (url && isObject(url) && url instanceof Url) return url;
|
||||
|
@ -2018,7 +2018,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 231:
|
||||
/***/ 290:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/punycode v1.3.2 by @mathias */
|
||||
|
@ -2550,22 +2550,22 @@ var Debugger =
|
|||
|
||||
}(this));
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(103)(module), (function() { return this; }())))
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(77)(module), (function() { return this; }())))
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 232:
|
||||
/***/ 291:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
'use strict';
|
||||
|
||||
exports.decode = exports.parse = __webpack_require__(233);
|
||||
exports.encode = exports.stringify = __webpack_require__(234);
|
||||
exports.decode = exports.parse = __webpack_require__(292);
|
||||
exports.encode = exports.stringify = __webpack_require__(293);
|
||||
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 233:
|
||||
/***/ 292:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
// Copyright Joyent, Inc. and other Node contributors.
|
||||
|
@ -2652,7 +2652,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 234:
|
||||
/***/ 293:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
// Copyright Joyent, Inc. and other Node contributors.
|
||||
|
@ -2723,7 +2723,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 429:
|
||||
/***/ 465:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/*
|
||||
|
@ -2731,14 +2731,14 @@ var Debugger =
|
|||
* Licensed under the New BSD license. See LICENSE.txt or:
|
||||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
exports.SourceMapGenerator = __webpack_require__(430).SourceMapGenerator;
|
||||
exports.SourceMapConsumer = __webpack_require__(436).SourceMapConsumer;
|
||||
exports.SourceNode = __webpack_require__(439).SourceNode;
|
||||
exports.SourceMapGenerator = __webpack_require__(466).SourceMapGenerator;
|
||||
exports.SourceMapConsumer = __webpack_require__(472).SourceMapConsumer;
|
||||
exports.SourceNode = __webpack_require__(475).SourceNode;
|
||||
|
||||
|
||||
/***/ },
|
||||
|
||||
/***/ 430:
|
||||
/***/ 466:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -2748,10 +2748,10 @@ var Debugger =
|
|||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
|
||||
var base64VLQ = __webpack_require__(431);
|
||||
var util = __webpack_require__(433);
|
||||
var ArraySet = __webpack_require__(434).ArraySet;
|
||||
var MappingList = __webpack_require__(435).MappingList;
|
||||
var base64VLQ = __webpack_require__(467);
|
||||
var util = __webpack_require__(469);
|
||||
var ArraySet = __webpack_require__(470).ArraySet;
|
||||
var MappingList = __webpack_require__(471).MappingList;
|
||||
|
||||
/**
|
||||
* An instance of the SourceMapGenerator represents a source map which is
|
||||
|
@ -3149,7 +3149,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 431:
|
||||
/***/ 467:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -3189,7 +3189,7 @@ var Debugger =
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
var base64 = __webpack_require__(432);
|
||||
var base64 = __webpack_require__(468);
|
||||
|
||||
// A single base 64 digit can contain 6 bits of data. For the base 64 variable
|
||||
// length quantities we use in the source map spec, the first bit is the sign,
|
||||
|
@ -3296,7 +3296,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 432:
|
||||
/***/ 468:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -3370,7 +3370,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 433:
|
||||
/***/ 469:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -3794,7 +3794,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 434:
|
||||
/***/ 470:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -3804,7 +3804,7 @@ var Debugger =
|
|||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
|
||||
var util = __webpack_require__(433);
|
||||
var util = __webpack_require__(469);
|
||||
var has = Object.prototype.hasOwnProperty;
|
||||
|
||||
/**
|
||||
|
@ -3905,7 +3905,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 435:
|
||||
/***/ 471:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -3915,7 +3915,7 @@ var Debugger =
|
|||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
|
||||
var util = __webpack_require__(433);
|
||||
var util = __webpack_require__(469);
|
||||
|
||||
/**
|
||||
* Determine whether mappingB is after mappingA with respect to generated
|
||||
|
@ -3991,7 +3991,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 436:
|
||||
/***/ 472:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -4001,11 +4001,11 @@ var Debugger =
|
|||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
|
||||
var util = __webpack_require__(433);
|
||||
var binarySearch = __webpack_require__(437);
|
||||
var ArraySet = __webpack_require__(434).ArraySet;
|
||||
var base64VLQ = __webpack_require__(431);
|
||||
var quickSort = __webpack_require__(438).quickSort;
|
||||
var util = __webpack_require__(469);
|
||||
var binarySearch = __webpack_require__(473);
|
||||
var ArraySet = __webpack_require__(470).ArraySet;
|
||||
var base64VLQ = __webpack_require__(467);
|
||||
var quickSort = __webpack_require__(474).quickSort;
|
||||
|
||||
function SourceMapConsumer(aSourceMap) {
|
||||
var sourceMap = aSourceMap;
|
||||
|
@ -5080,7 +5080,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 437:
|
||||
/***/ 473:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -5198,7 +5198,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 438:
|
||||
/***/ 474:
|
||||
/***/ function(module, exports) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -5319,7 +5319,7 @@ var Debugger =
|
|||
|
||||
/***/ },
|
||||
|
||||
/***/ 439:
|
||||
/***/ 475:
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
|
@ -5329,8 +5329,8 @@ var Debugger =
|
|||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
|
||||
var SourceMapGenerator = __webpack_require__(430).SourceMapGenerator;
|
||||
var util = __webpack_require__(433);
|
||||
var SourceMapGenerator = __webpack_require__(466).SourceMapGenerator;
|
||||
var util = __webpack_require__(469);
|
||||
|
||||
// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
|
||||
// operating systems these days (capturing the result).
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
{
|
||||
"globals": {
|
||||
"add_task": false,
|
||||
"Assert": false,
|
||||
|
@ -66,10 +64,11 @@ module.exports = {
|
|||
"removeBreakpoint": false,
|
||||
"addBreakpoint": false,
|
||||
"toggleCallStack": false,
|
||||
"toggleScopes": false,
|
||||
"isVisibleWithin": false,
|
||||
"clickElement": false,
|
||||
"togglePauseOnExceptions": false,
|
||||
"pressKey": false,
|
||||
"EXAMPLE_URL": false
|
||||
}
|
||||
};
|
||||
}
|
|
@ -13,9 +13,13 @@ support-files =
|
|||
examples/doc-exceptions.html
|
||||
examples/doc-iframes.html
|
||||
examples/doc-debugger-statements.html
|
||||
examples/doc-minified.html
|
||||
examples/doc-sourcemaps.html
|
||||
examples/doc-sourcemap-bogus.html
|
||||
examples/bogus-map.js
|
||||
examples/entry.js
|
||||
examples/exceptions.js
|
||||
examples/math.min.js
|
||||
examples/opts.js
|
||||
examples/long.js
|
||||
examples/output.js
|
||||
|
@ -27,7 +31,9 @@ support-files =
|
|||
|
||||
[browser_dbg-breaking.js]
|
||||
[browser_dbg-breaking-from-console.js]
|
||||
[browser_dbg-breakpoints.js]
|
||||
[browser_dbg-call-stack.js]
|
||||
[browser_dbg-scopes.js]
|
||||
[browser_dbg-chrome-create.js]
|
||||
[browser_dbg-chrome-debugging.js]
|
||||
[browser_dbg-console.js]
|
||||
|
@ -40,4 +46,7 @@ support-files =
|
|||
[browser_dbg_keyboard-shortcuts.js]
|
||||
[browser_dbg-pause-exceptions.js]
|
||||
[browser_dbg-navigation.js]
|
||||
[browser_dbg-pretty-print.js]
|
||||
[browser_dbg-pretty-print-paused.js]
|
||||
[browser_dbg-sourcemaps.js]
|
||||
[browser_dbg-sourcemaps-bogus.js]
|
||||
|
|
|
@ -0,0 +1,91 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
function toggleBreakpoint(dbg, index) {
|
||||
const bp = findElement(dbg, "breakpointItem", index);
|
||||
const input = bp.querySelector("input");
|
||||
input.click();
|
||||
}
|
||||
|
||||
function removeBreakpoint(dbg, index) {
|
||||
return Task.spawn(function* () {
|
||||
const bp = findElement(dbg, "breakpointItem", index);
|
||||
bp.querySelector(".close-btn").click();
|
||||
yield waitForDispatch(dbg, "REMOVE_BREAKPOINT");
|
||||
});
|
||||
}
|
||||
|
||||
function disableBreakpoint(dbg, index) {
|
||||
return Task.spawn(function* () {
|
||||
toggleBreakpoint(dbg, index);
|
||||
yield waitForDispatch(dbg, "REMOVE_BREAKPOINT");
|
||||
});
|
||||
}
|
||||
|
||||
function enableBreakpoint(dbg, index) {
|
||||
return Task.spawn(function* () {
|
||||
toggleBreakpoint(dbg, index);
|
||||
yield waitForDispatch(dbg, "ADD_BREAKPOINT");
|
||||
});
|
||||
}
|
||||
|
||||
function toggleBreakpoints(dbg) {
|
||||
return Task.spawn(function* () {
|
||||
const btn = findElement(dbg, "toggleBreakpoints");
|
||||
btn.click();
|
||||
yield waitForDispatch(dbg, "TOGGLE_BREAKPOINTS");
|
||||
});
|
||||
}
|
||||
|
||||
function findBreakpoint(dbg, url, line) {
|
||||
const { selectors: { getBreakpoint }, getState } = dbg;
|
||||
const source = findSource(dbg, url);
|
||||
return getBreakpoint(getState(), { sourceId: source.id, line });
|
||||
}
|
||||
|
||||
function findBreakpoints(dbg) {
|
||||
const { selectors: { getBreakpoints }, getState } = dbg;
|
||||
return getBreakpoints(getState());
|
||||
}
|
||||
|
||||
add_task(function* () {
|
||||
const dbg = yield initDebugger("doc-scripts.html");
|
||||
|
||||
// Create two breakpoints
|
||||
yield selectSource(dbg, "simple2");
|
||||
yield addBreakpoint(dbg, "simple2", 3);
|
||||
yield addBreakpoint(dbg, "simple2", 5);
|
||||
|
||||
// Disable the first one
|
||||
yield disableBreakpoint(dbg, 1);
|
||||
let bp1 = findBreakpoint(dbg, "simple2", 3);
|
||||
let bp2 = findBreakpoint(dbg, "simple2", 5);
|
||||
is(bp1.disabled, true, "first breakpoint is disabled");
|
||||
is(bp2.disabled, false, "second breakpoint is enabled");
|
||||
|
||||
// Disable and Re-Enable the second one
|
||||
yield disableBreakpoint(dbg, 2);
|
||||
yield enableBreakpoint(dbg, 2);
|
||||
bp2 = findBreakpoint(dbg, "simple2", 5);
|
||||
is(bp2.disabled, false, "second breakpoint is enabled");
|
||||
|
||||
// Disable all of the breakpoints
|
||||
yield toggleBreakpoints(dbg);
|
||||
bp1 = findBreakpoint(dbg, "simple2", 3);
|
||||
bp2 = findBreakpoint(dbg, "simple2", 5);
|
||||
is(bp1.disabled, true, "first breakpoint is disabled");
|
||||
is(bp2.disabled, true, "second breakpoint is disabled");
|
||||
|
||||
// Enable all of the breakpoints
|
||||
yield toggleBreakpoints(dbg);
|
||||
bp1 = findBreakpoint(dbg, "simple2", 3);
|
||||
bp2 = findBreakpoint(dbg, "simple2", 5);
|
||||
is(bp1.disabled, false, "first breakpoint is enabled");
|
||||
is(bp2.disabled, false, "second breakpoint is enabled");
|
||||
|
||||
// Remove the breakpoints
|
||||
yield removeBreakpoint(dbg, 1);
|
||||
yield removeBreakpoint(dbg, 1);
|
||||
const bps = findBreakpoints(dbg);
|
||||
is(bps.size, 0, "breakpoints are removed");
|
||||
});
|
|
@ -0,0 +1,22 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Tests pretty-printing a source that is currently paused.
|
||||
|
||||
add_task(function* () {
|
||||
const dbg = yield initDebugger("doc-minified.html");
|
||||
|
||||
yield selectSource(dbg, "math.min.js");
|
||||
yield addBreakpoint(dbg, "math.min.js", 2);
|
||||
|
||||
invokeInTab("arithmetic");
|
||||
yield waitForPaused(dbg);
|
||||
assertPausedLocation(dbg, "math.min.js", 2);
|
||||
|
||||
clickElement(dbg, "prettyPrintButton");
|
||||
yield waitForDispatch(dbg, "TOGGLE_PRETTY_PRINT");
|
||||
|
||||
assertPausedLocation(dbg, "math.min.js:formatted", 18);
|
||||
|
||||
yield resume(dbg);
|
||||
});
|
|
@ -0,0 +1,31 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Tests basic pretty-printing functionality.
|
||||
|
||||
add_task(function* () {
|
||||
const dbg = yield initDebugger("doc-minified.html");
|
||||
|
||||
yield selectSource(dbg, "math.min.js");
|
||||
clickElement(dbg, "prettyPrintButton");
|
||||
yield waitForDispatch(dbg, "TOGGLE_PRETTY_PRINT");
|
||||
|
||||
const ppSrc = findSource(dbg, "math.min.js:formatted");
|
||||
ok(ppSrc, "Pretty-printed source exists");
|
||||
|
||||
yield addBreakpoint(dbg, ppSrc, 18);
|
||||
|
||||
invokeInTab("arithmetic");
|
||||
yield waitForPaused(dbg);
|
||||
assertPausedLocation(dbg, ppSrc, 18);
|
||||
yield stepOver(dbg);
|
||||
assertPausedLocation(dbg, ppSrc, 27);
|
||||
yield resume(dbg);
|
||||
|
||||
// The pretty-print button should go away in the pretty-printed
|
||||
// source.
|
||||
ok(!findElement(dbg, "sourceFooter"), "Footer is hidden");
|
||||
|
||||
yield selectSource(dbg, "math.min.js");
|
||||
ok(findElement(dbg, "sourceFooter"), "Footer is hidden");
|
||||
});
|
|
@ -0,0 +1,27 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
function toggleNode(dbg, index) {
|
||||
clickElement(dbg, "scopeNode", index);
|
||||
}
|
||||
|
||||
function getLabel(dbg, index) {
|
||||
return findElement(dbg, "scopeNode", index).innerText;
|
||||
}
|
||||
|
||||
add_task(function* () {
|
||||
const dbg = yield initDebugger("doc-script-switching.html");
|
||||
|
||||
toggleScopes(dbg);
|
||||
|
||||
invokeInTab("firstCall");
|
||||
yield waitForPaused(dbg);
|
||||
|
||||
toggleNode(dbg, 1);
|
||||
toggleNode(dbg, 2);
|
||||
|
||||
yield waitForDispatch(dbg, "LOAD_OBJECT_PROPERTIES");
|
||||
|
||||
is(getLabel(dbg, 1), "secondCall");
|
||||
is(getLabel(dbg, 2), "<this>");
|
||||
});
|
|
@ -0,0 +1,23 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Test that an error while loading a sourcemap does not break
|
||||
// debugging.
|
||||
|
||||
add_task(function* () {
|
||||
const dbg = yield initDebugger("doc-sourcemap-bogus.html");
|
||||
const { selectors: { getSources }, getState } = dbg;
|
||||
|
||||
yield selectSource(dbg, "bogus-map.js");
|
||||
|
||||
// We should still be able to set breakpoints and pause in the
|
||||
// generated source.
|
||||
yield addBreakpoint(dbg, "bogus-map.js", 4);
|
||||
invokeInTab("runCode");
|
||||
yield waitForPaused(dbg);
|
||||
assertPausedLocation(dbg, "bogus-map.js", 4);
|
||||
|
||||
// Make sure that only the single generated source exists. The
|
||||
// sourcemap failed to download.
|
||||
is(getSources(getState()).size, 1, "Only 1 source exists");
|
||||
});
|
|
@ -1,15 +1,44 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Tests sourcemaps.
|
||||
// Tests loading sourcemapped sources, setting breakpoints, and
|
||||
// stepping in them.
|
||||
|
||||
add_task(function* () {
|
||||
const dbg = yield initDebugger("doc-sourcemaps.html");
|
||||
const { selectors: { getBreakpoint, getBreakpoints }, getState } = dbg;
|
||||
|
||||
yield waitForSources(dbg, "entry.js", "output.js", "times2.js", "opts.js");
|
||||
ok(true, "Original sources exist");
|
||||
const entrySrc = findSource(dbg, "entry.js");
|
||||
|
||||
yield selectSource(dbg, "output.js");
|
||||
ok(dbg.win.cm.getValue().includes("function output"),
|
||||
yield selectSource(dbg, entrySrc);
|
||||
ok(dbg.win.cm.getValue().includes("window.keepMeAlive"),
|
||||
"Original source text loaded correctly");
|
||||
|
||||
// Test that breakpoint sliding is not attempted. The breakpoint
|
||||
// should not move anywhere.
|
||||
yield addBreakpoint(dbg, entrySrc, 13);
|
||||
is(getBreakpoints(getState()).size, 1, "One breakpoint exists");
|
||||
ok(getBreakpoint(getState(), { sourceId: entrySrc.id, line: 13 }),
|
||||
"Breakpoint has correct line");
|
||||
|
||||
// Test breaking on a breakpoint
|
||||
yield addBreakpoint(dbg, "entry.js", 15);
|
||||
is(getBreakpoints(getState()).size, 2, "Two breakpoints exist");
|
||||
ok(getBreakpoint(getState(), { sourceId: entrySrc.id, line: 15 }),
|
||||
"Breakpoint has correct line");
|
||||
|
||||
invokeInTab("keepMeAlive");
|
||||
yield waitForPaused(dbg);
|
||||
assertPausedLocation(dbg, entrySrc, 15);
|
||||
|
||||
yield stepIn(dbg);
|
||||
assertPausedLocation(dbg, "times2.js", 2);
|
||||
yield stepOver(dbg);
|
||||
assertPausedLocation(dbg, "times2.js", 3);
|
||||
|
||||
yield stepOut(dbg);
|
||||
yield stepOut(dbg);
|
||||
assertPausedLocation(dbg, "entry.js", 16);
|
||||
});
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
function runCode(){
|
||||
var a=1;
|
||||
a=a*2;
|
||||
return a;
|
||||
}
|
||||
//# sourceMappingURL=bogus.map
|
|
@ -57,8 +57,8 @@
|
|||
|
||||
window.keepMeAlive = function() {
|
||||
// This function exists to make sure this script is never garbage
|
||||
// collected.
|
||||
return 1;
|
||||
// collected. It is also callable from tests.
|
||||
return times2(4);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["webpack:///webpack/bootstrap 2cf3c8b169eb23f03776","webpack:///./entry.js","webpack:///./times2.js","webpack:///./output.js","webpack:///./opts.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;ACtCA;AACA,QAAO,SAAS;AAChB;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;AACA;;;;;;;ACFA;AACA;AACA;;AAEA,mBAAkB;;;;;;;ACJlB;AACA;AACA","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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 2cf3c8b169eb23f03776\n **/","const times2 = require(\"./times2\");\nconst { output } = require(\"./output\");\nconst opts = require(\"./opts\");\n\noutput(times2(1));\noutput(times2(2));\n\nif(opts.extra) {\n output(times2(3));\n}\n\nwindow.keepMeAlive = function() {\n // This function exists to make sure this script is never garbage\n // collected.\n return 1;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./entry.js\n ** module id = 0\n ** module chunks = 0\n **/","module.exports = function(x) {\n return x * 2;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./times2.js\n ** module id = 1\n ** module chunks = 0\n **/","function output(str) {\n console.log(str);\n}\n\nmodule.exports = { output };\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./output.js\n ** module id = 2\n ** module chunks = 0\n **/","module.exports = {\n extra: true\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./opts.js\n ** module id = 3\n ** module chunks = 0\n **/"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap 4ef8c7ec7c1df790781e","webpack:///./entry.js","webpack:///./times2.js","webpack:///./output.js","webpack:///./opts.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;ACtCA;AACA,QAAO,SAAS;AAChB;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;AACA;;;;;;;ACFA;AACA;AACA;;AAEA,mBAAkB;;;;;;;ACJlB;AACA;AACA","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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 4ef8c7ec7c1df790781e","const times2 = require(\"./times2\");\nconst { output } = require(\"./output\");\nconst opts = require(\"./opts\");\n\noutput(times2(1));\noutput(times2(2));\n\nif(opts.extra) {\n output(times2(3));\n}\n\nwindow.keepMeAlive = function() {\n // This function exists to make sure this script is never garbage\n // collected. It is also callable from tests.\n return times2(4);\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./entry.js\n// module id = 0\n// module chunks = 0","module.exports = function(x) {\n return x * 2;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./times2.js\n// module id = 1\n// module chunks = 0","function output(str) {\n console.log(str);\n}\n\nmodule.exports = { output };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./output.js\n// module id = 2\n// module chunks = 0","module.exports = {\n extra: true\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./opts.js\n// module id = 3\n// module chunks = 0"],"sourceRoot":""}
|
|
@ -0,0 +1,14 @@
|
|||
<!-- Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||
<!doctype html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Debugger test page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="math.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
<!-- Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Debugger test page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="bogus-map.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -11,6 +11,6 @@ if(opts.extra) {
|
|||
|
||||
window.keepMeAlive = function() {
|
||||
// This function exists to make sure this script is never garbage
|
||||
// collected.
|
||||
return 1;
|
||||
// collected. It is also callable from tests.
|
||||
return times2(4);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
function add(a,b,k){var result=a+b;return k(result)}function sub(a,b,k){var result=a-b;return k(result)}function mul(a,b,k){var result=a*b;return k(result)}function div(a,b,k){var result=a/b;return k(result)}function arithmetic(){
|
||||
add(4,4,function(a){
|
||||
sub(a,2,function(b){mul(b,3,function(c){div(c,2,function(d){console.log(d)})})})})};
|
|
@ -3,8 +3,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* The Mochitest API documentation
|
||||
* @module mochitest
|
||||
|
@ -43,7 +41,7 @@ Services.prefs.setBoolPref("devtools.debugger.new-debugger-frontend", true);
|
|||
registerCleanupFunction(() => {
|
||||
Services.prefs.clearUserPref("devtools.debugger.new-debugger-frontend");
|
||||
delete window.resumeTest;
|
||||
})
|
||||
});
|
||||
|
||||
// Wait until an action of `type` is dispatched. This is different
|
||||
// then `_afterDispatchDone` because it doesn't wait for async actions
|
||||
|
@ -163,20 +161,20 @@ function waitForState(dbg, predicate) {
|
|||
* @static
|
||||
*/
|
||||
function waitForSources(dbg, ...sources) {
|
||||
if(sources.length === 0) {
|
||||
if (sources.length === 0) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
info("Waiting on sources: " + sources.join(", "));
|
||||
const {selectors: {getSources}, store} = dbg;
|
||||
const { selectors: { getSources }, store } = dbg;
|
||||
return Promise.all(sources.map(url => {
|
||||
function sourceExists(state) {
|
||||
return getSources(state).some(s => {
|
||||
return s.get("url").includes(url)
|
||||
return s.get("url").includes(url);
|
||||
});
|
||||
}
|
||||
|
||||
if(!sourceExists(store.getState())) {
|
||||
if (!sourceExists(store.getState())) {
|
||||
return waitForState(dbg, sourceExists);
|
||||
}
|
||||
}));
|
||||
|
@ -261,7 +259,7 @@ function waitForPaused(dbg) {
|
|||
yield waitForState(dbg, state => {
|
||||
const pause = dbg.selectors.getPause(state);
|
||||
// Make sure we have the paused state.
|
||||
if(!pause) {
|
||||
if (!pause) {
|
||||
return false;
|
||||
}
|
||||
// Make sure the source text is completely loaded for the
|
||||
|
@ -271,7 +269,7 @@ function waitForPaused(dbg) {
|
|||
return sourceText && !sourceText.get("loading");
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function createDebuggerContext(toolbox) {
|
||||
const win = toolbox.getPanel("jsdebugger").panelWin;
|
||||
|
@ -302,7 +300,7 @@ function initDebugger(url, ...sources) {
|
|||
const toolbox = yield openNewTabAndToolbox(EXAMPLE_URL + url, "jsdebugger");
|
||||
return createDebuggerContext(toolbox);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
window.resumeTest = undefined;
|
||||
/**
|
||||
|
@ -328,7 +326,7 @@ function pauseTest() {
|
|||
* @static
|
||||
*/
|
||||
function findSource(dbg, url) {
|
||||
if(typeof url !== "string") {
|
||||
if (typeof url !== "string") {
|
||||
// Support passing in a source object itelf all APIs that use this
|
||||
// function support both styles
|
||||
const source = url;
|
||||
|
@ -338,7 +336,7 @@ function findSource(dbg, url) {
|
|||
const sources = dbg.selectors.getSources(dbg.getState());
|
||||
const source = sources.find(s => s.get("url").includes(url));
|
||||
|
||||
if(!source) {
|
||||
if (!source) {
|
||||
throw new Error("Unable to find source: " + url);
|
||||
}
|
||||
|
||||
|
@ -361,7 +359,7 @@ function selectSource(dbg, url, line) {
|
|||
const hasText = !!dbg.selectors.getSourceText(dbg.getState(), source.id);
|
||||
dbg.actions.selectSource(source.id, { line });
|
||||
|
||||
if(!hasText) {
|
||||
if (!hasText) {
|
||||
return waitForDispatch(dbg, "LOAD_SOURCE_TEXT");
|
||||
}
|
||||
}
|
||||
|
@ -447,7 +445,7 @@ function reload(dbg, ...sources) {
|
|||
*/
|
||||
function navigate(dbg, url, ...sources) {
|
||||
dbg.client.navigate(url);
|
||||
return waitForSources(dbg, ...sources)
|
||||
return waitForSources(dbg, ...sources);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -464,7 +462,8 @@ function navigate(dbg, url, ...sources) {
|
|||
function addBreakpoint(dbg, source, line, col) {
|
||||
source = findSource(dbg, source);
|
||||
const sourceId = source.id;
|
||||
return dbg.actions.addBreakpoint({ sourceId, line, col });
|
||||
dbg.actions.addBreakpoint({ sourceId, line, col });
|
||||
return waitForDispatch(dbg, "ADD_BREAKPOINT");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -494,7 +493,6 @@ function removeBreakpoint(dbg, sourceId, line, col) {
|
|||
*/
|
||||
function togglePauseOnExceptions(dbg,
|
||||
pauseOnExceptions, ignoreCaughtExceptions) {
|
||||
|
||||
const command = dbg.actions.pauseOnExceptions(
|
||||
pauseOnExceptions,
|
||||
ignoreCaughtExceptions
|
||||
|
@ -529,8 +527,8 @@ const keyMappings = {
|
|||
pauseKey: { code: "VK_F8" },
|
||||
resumeKey: { code: "VK_F8" },
|
||||
stepOverKey: { code: "VK_F10" },
|
||||
stepInKey: { code: "VK_F11", modifiers: { ctrlKey: isLinux } },
|
||||
stepOutKey: { code: "VK_F11", modifiers: { ctrlKey: isLinux, shiftKey: true } }
|
||||
stepInKey: { code: "VK_F11", modifiers: { ctrlKey: isLinux }},
|
||||
stepOutKey: { code: "VK_F11", modifiers: { ctrlKey: isLinux, shiftKey: true }}
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -561,6 +559,9 @@ function isVisibleWithin(outerEl, innerEl) {
|
|||
|
||||
const selectors = {
|
||||
callStackHeader: ".call-stack-pane ._header",
|
||||
scopesHeader: ".scopes-pane ._header",
|
||||
breakpointItem: i => `.breakpoints-list .breakpoint:nth-child(${i})`,
|
||||
scopeNode: i => `.scopes-list .tree-node:nth-child(${i}) .object-label`,
|
||||
frame: index => `.frames ul li:nth-child(${index})`,
|
||||
gutter: i => `.CodeMirror-code *:nth-child(${i}) .CodeMirror-linenumber`,
|
||||
pauseOnExceptions: ".pause-exceptions",
|
||||
|
@ -570,7 +571,10 @@ const selectors = {
|
|||
resume: ".resume.active",
|
||||
stepOver: ".stepOver.active",
|
||||
stepOut: ".stepOut.active",
|
||||
stepIn: ".stepIn.active"
|
||||
stepIn: ".stepIn.active",
|
||||
toggleBreakpoints: ".toggleBreakpoints",
|
||||
prettyPrintButton: ".prettyPrint",
|
||||
sourceFooter: ".source-footer"
|
||||
};
|
||||
|
||||
function getSelector(elementName, ...args) {
|
||||
|
@ -580,7 +584,7 @@ function getSelector(elementName, ...args) {
|
|||
}
|
||||
|
||||
if (typeof selector == "function") {
|
||||
selector = selector(...args)
|
||||
selector = selector(...args);
|
||||
}
|
||||
|
||||
return selector;
|
||||
|
@ -625,5 +629,9 @@ function clickElement(dbg, elementName, ...args) {
|
|||
* @static
|
||||
*/
|
||||
function toggleCallStack(dbg) {
|
||||
return findElement(dbg, "callStackHeader").click()
|
||||
return findElement(dbg, "callStackHeader").click();
|
||||
}
|
||||
|
||||
function toggleScopes(dbg) {
|
||||
return findElement(dbg, "scopesHeader").click();
|
||||
}
|
||||
|
|