Commit Graph

136 Commits

Author SHA1 Message Date
Patrick Brosset
8c2aaa42cf 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.

--HG--
extra : rebase_source : d7b6f639634b64dc084d0835a5fb36c9720a87e7
2015-05-28 09:30:03 +02:00
Patrick Brosset
6b0f771384 Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans
--HG--
extra : rebase_source : 95a9daf992adf418831ed362c07ac3402e0c5f5f
extra : histedit_source : 4e2d9d6fadc0da7bb7b29bad6dffd7576df6f16a
2015-05-22 20:50:01 +02:00
Mike Conley
8d4c817e24 Bug 1160217 - Wait for resize to complete in browser_responsiveuiaddcustompreset.js before sampling inner dimensions of content. r=jryans.
--HG--
extra : rebase_source : 4b4428a2cbd7b60fbc0c0fdffb34cadf0e8d7fb0
2015-04-30 13:35:14 -04:00
Joe Walker
9cc5a4d6b3 Bug 1128988 - runAt support for commands/converters; r=bgrins
--HG--
rename : browser/devtools/main.js => browser/devtools/definitions.js
2015-04-23 10:24:49 +01:00
Panos Astithas
e4b9084401 Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Patrick Brosset
d44f1cbad1 Bug 1106272 - Part 2: Change all rule-view events from custom dom events to eventemitter events. r=miker
--HG--
extra : rebase_source : f84711e8e874c92d3f34850573bf375b00930f7d
2015-03-24 15:06:39 +01:00
Abdelrhman Ahmed
c2d58f8397 Bug 1144780 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao 2015-03-18 11:25:00 +01:00
Sami Jaktholm
b633846f05 Bug 1125342 - Fix intermittent browser_responsiveui.js by making the test to wait for document to load before starting the test. r=ochameau 2015-03-06 14:09:50 +02:00
Brian Grinstead
65b7fd2bf7 Bug 1121110 - Add a shared.properties file for localizing strings used across tools;r=vporof 2015-01-28 11:57:27 -08:00
Aaron Raimist
e70c6c1695 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
Paul Rouget
78c8fbee1b Bug 1067145 - Make responsive design e10s-ready. r=ochameau 2015-01-20 00:57:00 -05:00
Alexandre Poirot
9b02c5402d Bug 1097814 - Fix fake hardware buttons in mulet. r=paul, r=vingtetun 2014-11-20 10:48:00 -05:00
Jordan Santell
a181e76100 Bug 1078539 - Add a doorhanger widget for the developer edition notification to browser console, developer tools, webide and responsive design mode. r=jryans 2014-10-22 17:18:31 -07:00
David Rajchenbach-Teller
2869e72053 Bug 1016387 - Whitelisting tests that leak Promise rejections (devtools, part 2). r=yoric 2014-10-10 03:56:00 +02:00
Chris Adams
0bbc5b3517 Bug 1066101 - Use correct date for screen shot filename in Responsive Design View. r=jryans
The filename previously used the numeric day of the week instead of the day of
the month.
2014-09-11 11:32:11 -04:00
Shu-yu Guo
59ccd2fecb Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Alexandre Poirot
8f9afc126a Bug 994669 - Integrate gaia responsive mode tweaks. r=paul 2014-08-12 02:43:00 -04:00
Nathan Froyd
163669fca7 Bug 1045118 - move install rules in browser/devtools/*/Makefile.in to moz.build; r=mshal 2014-07-28 12:36:04 -04:00
Nathan Froyd
542214c4df Bug 1044162 - part 1 - make EXTRA_{PP_,}JS_MODULES communicate their installation path; r=mshal
This patch makes EXTRA_{PP_,}JS_MODULES similar in functionality to
TESTING_JS_MODULES: we indicate the path relative to
$(FINAL_TARGET)/modules with an appropriate hierarchy of paths.
2014-07-25 13:40:07 -04:00
Brian Grinstead
7c5b621872 Bug 974550 - Add a preference to optionally persist split console state;r=msucan,jwalker 2014-07-28 15:54:41 -05:00
Brian Grinstead
16a7c0b529 Bug 1037145 - Remove esc as a keybinding to close responsive mode. r=paul 2014-07-24 07:59:00 +02:00
Jeremie Patonnier
5af37c03de Bug 762848 - [responsive mode] we need an "input" mechanism to set a size. r=paul 2014-07-19 14:21:04 +02:00
Carsten "Tomcat" Book
da35e74bd1 Merge mozilla-central to fx-team 2014-06-25 15:48:21 +02:00
Jim Blandy
7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Joe Walker
0e06175e6e Bug 1028234 - Allow command buttons to use target; r=bgrins 2014-06-25 11:21:07 +01:00
Joe Walker
bb287a8929 Bug 992309 - Don't leak gcli promise to other tests; r=mratcliffe 2014-06-09 15:16:26 +01:00
Patrick Brosset
d887fe0116 Bug 825427 - Intermittent browser_responsiveruleview.js; r=miker 2014-04-18 10:11:30 +02:00
Ryan VanderMeulen
3a8da37041 Bug 996003 - Various devtools test manifest cleanups. r=miker 2014-04-15 08:03:53 -04:00
Joe Walker
6148f170d7 Bug 984365 - Refactor and split out BuiltinCommands.jsm; r=mratcliffe,robcee,panos
BuiltinCommands.jsm was huge to avoid slowing things down by having many
modules loading.

To avoid splitting it up from slowing things down we want to delay loading
commands. Create [add|remove]ItemsByModule to allow us to lazily add modules,
and convert all command modules to use this.

Then break up BuiltinCommands into a set of files, for each command, and do
some refactoring to use JS files rather than JSMs and use "use strict".

--HG--
rename : browser/devtools/commandline/Commands.jsm => browser/devtools/commandline/commands-index.js
rename : browser/devtools/debugger/CmdDebugger.jsm => browser/devtools/debugger/debugger-commands.js
rename : browser/devtools/inspector/CmdInspect.jsm => browser/devtools/inspector/inspector-commands.js
rename : browser/devtools/responsivedesign/CmdResize.jsm => browser/devtools/responsivedesign/resize-commands.js
rename : browser/devtools/scratchpad/CmdScratchpad.jsm => browser/devtools/scratchpad/scratchpad-commands.js
rename : browser/devtools/styleeditor/CmdEdit.jsm => browser/devtools/styleeditor/styleeditor-commands.js
rename : browser/devtools/tilt/CmdTilt.jsm => browser/devtools/tilt/tilt-commands.js
2014-04-13 07:47:27 +01:00
Michael Ratcliffe
d0f5dae6ab Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Mark Hammond
cae334e085 Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
Brandon Benvie
bdb7518950 Bug 943510 - Convert to Promise.jsm in the devtools framework. r=pbrosset, r=rcampbell 2014-03-17 11:11:00 -07:00
Michael Ratcliffe
aba2618867 Bug 663778 - Use flag instead of pref for mozafterpaint switch and highlighter noautohide r=jwalker 2014-03-13 21:27:10 +00:00
Ryan VanderMeulen
4510c7d862 Backed out 6 changesets (bug 663778) for browser_dbg_listtabs-02.js leaks on a CLOSED TREE.
Backed out changeset cbd200206f9b (bug 663778)
Backed out changeset b0b74401e614 (bug 663778)
Backed out changeset df5255cffbfa (bug 663778)
Backed out changeset e6d0dd124356 (bug 663778)
Backed out changeset 134f77474941 (bug 663778)
Backed out changeset 456609873c5f (bug 663778)
2014-03-13 13:56:22 -04:00
Michael Ratcliffe
9d3dde5e49 Bug 663778 - Use flag instead of pref for mozafterpaint switch and highlighter noautohide r=jwalker 2014-03-13 15:38:37 +00:00
Joe Walker
0197a26343 Bug 933727 - Split gcli.jsm and use JS directly from gcli project; r=mratcliffe
* * *
Bug 933727 - Update Developer Toolbar to use promises and split out GCLI; r=mratcliffe
* * *
Bug 933727 - Update GCLI tests to use Task.spawn; r=mratcliffe
* * *
Bug 933727 - Update the Inspector to use split out GCLI; r=pbrosset
* * *
Bug 933727 - Update style editor to use split out GCLI; r=harth
* * *
Bug 933727 - Update Debugger to use split out GCLI; r=past
* * *
Bug 933727 - Update Profiler/Tilt/Scratchpad to use split out GCLI; r=valueof

--HG--
rename : browser/devtools/commandline/test/browser_cmd_pref.js => browser/devtools/commandline/test/browser_cmd_pref1.js
rename : browser/devtools/commandline/test/browser_cmd_pref.js => browser/devtools/commandline/test/browser_cmd_pref2.js
rename : browser/devtools/commandline/test/browser_gcli_cli.js => browser/devtools/commandline/test/browser_gcli_cli1.js
rename : browser/devtools/commandline/test/browser_gcli_cli.js => browser/devtools/commandline/test/browser_gcli_cli2.js
rename : browser/devtools/commandline/test/browser_gcli_completion.js => browser/devtools/commandline/test/browser_gcli_completion1.js
rename : browser/devtools/commandline/test/browser_gcli_completion.js => browser/devtools/commandline/test/browser_gcli_completion2.js
2013-09-03 12:20:27 +01:00
J. Ryan Stinnett
8b18eca111 Bug 976679 - Move event-emitter to toolkit. r=paul
--HG--
rename : browser/devtools/shared/event-emitter.js => toolkit/devtools/event-emitter.js
rename : browser/devtools/shared/test/browser_eventemitter_basic.js => toolkit/devtools/tests/mochitest/test_eventemitter_basic.html
2014-02-25 22:22:05 -06:00
Brian Grinstead
c607a3cf40 Bug 967168 - DevTools Addon icons should not be inverted on light theme;r=jwalker 2014-02-10 07:50:13 -06:00
Alexandre Poirot
2061b3d4f4 Bug 961519 - Prevent touch event mode to be disable on iframes unload. r=paul 2014-01-21 11:29:46 -05:00
Alexandre Poirot
17fe928a45 Bug 891882 - Activate touch events on b2g desktop. r=vingtetun, r=mdas 2014-01-15 09:28:04 -05:00
Brian Grinstead
fa25d4d3d6 Bug 947836 - Non-toolbox devtools toolbars are grey;r=paul 2013-12-09 16:21:26 -06:00
Brian Grinstead
9ecc446ffd Bug 945697 - Responsive Mode gets closed when ESC is used in the varilable view, in the rule view and in the variable view. r=paul 2013-12-09 10:06:11 -06:00
Alexandre Poirot
f4f84f24ef Bug 946222 - Fix responsive design touch events against gaia. r=paul 2013-12-04 17:41:29 -05:00
Brian Grinstead
9115c8772b Bug 942946 - ESC closes Responsive Design Mode while opening Web Console split view. r=paul 2013-11-25 13:25:25 -06:00
Paul Rouget
b50be088a0 Bug 890195 - allow deviceSizeIsPageSize default value to be set via a preference. r=bz 2013-11-07 14:40:23 +01:00
Paul Rouget
b83275098a Bug 890195 - device-width media queries should use the page width, not the actual device width. r=bz 2013-11-07 14:40:23 +01:00
Paul Rouget
0219bc66cc Bug 925199 - Move touch-events.js to /toolkit. r=ochameau 2013-10-11 12:00:01 -04:00
Ms2ger
1ee1f27aa3 Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02:00
Gregory Szorc
54c1de66d6 Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:06 +02:00
Ed Morley
2c7dd24541 Backed out changeset 8b02873ee07e (bug 920223) 2013-09-30 12:50:05 +01:00