Commit Graph

214 Commits

Author SHA1 Message Date
Matteo Ferretti
3ee75ea37a Bug 1153474 - CMD + G in style editor does not find next if you haven't hit enter first. r=bgrins 2015-06-23 17:18:55 -07:00
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Matteo Ferretti
15b38b458c Bug 1159001 - Select text in the Style Editor search input when it is reopened. r=bgrins 2015-05-13 13:11:38 +02:00
Matteo Ferretti
28b4946140 Bug 1154371 - Avoid displaying autocomplete popup when ',' is pressed. r=ttromey 2015-05-13 12:26:47 +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
0d849bdbc4 Bug 1168077 - Remove remaining spidermonkey js specific syntax from browser/devtools; r=miker 2015-05-25 14:42:51 +02:00
Tom Tromey
6b6976bafa Bug 1153305 - change css-tokenizer.js to use CSSLexer r=pbrosset 2015-05-13 11:37:51 -07:00
ziyunfei
649e7033e4 Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Tim Nguyen
eb4b8ed17d Bug 1023546 - DevTools - Support HDPI resolutions for Windows. r=bgrins 2015-04-28 07:30:00 -04:00
Sami Jaktholm
493766f074 Bug 1148086 - Style Editor: Don't jump to the first line unconditionally when an editor is shown. r=bgrins
This overrides the jump-to-line other tools might have requested if the editor
was not already active. The idea was to restore the scroll position after the
editor was hidden and then shown again but the functionality regressed when bug
816967 was fixed.

Now that Style Editor uses CodeMirror the scroll position can be restored by
calling refresh on the CodeMirror instance. If a specific line to focus was
specified, refreshing the editor is a no-op as it was done when the line was
selected. However, if the editor was not refreshed after the editor became
visible again (i.e. a line to jump to was not specified), refreshing it will
restore the previous scroll position.
2015-04-25 06:54:25 +03:00
Tim Nguyen
d7dcd1d4e1 Bug 1089428 - Allow script injection into source editor component. r=bgrins 2015-04-04 01:17:59 +02:00
Brian Grinstead
ee3f82f5be Bug 1149346 - DevTools sourceeditor: make selection of an autocomplete item include the full text of the item;r=pbrosset
Previously, there was a case where typing 'a' and then selecting '#about' would
end up with 'about' in the editor.  The selection wasn't taking this situation
into account, so now if the prefix of the autocomplete item contains the entire
text of the line, then replace the first part of the line with the item
2015-04-15 08:15:22 -07:00
Patrick Brosset
f3c46e292f Bug 1149346 - First word in selector-search also matches classes and ids; r=harth 2015-04-15 08:15:20 -07: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
cc5401f5c7 Bug 964939 - Allow clicking on autocomplete items for CSS source editor. r=pbrosset 2015-03-17 11:42:00 -04:00
Ian Moody
5c26c2c0e4 Bug 1138518 - Add JS template string (`) to autoCloseBrackets for the DevTools Source Editor. r=bgrins 2015-03-02 10:59:00 +01:00
J. Ryan Stinnett
cb15b8feda Bug 1128027 - Repair sourceeditor test after protocol.js cleanup change. r=bgrins 2015-02-25 19:23:06 -06:00
Christoph Kerschbaumer
c140a90bb3 Bug 1115193 - Make JS callers of ios.newChannel call ios.newChannel2 in browser/devtools - tests (r=vporof) 2015-02-10 20:49:06 -08:00
Eddy Bruël
f21bfe1a6b Bug 1123211 - Handle uncaught promise rejections in the source editor;r=pbrosset 2015-01-19 13:57:08 +01:00
Adrian Aichner
484bc426c5 Bug 1058183 - Expose code folding as an option for all editor instances. r=bgrins 2014-09-12 13:36:00 +02:00
Jakub Jurovych
497f5add2e Bug 1052220 - Show traces' hit counts. r=fitzgen 2014-08-26 18:25:00 +02:00
Brian Grinstead
546420b396 Bug 1030347 - Enable devtools/sourceeditor tests with e10s. r=jwalker 2014-08-05 12:01:00 -04:00
Brian Grinstead
23bca18ed6 Bug 1022083 - Project Editor: Add context menu in sourceeditor. r=harth 2014-07-31 08:44:00 -04:00
Nathan Froyd
cedbc07ce0 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
J. Ryan Stinnett
2385f67a74 Bug 1039457 - Allow yelling in Scratchpad (Shift-Space). r=robcee 2014-07-16 07:11:00 +02:00
Panos Astithas
25b8256a4d Wait a turn of the event loop if CodeMirror isn't settled by the time breakpoints are being set (bug 1016310). r=vporof 2014-07-09 18:49:34 +03:00
Brian Grinstead
051b454364 Bug 1033853 - Do not reload files that have changed in project editor. r=harth 2014-07-07 07:45:00 +02:00
Brian Grinstead
3a52fe6376 Bug 1031472 - Automatically reload all preferences in source editor. r=vporof,harth 2014-07-07 13:52:00 +02:00
Brian Grinstead
8e71722388 Bug 1029511 - Source Editor: Add ability to toggle autocomplete option. r=vporof 2014-06-30 11:23:00 +02:00
Brian Grinstead
9702b67154 Bug 1030716 - Prevent dark theme in sourceeditor for WebIDE. r=paul 2014-06-26 06:14:00 +02:00
Jim Blandy
39dc0c6097 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
84ceceaf32 Bug 1024642 - Fix merge conflict from codemirror 4.2.0 upgrade r=me 2014-06-23 19:20:01 -07:00
Wes Kocher
fc8bba4344 Merge m-c to inbound a=merge 2014-06-23 18:59:54 -07:00
David Burns
459d0aecb9 Bug 1024642: Update devtools source editor and test to add rebeccapurple; r=jwalker 2014-06-23 10:24:17 +01:00
Brian Grinstead
5049e63f1a Bug 1026811 - Update to CodeMirror 4.2.0. r=robcee 2014-06-19 06:56:00 -04:00
Brian Grinstead
cd00e0323f Bug 1026560 - Make clicking the [docs] link in the type information popup in Scratchpad open the MDN page in a new window. r=past 2014-06-18 07:14:00 -04:00
anaran
a548c13c5a 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
Patrick Brosset
b9614aa4af Backed out changeset 40f323c3c14e -- Style-editor completion broken 2014-05-22 10:44:35 +02:00
Tim Nguyen
f94550174c Bug 973691 - Make the code mirror find/go to line match the devtools theme. r=bgrins 2014-05-16 14:48:00 +02:00
Brandon Benvie
9d4bb9f734 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
Tim Nguyen
3cb595aa9b Bug 1009145 - HDPI support for Debugger icons. r=bgrins 2014-05-16 15:25:00 +02:00
Patrick Brosset
d3ad7dcf73 Bug 835896 - First word in selector-search also matches classes and ids; r=harth 2014-05-16 14:06:12 +02:00
James Long
99b4194c7f Bug 986151 - Fix line number of breakpoints when added from context menu. r=past 2014-05-15 14:51:00 +02:00
James Long
203bdc87e1 Bug 799077 - slide the breakpoint with a CSS transition when the server moves it r=past 2014-05-08 14:57:00 +02:00
Mats Palmgren
dd2837ea9a Bug 1005567 - Remove the obsolete 'grid-auto-position' property. r=simon.sapin 2014-05-06 09:45:13 +00:00
Heather Arthur
fc7af7e895 Bug 998718 - Indentation detection is wrong when there's a majority of outliers. r=msucan 2014-04-22 15:14:00 -04:00
Girish Sharma
e4c02ed865 Bug 988569 - Some fine tuning to suggestions showing logic. r=harth 2014-04-19 18:15:51 +05:30
Heather Arthur
bd94ec80b0 Bug 993162 - Make default indent size 2 spaces. r=jwalker 2014-04-20 22:28:00 +02:00
Ryan VanderMeulen
66b14f4f7d Bug 996003 - Various devtools test manifest cleanups. r=miker 2014-04-15 08:03:53 -04:00
Heather Arthur
ed3a913796 Bug 988155 - Option to detect indentation in source editor. r=msucan 2014-04-13 15:23:26 -04:00