Commit Graph

485 Commits

Author SHA1 Message Date
Gabriel Luong
79fa3b4afa Bug 1174543 - Part 2: Clear the matched selector container before rebuilding the matched selectors r=mratcliffe 2015-07-10 14:21:23 -07:00
Gabriel Luong
34fd321c34 Bug 1174543 - Part 1: Remove Templater code in computed-view.js r=mratcliffe 2015-07-10 14:21:21 -07:00
Alexandre Poirot
df9d346f28 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset,bgrins 2015-07-10 00:22:53 -07:00
Ryan VanderMeulen
0c99cebbf8 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-09 13:52:22 -04:00
Gabriel Luong
750fa4987b Bug 1181243 - Ctrl + F should focus the filter style search bar if the focus is in the rule and computed view r=mikeratcliffe 2015-07-08 10:40:45 -07:00
Tim Nguyen
e61eae63e9 Bug 1130330 - Add copy url context menu item in styleinspector. r=pbrosset 2015-07-03 06:04:00 +02:00
Masatoshi Kimura
99d4901bcb Bug 1176496 - Drop support for -moz-prefixed gradients. r=dbaron 2015-07-10 00:57:50 +09:00
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Michael Layzell
f6359d6641 Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan 2015-06-30 08:18:04 -04:00
Gabriel Luong
a61aa0dd49 Bug 1176054 - Fixed vertical of the pseudo class checkbox labels on Linux and Windows r=bgrins 2015-06-26 13:39:18 -07:00
Tim Nguyen
8b215df88d Bug 1165122 - Show Add New Rule button by default. r=bgrins 2015-06-25 16:00:29 -07:00
Gabriel Luong
6db2aaebd9 Backed out changeset aa1f2a978a64 2015-06-25 16:04:40 -07:00
Tim Nguyen
4e4c369ad0 Bug 1165122 - Show Add New Rule button by default. r=bgrins 2015-06-25 16:00:29 -07:00
Gabriel Luong
ea199953ff Bug 1166959 - Allow the selector editor to advance the focus with tab, shift-tab and enter r=pbrosset 2015-06-25 15:51:52 -07:00
Gabriel Luong
e7ff4ba7be Bug 1175661 - Adding a new rule should use classList instead of splitting the className r=pbrosset 2015-06-18 09:06:56 -07:00
Patrick Brosset
bd4101800d Bug 1174407 - Collapse pseudo-elements section in rule-view by default; r=miker
This changes the default value for the devtools.inspector.show_pseudo_elements pref
to false so that the pseudo-elements section in the rule-view is collapsed by
default.
This section may now contain a lot more rules, especially when showing browser styles
and so it's better to have it collapsed by default.

This required to fix 2 tests that assumed the section was expanded by default.
browser_ruleview_pseudo-element_01.js was also cleaned up a bit to be more compliant
with our eslint rules.
2015-06-18 10:10:53 +02:00
Gabriel Luong
c38e71ce29 Bug 1173005 - Fixed margin with the pseduoclass panel and left align the pseduoclass options. r=bgrins 2015-06-14 02:16:00 -04:00
Gabriel Luong
8c97024965 Bug 1172788 - Add tooltip for pseudo class toggle button in the rule view r=bgrins 2015-06-13 13:00:53 -07:00
Jarda Snajdr
2d35539a19 Bug 1159922 - In rule view, update the computed values of a property after editing. r=pbro 2015-06-11 12:18:53 +02:00
Tim Nguyen
5658da4a9a Bug 1173298 - Disable add rule button for non-element nodes and anonymous elements. r=bgrins 2015-06-10 11:42:00 +02:00
Gabriel Luong
c4cb77dc00 Bug 1024693 - [rule view] Copy CSS declarations r=pbrosset 2015-06-10 15:08:27 -07:00
Tom Tromey
47c0d2cce1 Bug 1158288 - Show color swatch in drop-shadow function. r=pbrosset 2015-06-08 12:26:00 -04:00
Tom Tromey
3b508672ae Bug 1158288 - Minimal changes for eslint. r=pbrosset 2015-06-08 12:26:00 -04:00
Tim Nguyen
1c714ad26e Bug 1165032 - Make 'Add new rule' button add a new rule for currently emulated pseudo class locks. r=bgrins 2015-06-08 12:25:00 -04:00
Jennifer Fong
c91b01f044 Bug 1163183 - Show HTML5 Forms pseudo elements in the rule view. r=bgrins 2015-06-05 14:48:00 -04:00
Gabriel Luong
bfbd0192d5 Bug 987365 - Add pseudo-class lock options to rule view r=bgrins 2015-04-23 21:35:00 -07:00
Kyle Zentner
f45a2d8762 Bug 1170173 - Parse CSS 'contain' property. r=dholbert 2015-06-04 16:38:00 +02:00
Gabriel Luong
f5e342f0b3 Bug 1040199 - Adding a new rule for a node should handle invalid characters in the element's selector. r=pbrosset 2015-06-01 11:38:00 -04:00
Carsten "Tomcat" Book
74a0a9fbfd Backed out changeset 08eaa27485c1 (bug 1166774) for linux e10s dt failures 2015-06-02 15:52:31 +02:00
Alexandre Poirot
59c6c32d41 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset 2015-06-01 18:21:46 +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
Gabriel Luong
29ba95dc91 Bug 1139058 - Part 2: Unit test for adding unmatched rules to the rule view r=pbrosset 2015-05-27 17:36:20 -07:00
Gabriel Luong
176e823267 Bug 1139058 - Part 1: Allow unmatched rules to be added to the rule view r=pbrosset 2015-05-27 17:36:17 -07:00
Alexandre Poirot
f0c5648397 Bug 1167181 - Fix pending getOriginalLocation requests while running browser_computedview_matched-selectors_01.js. r=pbrosset 2015-05-25 22:51:45 +02:00
Phil Ringnalda
6889a8a1cb Back out b85bc83d5a15 (bug 1166774) for frequent failures in browser_ruleview_colorpicker-edit-gradient.js 2015-05-26 21:04:21 -07:00
Alexandre Poirot
3d2f8cf7d0 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset 2015-05-25 20:14:01 +02:00
Alexandre Poirot
2fadb2573e Bug 1167174 - Assert that custom highlighter do show the highlighter before proceeding. r=pbrosset 2015-05-25 18:54:08 +02:00
Julian Descottes
a5dff5425f Bug 965199 - "Copy Image Data-URL" in computed & rule views. r=pbrosset
This feature is about the inspector's rule view & computed view.
The context menu for an image URL (e.g. value of background-image property)
will contain a new entry : "Copy Image Data-URL". Clicking on it will fill the
clipboard with the image encoded as a data url.

The mechanism to hide/show the entry is inspired from the "Copy Color" menu
entry. When the context menu is displayed, check if the target is contained in
a node of type "image", using the getNodeInfo method available on both views.

If the image data cannot be retrieved for a given URL, the clipboard is filled
with an error message.

Modified rule-view getNodeInfo method in order to exclude from image nodes the
'source' links (such as 'style.css', displayed on the right of the rule-view).

Added a new mochitest that tests the feature on an element using a base64
background image.
2015-05-24 01:41:09 +02:00
Alexandre Poirot
3addb91599 Bug 1167181 - Wait for computed view to be fully loaded in tests before proceeding to next one. r=pbrosset 2015-05-25 01:09:47 +02:00
J. Ryan Stinnett
581d73b9f8 Bug 1067325 - DevTools test fixes for view source in tab. r=pbrosset 2015-05-23 18:17:50 -05:00
Phil Ringnalda
0eefe0c506 Merge f-t to m-c, a=merge 2015-05-23 14:28:07 -07:00
Patrick Brosset
923cdc222d Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans 2015-05-22 20:50:01 +02:00
Gabriel Luong
69d9cf8a1a Bug 1166344 - [rule view] Store and get the parsed property value displayed in the computed list when filtering styles in the computed list. r=bgrins 2015-05-21 14:47:00 -04:00
J. Ryan Stinnett
600aac8e36 Backed out changeset a5e245f216b7 on CLOSED TREE (bug 1067325) 2015-05-22 07:01:59 -05:00
J. Ryan Stinnett
a7f9af3294 Bug 1067325 - DevTools test fixes for view source in tab. r=pbrosset 2015-05-22 05:16:24 -05:00
Gabriel Luong
99a9fdaf12 Bug 1043835 - Add Rule on an element with multiple classes should include all the classes. r=pbrosset 2015-05-20 14:36:00 +02:00
John Pavlicek
56647aeb14 Bug 1164906 - Use EventUtils.sendString instead of looping and calling EventUtils.sendChar in DevTools tests. r=mratcliffe 2015-05-19 14:32:00 -04:00
Gabriel Luong
3a0ba1ee11 Bug 1165380 - [rule view] Filter rules should also highlight stylesheet names. r=bgrins 2015-05-19 13:33:00 -04:00
Tom Tromey
e9c5dfaccd Bug 1154809 - rename and clarify last CSS regexp in rule-view.js; r=pbrosset 2015-05-19 08:55:59 -07:00
Tom Tromey
292c8b9388 Bug 1154809 - remove dead css-parsing code; r=pbrosset 2015-05-19 08:55:57 -07:00