Commit Graph

163 Commits

Author SHA1 Message Date
Alexandre Poirot
d56c454ffc Bug 1184192 - Fix pending showBoxModel request when running browser_markupview_keybindings_04.js. r=bgrins 2015-07-23 13:36:33 -07:00
John Pavlicek
bbe9a64f87 Bug 1159725 - Links in markup-view attributes should open with middle-click; r=pbro 2015-07-07 13:40:00 +02:00
Ehsan Akhgari
b0ba251467 Bug 1178563 - Increase the timeout for browser_markupview_html_edit_02.js 2015-07-14 10:41:45 -04:00
J. Ryan Stinnett
70f1707d67 Bug 1161072 - Fix pending requests in markup view tests. r=pbrosset 2015-07-08 18:55:17 -05:00
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Seth Fowler
4c3d1ae5ef Bug 1163856 (Part 2) - Fix tests that depended on image load event timing. r=tn 2015-06-30 02:38:01 -07:00
Sami Jaktholm
da224ae82c Bug 1138976 - Leave the toolbox destruction to the head.js cleanup method when running markup view event tooltip tests. r=pbrosset 2015-06-20 14:28:49 +03:00
Jeff Walden
eed5b7e229 Bug 1146136 - Fix most in-tree tests that parenthesize destructuring pattern assignment targets, as ES6 forbids such parenthesization. (The patch making SpiderMonkey reject this syntax will follow shortly.) r=efaust, r=testingonlychange 2015-05-30 00:55:35 -07:00
Patrick Brosset
0283d9885b Bug 1173490 - intermittent browser_markupview_search_01.js - Test-only change; r=me 2015-06-12 15:35:09 +02:00
Patrick Brosset
10c9a6b91d Bug 1172653 - Prevent leaks in browser_markupview_keybindings_02.js by waiting for the console to be ready; r=me 2015-06-09 12:54:11 +02:00
Jan Odvarko
4e795eb442 Bug 1036949 - Test for markup view 'form' event. r=pbrosset 2015-05-28 18:02:02 +02: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
Patrick Brosset
923cdc222d Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans 2015-05-22 20:50:01 +02:00
Patrick Brosset
03753b11fd Bug 1122605 - Focus selected inspector node after user selection. r=bgrins 2015-05-21 15:41:53 +02:00
Dave Camp
d8f1a95b1f Bug 892935 - Auto-expand elements with only text in the markup view;r=pbrosset,r=bgrins 2015-05-13 14:55:09 -07:00
Patrick Brosset
0016a8a5bb Bug 1158822 - Link css url attributes to style-editor and js url attributes to debugger; r=jsantell
The node-attribute-parser now marks uris to css and js files as cssresource and jsresource.
Thanks to this, the inspector can open the corresponding files in the style-editor and
debugger rather than just opening a new tab with the source.
This makes use of 2 new toolbox methods: viewSourceInStyleEditor and viewSourceInDebugger.
2015-05-04 09:23:04 +02:00
Patrick Brosset
679fd5573c Bug 921102 - 4 - Tests for the open/copy links on markup-view attributes; r=bgrins 2015-05-02 23:00:13 +02:00
Patrick Brosset
e621bfa06a Bug 921102 - 2 - Markup-view tests for attribute links; r=miker 2015-04-28 15:04:19 +02:00
Patrick Brosset
c2c0627641 Bug 921102 - 1 - Linkify URIs in the inspector; r=tromey, miker
This first part adds a parser for node attributes which, given some node
information and an attribute name, generates a small AST-like array of
objects that tells which parts of the attribute (if any) are links, and
what they link to.
Using this, the markup-view generates the right HTML structure to display
these parts as links.
This part 1 doesn't yet allow users to follow these links.
2015-04-30 10:43:04 +02:00
Patrick Brosset
e0304c84b6 Bug 1158781 - Make sure attributes gets focused when clicked in the inspector. r=bgrins
This used to work fine, but regressed when bug 1153635 got fixed.
This fixes the issue and introduces a new test to prevent further regressions.
2015-04-29 17:05:37 +02:00
Brian Grinstead
9979f66d32 Bug 1036324 - Adds option to walker.parents() to not traverse DocShellTreeItems of different types
This option helps avoiding blank inspector situations when trying to use the right-click ctx
menu in the browser to inspect an element *while* the page is reloading.
2015-04-15 13:49:00 +02:00
Patrick Brosset
744d785c3f Bug 1153635 - Focus first focusable element in MarkupContainer when line is clicked; r=bgrins 2015-04-20 17:49:11 +02:00
Michael Ratcliffe
76c799684b Bug 1136155 - Alpha-sort events in the events popup r=pbrosset 2015-04-17 16:08:11 +01: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
Panos Astithas
a936ed870b Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Brian Grinstead
e781e32f0f Bug 1147128 - Make sure attribute shows up in markup view after removing and setting to the previous value;r=mratcliffe 2015-03-27 07:30:09 -07:00
Patrick Brosset
9eb3bf7352 Bug 1146591 - Avoid unsafe CPOW usage in helper_outerhtml_test_runner.js; r=bgrins
helper_outerhtml_test_runner.js was accessing DOM nodes directly in content (via
CPOWs) to check their outerHTML.
This change adds outerHTML, innerHTML and textContent to the common
devtools:test:getDomElementInfo frame-script message listener so that the test
can get it there instead.
2015-03-25 18:03:22 +01:00
Patrick Brosset
54d6ed5393 Bug 1146568 - Avoid unsafe CPOW usage in markupview tests, in assertAttributes helper; r=bgrins
The common assertAttributes helper test function used to access DOM nodes in the
content page directly (CPOW). It now becomes an async function that goes through
a frame-script to retrieve the list of attributes for a node, given its selector.
All tests were passing with this change but one: browser_markupview_tag_edit_06.js
This one was checking camelcase attribute names while the actual names on the
node were lowercased by the browser. The way we were asserting attributes before
didn't care about the case. Now it does.
2015-03-25 14:11:36 +01:00
Patrick Brosset
acf5e50eb2 Bug 1146568 - Avoid unsafe CPOW usage warnings in browser_markupview_tag_edit_08.js; r=bgrins
Making use of the devtools test frame-script to set the test node's attributes instead of
using a CPOW.
2015-03-25 11:17:05 +01:00
Patrick Brosset
a28a03ab6f Bug 1146566 - 2 - Avoid using CPOWs in test browser_markupview_tag_edit_03.js; r=bgrins
This change updates the browser_markupview_tag_edit_03.js test by making use of the
getDomElementInfo message listener to retrieve information about the tested nodes
without having to go through CPOWs.
2015-03-24 10:55:02 +01:00
Patrick Brosset
dd9c1738cc Bug 1146566 - 1 - Use devtools common frame-script in markupview tests and add helper; r=bgrins
This change loads the devtools common frame-script-utils.js frame-script in the browser message
manager when a new test tab is opened by a test, and it adds a new getDomElementInfo message
listener useful for many tests to retrieve data about a node without having to go through a
CPOW.
2015-03-25 10:53:24 +01:00
Brian Grinstead
976e48ff93 Bug 1139644 - Flash only relevant attributes in markup view when changed;r=pbrosset 2015-03-24 14:57:57 -07:00
Brian Grinstead
367fb1ae01 Bug 1139644 - Make markupview use sdk timers instead of individual timers for each window;r=pbrosset 2015-03-24 14:57:54 -07: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
Brian Grinstead
2dedf81645 Bug 1139569 - Optimize update function for element editors in markup view;r=mratcliffe
Previously, any call to update() would destroy and recreate all attribute
editors.  This got really slow and caused a lot of unnecessary work, since
this ran any time any attribute changed.  Also, old attributes wouldn't
end up getting removed but would simply be hidden.  With this patch, we
update each attribute if it's changed, and any unused attributes are removed.
2015-03-09 10:02:21 -07:00
Mahdi Dibaiee
e163e6d83d Bug 984442 - Remove XUL attributes when their attributeName is deleted. r=pbrosset 2015-02-27 02:44:00 -05:00
Mahdi Dibaiee
c6b8e75613 Bug 858038 - Allow moving elements in the markupview by drag/drop; r=pbrosset 2014-12-26 02:53:00 -08: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
Athena
57ebfa1877 Bug 911148 - Tabbing when editing an attribute stays in edit mode. r=pbrosset 2015-01-14 19:46:00 -05:00
Brian Grinstead
67c121f412 Bug 1119276 - Show all native anon content in browser toolbox with devtools.inspector.showAllAnonymousContent pref. r=pbrosset 2015-01-09 09:27:00 +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
Sami Jaktholm
0a1155777b Bug 1056048 - Replace deprecated-sync-thenables with Promise.jsm in Markup View. r=pbrosset 2014-12-15 02:52: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
Tim P.
e6a996537e Bug 1090874 - Avoid always re-creating the node when editing a tagname in the markup-view; r=pbrosset 2014-12-04 16:34:47 -08:00
Tomasz Kołodziejski
260a02f850 Bug 1094622 - Deleting node in inspector now selects previous sibling and not parent. r=bgrins
---
 browser/devtools/markupview/markup-view.js         | 15 +++++----
 .../test/browser_markupview_tag_edit_04.js         | 38 +++++++++++++++-------
 browser/devtools/markupview/test/head.js           |  2 +-
 toolkit/devtools/server/actors/inspector.js        | 14 +++++++-
 .../tests/mochitest/test_inspector-remove.html     | 23 +++++++++----
 5 files changed, 65 insertions(+), 27 deletions(-)
2014-11-21 12:48:04 -08: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
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
Shu-yu Guo
40c62f33a5 Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00