Commit Graph

112 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
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
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
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
Brian Grinstead
546420b396 Bug 1030347 - Enable devtools/sourceeditor tests with e10s. r=jwalker 2014-08-05 12:01:00 -04: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
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
Brian Grinstead
5049e63f1a Bug 1026811 - Update to CodeMirror 4.2.0. r=robcee 2014-06-19 06:56: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
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
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
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
Ryan VanderMeulen
e1d2899606 Backed out changeset ab4c12c6028b (bug 988155) for xpcshell failures. 2014-04-13 16:20:33 -04:00
Heather Arthur
b8466ed389 Bug 988155 - Option to detect indentation in source editor. r=msucan 2014-04-13 15:23:26 -04:00
Michael Ratcliffe
4cc10271fe Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Brian Grinstead
5c85a9086f Bug 985924 - Upgrade sourceeditor to CodeMirror 4.0.3; r=msucan 2014-04-04 12:44:10 -05:00
Mark Hammond
d5b24aae08 Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
Ehsan Akhgari
87aed6494d Bug 965362 - Part 2: Do not assume that all of the contents of the HTTP channel will be available by the time we decide to read it synchronously in devtools tests; r=robcee 2014-03-27 11:20:16 -04:00
Mihai Sucan
7d8b45bff6 Bug 981707 - Allow the codemirror test harness to report PASS/FAIL messages to the Mozilla test harness. r=harth 2014-03-24 23:06:22 +02:00
Girish Sharma
f9669b958e Bug 971702 - Style editor to provide meaningful information about hovered text, r=pbrosset 2014-03-25 20:38:52 +05:30
Girish Sharma
4ab55b42a0 Bug 984141 - Style editor should suggest valid CSS values without need of typing an initial character. r=harth 2014-03-17 01:58:47 +05:30
Michael Ratcliffe
6a28402ad5 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
c633e65783 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
f4a47052ae Bug 663778 - Use flag instead of pref for mozafterpaint switch and highlighter noautohide r=jwalker 2014-03-13 15:38:37 +00:00
Joel Maher
b35a90e07b Bug 981701 - disable two perma failing tests on linux debug ec2 so we can run browser chrome on ec2 machines. r=jgriffin 2014-03-11 05:22:09 -04:00
Gregory Szorc
8cdf0dcfac Bug 979640 - Make build system error on missing test files; r=ted
Previously, the build system may silently missing test files defined in
manifests. This patch makes missing test files a fatal error, detected
when reading test manifests.

The test_bug872273.html XBL test appeared to be orphaned in
content/xbl/test. It has been reunited with its family.

dom/tests/mochitest/notification referenced a single test file which was
recently deleted. That manifest has been removed.

Missing test files related to the Python unit tests for the build system
have been added. (They are a bunch of empty files.)
2014-03-04 17:48:50 -08:00
Ryan VanderMeulen
4400911045 Backed out changeset 593206fbd97e (bug 979640) for mochitest-other failures.
CLOSED TREE
2014-03-05 13:52:02 -05:00
Gregory Szorc
f2c36e003c Bug 979640 - Make build system error on missing test files; r=ted
Previously, the build system may silently missing test files defined in
manifests. This patch makes missing test files a fatal error, detected
when reading test manifests.

The test_bug872273.html XBL test appeared to be orphaned in
content/xbl/test. It has been reunited with its family.

dom/tests/mochitest/notification referenced a single test file which was
recently deleted. That manifest has been removed.

Missing test files related to the Python unit tests for the build system
have been added. (They are a bunch of empty files.)
2014-03-04 17:48:50 -08:00
Anton Kovalyov
cde2487bb1 Bug 964504 - Add Editor.setFontSize/getFontSize. r=msucan 2014-02-10 18:21:42 -08:00
Girish Sharma
2afad76ee0 Bug 717369 - Autocomplete CSS properties and values in the Style Editor - Part 2 - Source editor tests, r=anton 2014-01-28 20:40:40 +05:30
Anton Kovalyov
eb02e52463 Bug 960704 - Upgrade CodeMirror to 3.21. r=msucan 2014-01-17 13:04:00 -08:00
Anton Kovalyov
95a84f6708 Bug 734439 - Add code folding support to the source editor. r=msucan r=benvie 2014-01-15 16:23:32 -08:00
Anton Kovalyov
12fc4ed457 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
0d4140ce87 Bug 910183 - Highlight trailing space in the editor. r=msucan 2014-01-14 14:12:39 -08:00
Anton Kovalyov
819daefbda Bug 920876 - Longer timeout for the CodeMirror suite since we added VIM/Emacs tests. r=me 2014-01-08 11:34:57 -08:00
Phil Ringnalda
8b2384e2ed Back out f122349d9fbd (bug 941725) for debug and ASan bc timeouts in browser_codemirror.js
CLOSED TREE
2014-01-07 20:48:34 -08:00
Anton Kovalyov
1485ca7fef Bug 941725 - Add emacs and vim key bindings to source editor. r=harth r=benvie r=msucan 2014-01-07 15:02:01 -08:00