Commit Graph

212 Commits

Author SHA1 Message Date
J. Ryan Stinnett
41327d2c68 Bug 1168689 - Allow highlighter to see XBL anonymous nodes. r=pbrosset 2015-06-01 16:52:13 -07:00
Patrick Brosset
b0fc02b334 Bug 1166189 - ESLint configuration files for devtools; r=tromey
Adds a global .eslintrc file for all source files in /browser/devtools.
This file defines a set of global variables that are commonly used in
/browser/devtools code.
The files that import modules with Cu.import will need to define their
own globals as /* globals ... */ comments.
This file also defines the configuration for all the rules we want to
use.

This also adds a set of .eslintrc files, one per test directory in
/browser/devtools. Each of these files extend from one of 2 parent config
files: .eslintrc.xpcshell or .eslintrc.mochitest.
The parent config define the set of globals these types of tests have
access to (test runner functions, assertion functions, etc.).

Finally, this also adds .eslintrc files in /toolkit/devtools for code and
tests, which just extend from their counterparts in /browser/devtools.
2015-05-28 09:30:03 +02:00
Tooru Fujisawa
22a3f8a30f Bug 1102219 - Part 5: Replace more String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
John Kang
b6c86fe3ad Bug 1143074 - "Inspector search box can't find nodes with IDs/classes that include CSS reserved characters" [r=pbrosset] 2015-04-21 02:56:00 +02:00
Jennifer Fong
7e45320712 Bug 901250 - Add scroll into view menu item for the inspector. r=bgrins 2015-04-17 11:03:24 -07:00
Carsten "Tomcat" Book
2c17bd658e Backed out changeset 145f6347bb11 (bug 1137285) depending on the backout of bug 1145049 2015-04-15 17:24:06 +02:00
Carsten "Tomcat" Book
44a0071a4a Backed out changeset 120d272971a6 (bug 1137285) 2015-04-15 17:23:18 +02:00
Carsten "Tomcat" Book
9d02f90fbe Backed out changeset 3570dbae06e2 (bug 1137285) 2015-04-15 17:23:10 +02:00
Patrick Brosset
f3c46e292f Bug 1149346 - First word in selector-search also matches classes and ids; r=harth 2015-04-15 08:15:20 -07:00
Alexandre Poirot
ab7555f43a Bug 1137285 - Convert inspector test to be remote friendly r=pbrosset 2015-04-15 13:55:30 +02:00
Alexandre Poirot
8dfcd305c2 Bug 1137285 - Replace content.location = ... by a navigateTo request r=pbrosset 2015-04-15 13:55:29 +02:00
Alexandre Poirot
75963c9faf Bug 1137285 - Convert addTab+openInspector to openInspectorForURL r=pbrosset 2015-04-15 13:55:29 +02:00
Patrick Brosset
1f55db6d1b Bug 988278 - Fixes ESCape keypress mess in the inspector to make sure the split console opens; r=miker
This fixes 2 problems related to the split console not opening when it should.
1 - After the inspector selection mode (pick mode) was canceled with ESC, pressing ESC once
again did not open the split console, because the toolbox did not have the focus.
2 - The markup-view tooltip (used to preview images) was eating the first ESC keypress when
the markup-view was focused, even though the tooltip was hidden. This was forcing users to
press ESC twice to open the split console.
2015-04-13 10:51:49 +02:00
Patrick Brosset
7c632b0f8d Bug 966787 - 2 - Skip inspector breadcrumb updates when the output doesn't change; r=bgrins
Whenever something changed on the selected element (pseudo, attribute), the
breadcrumbs widget used to loop over all breadcrumbs buttons and re-create the
markup for each.
Now, we cache a string version of the text displayed in a button and compare
the new value to that in the loop, to skip DOM updates.

Additionally, the breadcrumbs widget used to update itself after all markup mutations
in the DOM tree displayed in the inspector. The update method now looks at the mutations
array and early return if none of them actually impact the displayed breadcrumbs.
2015-04-13 10:22:05 +02:00
Patrick Brosset
54998056d9 Bug 873443 - Make the inspector search suggest and select elements in frames; r=bgrins
This makes the inspector search input show suggestions for nodes in all documents in
the content page. Selecting a suggestion also now selects the corresponding nodes
even when they are inside nested frames.
2015-04-09 17:11:06 +02:00
Patrick Brosset
bc33336d7e Bug 994055 - Part 2: Add tests for the inspector sidebar toggle button. r=miker 2015-04-03 17:11:15 +02:00
Matteo Ferretti
f339e2e3d6 Bug 1144163 - Add a rulers highlighter; added unit test. r=pbrosset
- Added unit test for Rulers Highlighter
 - Added `Test:ScrollWindow` function to doc_frame_script.js
2015-03-28 00:25:18 +01:00
Panos Astithas
a936ed870b Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Sami Jaktholm
9309c86b4d Bug 1035124 - Move browser_inspector_update-on-navigation.js from inspector to markup view tests. r=pbrosset 2015-03-13 23:23:01 +02:00
Patrick Brosset
03227a8bb2 Bug 1139925 - Make the BoxModelHighlighter highlight all quads and draw guides around the outer-most rect
LayoutHelpers.getAdjustedBoxQuads now returns all quads that el.getBoxQuads returns.
The BoxModelHighlighter calculates an outer rect based on these to draw the guides.
And if the element has more than 1 quad (inline element that spans line breaks), then all quads are
highlighted.
Also all related tests were modified and a couple of new tests were added.
2015-03-13 15:54:10 +01:00
Sami Jaktholm
1a7bf533c3 Bug 1035140 - Split browser_inspector_menu-0?.js into multiple tests. r=pbrosset 2015-03-14 13:53:32 +02:00
Abhishek Bhattacharya
e24dc0673c Bug 1120111 - Tests for the highlighter pick mode key listeners; r=pbrosset 2015-03-10 07:04:00 +01:00
Patrick Brosset
473df235ac Bug 1123851 - 2 - Tests for the element geometry highlighter; r=bgrins 2015-03-09 17:33:24 +01:00
Patrick Brosset
bf93262b66 Bug 1074836 - 8 - Remove the gloal skip-if=e10s on browser/devtools/inspector tests; r=me 2015-02-09 10:03:07 +01:00
Patrick Brosset
25128370d2 Bug 1074836 - 7 - Fix the inspector node reselection test with e10s; r=jwalker 2015-02-09 10:03:06 +01:00
Patrick Brosset
3e11778dad Bug 1074836 - 6 - Fix the inspector search field test with e10s; r=jwalker 2015-02-09 10:03:06 +01:00
Patrick Brosset
67278a7e56 Bug 1074836 - 5 - Disable iframe scrolling inspector test with e10s; r=me 2015-02-09 10:03:06 +01:00
Patrick Brosset
c8b5759948 Bug 1074836 - 4 - Fix the iframe deletion inspector test with e10s; r=bgrins 2015-02-09 10:03:06 +01:00
Patrick Brosset
10214c0531 Bug 1074836 - 3 - Fix the browser ctx-menu inspector test with e10s; r=bgrins 2015-02-09 10:03:06 +01:00
Patrick Brosset
0475f85136 Bug 1074836 - 2 - Disable the gcli related test in browser/devtools/inspector with e10s; r=me 2015-02-09 10:03:06 +01:00
Patrick Brosset
5f061c9983 Bug 1074836 - 1 - Use both actorID and connPrefix to retrieve the right highlighter actors during inspector tests; r=miker 2015-02-09 10:03:06 +01:00
Aaron Raimist
da5470f9f0 Bug 1042619 - Change 'width x height' letter x to a multiplication sign in devtools frontend. r=bgrins 2015-01-26 14:36:00 -05:00
Patrick Brosset
07bb84f97c Bug 1105825 - Fix the toolbox/inspector/sidebar destroy sequence; r=past 2014-12-22 14:54:09 +01:00
abdelrhman
64233c145f Bug 1111276 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao 2014-12-15 22:05:46 +01:00
Patrick Brosset
bb9603f20a Bug 1075319 - Use native add_task in devtools mochitests rather than custom asyncTest. r=miker 2014-12-15 03:37:00 -05:00
Fayolle Florent
cd51b7a548 Bug 1108212 - In the DevTools Inspector tree, pressing delete should move to the next element. r=bgrins 2014-12-07 14:54:00 -05:00
Patrick Brosset
b53c7a05e7 Bug 1103993 - 3 - Only refresh the rule/computed views when active; r=bgrins r=ochameau 2014-12-10 09:09:19 +01:00
fayolle-florent@orange.fr
1b02acfe41 Bug 1095521 - Implement more paste commands for the inspector panel. r=pbrosset 2014-11-22 08:48:00 +01:00
Patrick Brosset
07de73aa1e Bug 1084442 - Prevent highlighter from being zoomed in/out and incorrectly positioned when the page is zoomed; r=miker 2014-11-21 11:18:03 +01:00
Patrick Brosset
f212c33043 Bug 1076866 - Rect highlighter; r=bgrins 2014-11-19 11:16:25 +01:00
Gabor Krizsanits
72e310d3ac Bug 1081038 - part0: Fixing inspector test. r=pbrosset 2014-11-14 16:46:26 +01:00
Patrick Brosset
39f6247a54 Bug 985597 - Tests for the new highlighter implementation using the AnonymousContent API; r=miker r=jwalker 2014-11-06 13:04:37 +01:00
David Rajchenbach-Teller
eef61cc00d Bug 1016387 - Whitelisting tests that leak Promise rejections (devtools, part 3). r=yoric 2014-10-10 05:52:00 +02:00
David Rajchenbach-Teller
99c206bce6 Bug 1016387 - Whitelisting tests that leak Promise rejections (devtools, part 2). r=yoric 2014-10-10 03:56:00 +02:00
David Rajchenbach-Teller
025aa7fc8e Bug 1016387 - Whitelisting tests that leak Promise rejections (devtools). r=paul 2014-10-04 14:21:00 +02:00
Carsten "Tomcat" Book
affd3afe16 Backed out changeset 746989e4c8d1 (bug 1016387) for bc1/bc3 test failures 2014-10-10 10:41:25 +02:00
David Rajchenbach-Teller
78bbf1666a Bug 1016387 - Whitelisting tests that leak Promise rejections (devtools). r=paul 2014-10-04 14:21:00 +02:00
Patrick Brosset
c95d4d952b Bug 917696 - Makes markup-view tag name edition go through the protocol; r=bgrins 2014-10-08 15:46:16 -07:00
Brian Grinstead
8cb3638a5d Bug 920141 - Add support for inspecting anonymous content. r=pbrosset 2014-09-29 09:29:00 +02:00
Jan Odvarko
c61fb7c20b Bug 1035707 - Implement new API for customizing webconsole logs; r=past 2014-09-24 08:42:17 +02:00