Commit Graph

314 Commits

Author SHA1 Message Date
Jan Odvarko
95f6bd58be Bug 1266419 - Fixing tests; r=bgrins, poirot.alex 2016-05-26 14:51:28 +02:00
Jan Odvarko
1634c31011 Bug 1266419 - HTML replacement for Toolbars and Toolbar buttons; r=bgrins, ntim 2016-05-04 20:58:49 +02:00
Patrick Brosset
ee0700ffb1 Bug 1237885 - Renamed all add-rule tests to make intent clearer and avoid duplication; r=jdescottes
MozReview-Commit-ID: HiNSRx2a4Bi

--HG--
rename : devtools/client/inspector/rules/test/browser_rules_add-rule_04.js => devtools/client/inspector/rules/test/browser_rules_add-rule-button-state.js
rename : devtools/client/inspector/rules/test/browser_rules_add-rule_02.js => devtools/client/inspector/rules/test/browser_rules_add-rule-edit-selector.js
rename : devtools/client/inspector/rules/test/browser_rules_add-rule_iframes.js => devtools/client/inspector/rules/test/browser_rules_add-rule-iframes.js
rename : devtools/client/inspector/rules/test/browser_rules_add-rule_06.js => devtools/client/inspector/rules/test/browser_rules_add-rule-namespace-elements.js
rename : devtools/client/inspector/rules/test/browser_rules_add-rule_pseudo_class.js => devtools/client/inspector/rules/test/browser_rules_add-rule-pseudo-class.js
rename : devtools/client/inspector/rules/test/browser_rules_add-rule_03.js => devtools/client/inspector/rules/test/browser_rules_add-rule-then-property-edit-selector.js
rename : devtools/client/inspector/rules/test/browser_rules_add-rule_01.js => devtools/client/inspector/rules/test/browser_rules_add-rule.js
extra : rebase_source : bfbe4957075299954617eb42de8e0b6d4d230d95
2016-05-30 13:02:32 +02:00
Patrick Brosset
b1c81854a8 Bug 1237885 - Remove browser_rules_add-rule_05.js; r=jdescottes
This test is now useless if you consider
browser_rules_add-rule_01.js and
browser_rules_add-rule-and-property.js

MozReview-Commit-ID: IlqDhEHUK1m

--HG--
extra : rebase_source : ce2d3885ec34c4c1ed591c6d1852889a183fe275
2016-05-30 12:50:08 +02:00
Patrick Brosset
cd16e113b8 Bug 1237885 - Remove code duplication in new rule checks in ruleview tests; r=jdescottes
MozReview-Commit-ID: 6Qd9AsWWSKQ

--HG--
extra : rebase_source : fba6328cfa4ee6d8085184a49ee123f9ac11966b
2016-05-30 12:38:28 +02:00
Patrick Brosset
c13fd47d6c Bug 1237885 - Remove duplicated addNewRule code from ruleview tests; r=jdescottes
MozReview-Commit-ID: HqUaFFWiTym

--HG--
extra : rebase_source : 209da0735d72b91f07fcc9463b71b8fd4b5cf372
2016-05-30 12:04:31 +02:00
Patrick Brosset
0f01caf64c Bug 1237885 - Make browser_rules_add-rule_01.js faster by doing less; r=jdescottes
MozReview-Commit-ID: FlFVrnBrvDi

--HG--
extra : rebase_source : 34a29ca2a02bcbaff69031b1109b8b9dccf6243f
2016-05-27 21:17:53 +02:00
Andrew Chen
d5028145a5 Bug 1270010 - Add tooltips to doorhangers noting what they're doing; r=pbro 2016-05-24 18:07:00 +02:00
Nicolas Chevobbe
102c0402cd Bug 1253869 - Don't assume that rule in the Rules view match the selected node when checking for overidden properties. r=gl
Unmatched rules created via the "Add New Rule" button was wrongfully make other rules look not applied.
Fix returned isMatching boolean in PageStyleActor's function when the evaluated rule has multiple selectors.
Add CSS rules to make look unmatched rules' properties unmatched, like the rule's selector.
Add tests to make sur we handle unmatch rule selectors right.

MozReview-Commit-ID: FPQ7XJoa7Ba

--HG--
extra : transplant_source : %C4%F1sa%ED4%E6%8CV%8F/nK%E4%FBA%2C%A7%F5%0F
2016-05-25 18:16:26 +02:00
Greg Tatum
262a831a1f Bug 1265798 - Implement CSS database to query css properties r=pbro
MozReview-Commit-ID: CAUh2GyeA2o

--HG--
extra : rebase_source : fc8e97f7bfc92c709014e58bd7f1670bc859460e
2016-05-26 08:48:00 -07:00
Julian Descottes
cfdf369a02 Bug 1275081 - Part 1: Remove hardcoded number of "displayed" suggestions in devtools tests. r=tromey
Several devtools autocomplete tests are checking that the popup
displays an exact number of suggestion, and that the selected
suggestion is exactly at the expected index.

Since devtools do not control the list of CSS properties used for the
autocomplete, we should not assert anything based on it in tests.

MozReview-Commit-ID: H4Azyx0UgpX

--HG--
extra : transplant_source : r%E1%10k%AF%88%98%CD%C6_fV%99w%FA%E8%F6G%3A%25
2016-05-26 18:15:12 +02:00
Ryan VanderMeulen
43398fbb69 Backed out changeset 9cfc40ea2dbd (bug 1269226) for browser_inspector_delete-selected-node-02.js timeouts. 2016-05-26 12:53:04 -04:00
Steve Melia
32fa6f3a81 Bug 1269226 - Explicitly handle node deletion in inspector breadcrumbs. r=pbro 2016-05-25 00:06:28 +01:00
Ricky Chien
970e9b8288 Bug 1178967 - Collapse autocomplete popup when pressing Home/En. r=jdescottes
MozReview-Commit-ID: GqF75PItgf5

--HG--
extra : transplant_source : %9ECq%12%A5%1B%C0%0AG/%B9e%BF%9C%B1%F6%23%10%B4%E7
2016-05-24 18:33:00 +08:00
Patrick Brosset
b1c784e762 Bug 1275083 - Make browser_rules_add-rule_05.js faster by doing less things; r=gl
MozReview-Commit-ID: CquW1lW5E5o

--HG--
extra : rebase_source : 1a473e640f3b93053313b0147f438271ac883216
2016-05-25 15:53:30 +02:00
moby
7aa9a72069 Bug 1127572 - Fade item in the markup view when that element is hidden with "H". r=jdescottes 2016-05-25 11:12:00 -04:00
Tom Tromey
0d9260b6f7 Bug 1265813 - Replace nsIIOService with URL in devtools. r=ochameau
MozReview-Commit-ID: GyoP6ApQXVc

--HG--
extra : amend_source : ace0951657ef7290f45b26a4ae81ac27111a60e2
extra : transplant_source : 0%8B%83%83Q%D0%CF%D8r%B1%C4e%13%3E%D14%06%15%CF%D5
2016-05-13 14:27:28 -06:00
Nicolas Chevobbe
5c07ed3c81 Bug 1273323 - Add integration tests for namespaced elements. r=jdescottes
Add tests for :
- markup display
- add rule
- breadcrumb
- highlighter info bar
- markup search
- webconsole element output

Move webconsole dom output test to head.js as similar things are done
in several tests.


MozReview-Commit-ID: 6gclZhzd7sD

--HG--
extra : transplant_source : %8F%9C%B5%E5%04S%BC%5B%C9%E8QV%8F%E8i%C7%E8%9A%08%A6
2016-05-22 00:03:42 +02:00
Wes Kocher
a24690a8d4 Merge m-c to fx-team, a=merge 2016-05-25 15:39:27 -07:00
Joel Maher
a6fcbcf0a3 Bug 1270962 - move tests which access the clipboard to subsuite 'clipboard'. r=bgrins,ryanvm,armenzg a=merge
MozReview-Commit-ID: IZziPmwFtHj

--HG--
extra : source : a50249d48b1e86a3749bccc51ece4d1a827a621c
2016-05-25 15:28:24 -04:00
Carsten "Tomcat" Book
c715836c7f merge mozilla-inbound to mozilla-central a=merge 2016-05-25 15:04:00 +02:00
Julian Descottes
cef3cdb93f Bug 1266448 - part3: use HTML tooltip for markupview image previews;r=ochameau
MozReview-Commit-ID: E45sJPVAsxj

--HG--
extra : rebase_source : 9c53b19c1b9b4a7e62cb391f9c5744b4d695d2d2
extra : amend_source : 055967d755c82e33667f4a946e6a2fb57b861d40
2016-05-15 14:45:51 +02:00
Julian Descottes
cad8a77276 Bug 1266448 - part2: markup view: use dedicated Tooltip instance for image previews;r=ochameau
In preparation for using the HTML Tooltip in the markup view, we use now
a different tooltip instance for the image previews.

MozReview-Commit-ID: EOoVg6Syntj

--HG--
extra : rebase_source : 1f5424b10728e96bef1c244400c39de2301253d6
2016-05-18 23:36:31 +02:00
Julian Descottes
ce605c88aa Bug 1266448 - part1: fix remaining TooltipToggle callback;r=ochameau
In bug 1270462 we changed the expected return value of the hover callback
used for the toggle tooltips. All callbacks were migrated except one in
markup.js. This changeset fixes this as well as a test which was depending
on it.

MozReview-Commit-ID: 1FZmxT6gIoS

--HG--
extra : rebase_source : c0799cca4a077dc65dd2fc6f1f4c6af82b6f7abd
2016-05-16 18:11:08 +02:00
Patrick Brosset
3d6dea90e7 Bug 1270186 - Move css-parsing-utils.js from devtools/client to devtools/shared; r=tromey
MozReview-Commit-ID: 75Yq1X4YjjJ

--HG--
rename : devtools/client/shared/css-parsing-utils.js => devtools/shared/css-parsing-utils.js
extra : rebase_source : da47aaa4e0baba88e401be053869f99a81ac15c4
2016-05-23 14:03:12 +02:00
L. David Baron
6621735c73 Bug 955857 - Adjust test to expect that there are now 17 CSS properties beginning with 'o' rather than 16. No review.
MozReview-Commit-ID: 5vHIkjgj9Kk

--HG--
extra : rebase_source : 49693c2c1014cbecb8fc2a7f642dc04ad486dc3a
2016-05-24 16:54:29 -07:00
Carsten "Tomcat" Book
3cab03a461 Merge mozilla-central to fx-team 2016-05-24 15:15:55 +02:00
Carsten "Tomcat" Book
cb4337c62c merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver_oop.html => dom/presentation/tests/mochitest/file_presentation_non_receiver.html
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe_oop.html => dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe.html
rename : dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe_oop.html => dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html
2016-05-24 14:52:23 +02:00
Daniel Holbert
9a78c49077 Bug 1274096 part 2: Add support for "-webkit-flex" & "-webkit-inline-flex" as spellings of modern flexbox "display" keywords, if webkit prefix support is enabled. r=mats
MozReview-Commit-ID: 3UKsC1qTz1B
2016-05-23 21:42:36 -07:00
Chris Frey
b386996e65 Bug 1272208 - Use classList instead of className for testing if SVG node has classes. r=pbro
MozReview-Commit-ID: 5wq8NKYXGVx
2016-05-23 08:06:00 -04:00
Wes Kocher
fa48509cda Merge fx-team to central, a=merge 2016-05-20 14:14:00 -07:00
Tom Tromey
0d398a243a Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ

--HG--
rename : toolkit/modules/Task.jsm => devtools/shared/task.js
extra : transplant_source : %B8h%8A%8C%BD%91%8A%81%1D%F4%F5%2Ap%CFv%BC%963u0
2016-05-17 13:07:55 -06:00
Nicolas Chevobbe
62400e0cd7 Bug 1270215 - Ensure we display properly cased node names all across the devtools. r=jdescottes
Add a displayName property on the NodeActor, which compute from Element.prefix + Element.localName.
The computation is made by a getNodeDisplayName function which can be imported wherever needed.
Edit some tests to ensure we correctly display node names.

MozReview-Commit-ID: 6z0G3ynbMoU

--HG--
extra : transplant_source : %E0%AFM%88D%BC%AD%08%1D%A4%FB%F2%5D%9E%D3%90%DE%94%EC%CD
2016-05-12 07:18:58 +02:00
J. Ryan Stinnett
30b2b7ce44 Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Nicolas Chevobbe
a3ef58dc7b Bug 1271191 - Add support CSS #rgba and #rrggbbaa color syntax in the inspector. r=miker
Add support for both syntax in CssColor
Add support in value increment
Edit several tests to make sure we handle these syntaxes all across the inspector (display swatch,
color increment, unit switching, …).

MozReview-Commit-ID: FLw9va3i8H0

--HG--
extra : transplant_source : m%24%C9%E1%EFQ%18%C3%0C%8F%C6%DB%E8%E5%D2%7D%A8c%5Bl
2016-05-10 13:54:08 +02:00
Patrick Brosset
4f864f4ffd Bug 1274964 - ESLint cleanup of devtools/client/inspector; r=jryans
MozReview-Commit-ID: HCRVzU6NdM4

--HG--
extra : rebase_source : 375d55c7688599d57615a04f68ed7230cab856c2
extra : amend_source : a0fa5104ef3fbd7ba98512979cfb2396645c07e9
2016-05-23 10:41:02 +02:00
Patrick Brosset
044be2e517 Bug 1210671 - Avoid CPOW to create the test page in browser_inspector_initialization.js; r=miker
MozReview-Commit-ID: Jjq5SUWZTXa

--HG--
extra : rebase_source : 885ecd284c4dc3c82ab8229b677384af80781900
2016-05-17 12:51:44 +02:00
Alexandre Poirot
9f0ddbd261 Bug 1266828 - Convert ViewHelpers.jsm into a module. r=tromey
--HG--
rename : devtools/client/shared/widgets/ViewHelpers.jsm => devtools/client/shared/widgets/view-helpers.js
2016-05-16 03:13:30 -07:00
Patrick Brosset
e4149a2ab9 Bug 1267015 - ESLint cleanup of devtools/client/styleinspector/shared/test; r=bgrins
MozReview-Commit-ID: GKnRmlqIBxb

--HG--
extra : rebase_source : 69109deafb0af8113a31832b604208817a224dbb
2016-05-13 10:16:45 +02:00
Patrick Brosset
b2488b6603 Bug 1267015 - Don't access the test content process in browser_styleinspector_tooltip-multiple-background-images.js; r=bgrins
MozReview-Commit-ID: H0kgsYzG2x0

--HG--
extra : rebase_source : 7c20c72999895ed29744b2e64166be56e0e42141
2016-05-13 09:59:33 +02:00
Patrick Brosset
96dddc3634 Bug 1260630 - ESLint cleanup of devtools/client/inspector/computed/; r=bgrins
MozReview-Commit-ID: BreSVf4bPf

--HG--
extra : rebase_source : 5ff6e97ba85c5d3bcd14db42aba10e5ee0a469e9
2016-05-13 13:09:17 +02:00
Patrick Brosset
3f8f037ded Bug 1260630 - Don't use a CPOW to get data from content in browser_computed_style-editor-link.js; r=bgrins
MozReview-Commit-ID: Jtb6C247ltM

--HG--
extra : rebase_source : e24879ef5fbb63de8c3d0f7b637eafd6a35083c5
2016-05-13 12:54:38 +02:00
Patrick Brosset
c6763c9395 Bug 1260630 - Don't use a CPOW to change style in content in browser_computed_refresh-on-style-change_01.js; r=bgrins
MozReview-Commit-ID: 5tRJTzQLl2V

--HG--
extra : rebase_source : ef28bb5449af3661fb7d26c7186f634137d55afe
2016-05-13 12:48:18 +02:00
Tom Tromey
439e22f050 Bug 1266826 - Turn Templater.jsm into a .js. r=jryans
MozReview-Commit-ID: 4T4YiOiU0oZ

--HG--
rename : devtools/shared/gcli/Templater.jsm => devtools/shared/gcli/templater.js
extra : transplant_source : N%7B%B7%E9%91%F7%CC%87%22%D0%1E%7BZ%05%16%ED%A3q%99F
2016-05-12 09:06:38 -06:00
Patrick Brosset
45c01647ea Bug 1264907 - Don't show the firstChild of the current selection in breadcrumbs; r=jdescottes
The breadcrumbs widget used to have a feature where it would show the first
child of the current selection even the DOM tree hadn't been expanded that
far yet.
This was to allow keyboard navigating the DOM through the breadcrumbs.
The breadcrumbs is a very rarely used widget and this code was unnecessarily
making things complex.
It was decided that this feature would be removed.
Instead, the breadcrumbs now act as simple linear elements in a toolbar and
you can keyboard navigate them with LEFT/RIGHT only. TAB/shift-TAB simply go
in/out of the breadcrumbs widget.

MozReview-Commit-ID: BmcaLnVBOBn

--HG--
extra : rebase_source : 1673a6c9da02cf8b3b542e4ce905ccb239250aa7
2016-04-15 12:03:33 +02:00
Alexandre Poirot
e821487c32 Bug 1268441 - Convert markup view key shortcuts to use the shortcut helper module. r=bgrins 2016-05-12 03:07:56 -07:00
Alexandre Poirot
62793e8163 Bug 1268441 - Convert inspector key shortcut to stop using XUL. r=bgrins 2016-05-12 03:07:56 -07:00
Patrick Brosset
e57616990f Bug 1069829 - 2 - Don't use cssPropertyIsValid in the rule-view UI, get the info from the server instead; r=tromey
- StyleRuleActors now parse declarations and send them within the form
- Each declaration also contains isValid flag
- Parsing is still done client side for old backends (back compat)
- Declarations are sent with the form, so updated every time the rule changes
- Also made StyleRuleActors send the declarations array for element styles, and made canSetRuleText true for this, since we can simply set the style attribute

MozReview-Commit-ID: 2nI4bRyvwwi

--HG--
extra : rebase_source : 0ccfaeb0edb0b1a60a7c0d741295d61ad66ac57e
2016-04-29 09:30:02 +02:00
J. Ryan Stinnett
e1b9ca77b0 Bug 1270619 - Add missing imports instead of using globals. r=pbro
MozReview-Commit-ID: 28Xn7N9FSZr
2016-05-09 13:35:09 -05:00
Jennifer Fong
2f312892d5 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02:00