Commit Graph

220 Commits

Author SHA1 Message Date
Panos Astithas
84cfc5040b Wait for scratchpad to finish before ending the test (bug 985423). r=me 2014-07-17 16:58:59 +03:00
J. Ryan Stinnett
a7bfe5f980 Bug 1039457 - Allow yelling in Scratchpad (Shift-Space). r=robcee 2014-07-16 07:11:00 +02:00
Boris Zbarsky
c0853db72a Bug 857648 part 5. Expose a .stack property on DOMExceptions. r=khuey 2014-07-04 01:25:16 -04:00
Brian Grinstead
0db29c76bc Bug 1031472 - Automatically reload all preferences in source editor. r=vporof,harth 2014-07-07 13:52:00 +02:00
Jim Blandy
4d6a633bba 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
Wes Kocher
3a1d1b9839 Merge m-c to fx-team a=merge 2014-06-23 19:07:22 -07:00
Panos Astithas
f15c20c527 Inspect primitive values in the object inspector instead of as inline comments (bug 1027424). r=rcampbell 2014-06-23 22:25:40 +03:00
Nick Fitzgerald
f79fcccd5f Bug 1000967 - Add source notes for |new| expression and function calls to improve source maps and debugging. r=ejpbruel 2014-06-20 13:09:00 -04:00
Panos Astithas
c99d4f5d89 Remove closed connection targets from scratchpad and request a new one on evaluation (bug 949262). r=fitzgen
--HG--
extra : rebase_source : e507386dca54759499fdf7c8c70ec23732d261fc
2014-06-17 19:49:23 +03:00
anaran
9509a3d5bc Bug 1005471 - Scratchpad "Jump to line" should preset input value based on current selection, handle LINE:COLUMN as well;r+=bgrins
---
 browser/devtools/scratchpad/test/browser.ini       |    2 +
 .../browser_scratchpad_pprint_error_goto_line.js   |   66 ++++++++++
 .../test/browser_scratchpad_run_error_goto_line.js |   49 ++++++++
 browser/devtools/sourceeditor/editor.js            |   29 ++++-
 browser/devtools/sourceeditor/test/browser.ini     |    1 +
 .../sourceeditor/test/browser_editor_goto_line.js  |  130 ++++++++++++++++++++
 6 files changed, 276 insertions(+), 1 deletions(-)
 create mode 100644 browser/devtools/scratchpad/test/browser_scratchpad_pprint_error_goto_line.js
 create mode 100644 browser/devtools/scratchpad/test/browser_scratchpad_run_error_goto_line.js
 create mode 100644 browser/devtools/sourceeditor/test/browser_editor_goto_line.js
2014-06-02 15:33:20 -07:00
Manish Goregaokar
8d7de30475 Bug 994134 - Warn first time users on pasting code into the console. r=bgrins
--HG--
rename : browser/devtools/webconsole/test/browser_webconsole_bug_642615_autocomplete.js => browser/devtools/webconsole/test/browser_webconsole_autocomplete_and_selfxss.js
2014-05-22 00:34:00 +02:00
Brandon Benvie
c995d1c9c5 Bug 968896 - Add tern support to source editor to provide autocompletion and type inference. r=vp, r=anton, r=fitzgen 2014-04-16 13:49:28 -07:00
Vikneshwar
3d1acb7d95 Bug 998065 - Added 0o prefix to octal numbers; r=froydnj 2014-04-22 11:53:00 +02:00
Ryan VanderMeulen
5ccec8d240 Bug 996003 - Various devtools test manifest cleanups. r=miker 2014-04-15 08:03:53 -04:00
Joe Walker
ffa9c6e99c 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
e7dad953b0 Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Willian Gustavo Veiga
3a0fc97629 Bug 993973 - Move the View menu after the Edit menu. r=past 2014-04-09 14:28:00 +03:00
Ed Morley
a9eca49755 Merge mozilla-central and fx-team 2014-04-02 18:25:23 +01:00
Willian Gustavo Veiga
b34cb3a129 Bug 953206 - Add a Scratchpad view menu. r=benvie, r=anton 2014-04-02 11:17:21 -04:00
Mark Hammond
cd2c8e6c5b Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
Sukanta Pal
23cf04b1a7 Bug 982735 - Add keyboard shortcut hint for scratchpad jump to line. r=Benvie 2014-04-01 08:57:24 -04:00
Phil Ringnalda
b9b8a97985 Back out 43663582cfdb (bug 987404) because it looks like it disabled things even without e10s being defined 2014-03-30 23:18:57 -07:00
Mark Hammond
555f838434 Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-03-31 14:11:49 +11:00
Ehsan Akhgari
203616ca8f Bug 989226 - Double the test timeout 2014-03-30 09:45:28 -04:00
Michael Ratcliffe
dabaac4db5 Bug 663778 - Use flag instead of pref for mozafterpaint switch and highlighter noautohide r=jwalker 2014-03-13 21:27:10 +00:00
Michael Ratcliffe
43388cd236 Bug 663778 - Changes to tests for box model highlighter r=jwalker 2014-03-12 14:01:31 +00:00
Ryan VanderMeulen
991e5c8bc3 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
39a70a90a5 Bug 663778 - Use flag instead of pref for mozafterpaint switch and highlighter noautohide r=jwalker 2014-03-13 15:38:37 +00:00
Michael Ratcliffe
eb6c7c9e1d Bug 663778 - Changes to tests for box model highlighter r=jwalker 2014-03-12 14:01:31 +00:00
Mark Goodwin
adbea41542 Bug 961165 - Remove inline scripts from scratchpad.xul. r=bbenvie 2014-03-10 09:00:31 -04:00
Joe Walker
6fd91a613d 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
ca83343b85 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
Conrad Irwin
e115efe2f3 Bug 762556 - Error stack should contain column number. r=jorendorff 2014-02-19 11:30:08 -05:00
Brian Grinstead
16b3c7a6ce Bug 967168 - DevTools Addon icons should not be inverted on light theme;r=jwalker 2014-02-10 07:50:13 -06:00
Vikneshwar
d950306633 Bug 957072 - Add Pretty Print to Scratchpad Menu. r=robcee 2014-02-08 21:02:11 -05:00
Brandon Benvie
8dbbdedd55 Bug 941591 - No line numbers for Syntax Errors; r=benvie 2014-02-04 12:54:26 -08:00
Mihai Sucan
dc07968f72 Bug 939783 - console.trace() group traces even if part of trace is different; r=robcee 2014-01-23 23:37:32 +02:00
Peiyong Lin
4e07087022 Bug 942774 - Fix files loaded into scratchpad to be recognized as "saved". r=benvie 2014-01-22 10:23:21 -08:00
Rob Campbell
60f2a41803 Bug 961767 - Remove dead toggleWebConsole method from hudservice.js; r=msucan 2014-01-21 12:40:00 -05:00
Anton Kovalyov
c66cff2b44 Bug 960270 - Streamline Editor API. r=msucan 2014-01-17 12:58:45 -08:00
Anton Kovalyov
d9b64b76ed Bug 734439 - Add code folding support to the source editor. r=msucan r=benvie 2014-01-15 16:23:32 -08:00
Anton Kovalyov
57570f0640 Bug 941725 - Add emacs and vim key bindings to source editor. r=harth r=benvie r=msucan 2014-01-15 12:04:19 -08:00
Ben DeCoste
2dae43534f Bug 910183 - Highlight trailing space in the editor. r=msucan 2014-01-14 14:12:39 -08:00
Brandon Benvie
f47191f856 Bug 943672 - Convert to Promise.jsm in Scratchpad. r=anton 2013-12-02 14:09:11 -08:00
Victor Porof
d6057ceb5c Bug 725235 - In the debugger, show a details bubble while hovering over a variable or property in the source editor, r=past,rcampbell 2013-11-29 16:47:52 +02:00
Peiyong Lin
637467bbb0 Bug 941089 - Remove __noSuchMethod__ from browser/devtools/scratchpad/test/browser_scratchpad_ui.js. r=bbenvie 2013-11-26 14:21:59 -05:00
Dan Koepke
8fe6077992 Bug 940016 - Add Run and Reload to Scratchpad context menu. r=bbenvie 2013-11-21 09:32:55 -05:00
Anton Kovalyov
e26d1575d0 Bug 929766 - Remove Orion from the SourceEditor component. r=msucan 2013-11-19 15:53:13 -08:00
Nick Fitzgerald
715002d816 Bug 922812 - Add an 'eval current top level function' command to scratchpad; r=past 2013-11-19 15:17:40 -08:00
Wes Kocher
28b297c750 Backed out changeset 71dc115fe230 (bug 929766) for other m-bc bustage on what I'm guessing is a CLOSED TREE 2013-11-18 16:03:13 -08:00