-
Notifications
You must be signed in to change notification settings - Fork 751
Add test to ensure original source and pretty printed outline tab functions match #7116
Conversation
Please, commit your changes before you merge.
…r orig and pretty)
…r orig and pretty)
| node_modules | ||
| out | ||
| out | ||
| debugger; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be unsafe; let's move it for now
| @@ -20574,7 +20574,413 @@ | |||
| "../../parse5/lib/serializer/serializer_stream.js": 1752, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file shouldn't be part of the PR.
| @@ -1,5 +1,7 @@ | |||
| // MIT © Sindre Sorhus - sindresorhus.com | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this is for.
| "logging": { | ||
| "client": false, | ||
| "firefoxProxy": false, | ||
| "actions": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this is for.
| "logging": { | ||
| "firefoxProxy": false | ||
| "firefoxProxy": false, | ||
| "actions": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this is for.
| { condition, hidden }: addBreakpointOptions = {} | ||
| ) { | ||
| const breakpoint = createBreakpoint(location, { condition, hidden }); | ||
| // debugger; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
| * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ | ||
|
|
||
| /* 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this get added twice?
| }); | ||
| }); | ||
|
|
||
| describe("Switching to outline tabs with same url", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test doesn't do anything and should be removed.
| } = dbg; | ||
|
|
||
| await selectSource(dbg, "simple1", 1); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only file that should contain changes.
| const original_source = getItems(dbg); | ||
| findElementWithSelector(dbg, ".prettyPrint").click(); | ||
| const pretty_source = getItems(dbg); | ||
| is(original_source.length == pretty_source.length, "Outline functions match") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be:
is(original_source.length, pretty_source.length, "Outline functions match");
``
Also, JavaScript uses camelcasing, so please use `originalSource`, and `prettySource`
Fixes #4430
Here's the Pull Request Doc
https://firefox-dev.tools/debugger.html/docs/pull-requests.html
Summary of Changes
Test Plan
Tell us a little a bit about how you tested your patch.
Example test plan:
Here's the Debugger's Testing doc
https://docs.google.com/document/d/1oBMRxV8A2ag2t22YsQOxTdEv0mXKzIg0tggJjRkU1S0/edit#.
Feel free to improve it!
Screenshots/Videos (OPTIONAL)