Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Conversation

@akashs09
Copy link
Contributor

Fixes #4430

Here's the Pull Request Doc
https://firefox-dev.tools/debugger.html/docs/pull-requests.html

Summary of Changes

  • change 1
  • change 2

Test Plan

Tell us a little a bit about how you tested your patch.

Example test plan:

  • Command-P opens the panel
  • Clicking “+” opens the panel
  • Clicking a source navigates to the source
  • Clicking "x" closes the panel

Here's the Debugger's Testing doc
https://docs.google.com/document/d/1oBMRxV8A2ag2t22YsQOxTdEv0mXKzIg0tggJjRkU1S0/edit#.
Feel free to improve it!

Screenshots/Videos (OPTIONAL)

node_modules
out
out
debugger;
Copy link
Contributor

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,
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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;
Copy link
Contributor

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
Copy link
Contributor

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", () => {
Copy link
Contributor

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);

Copy link
Contributor

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")
Copy link
Contributor

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`

@akashs09 akashs09 closed this Oct 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants