Commit Graph

100 Commits

Author SHA1 Message Date
Adrian Aichner
81501866d5 Bug 1058183 - Expose code folding as an option for all editor instances. r=bgrins 2014-09-12 13:36:00 +02:00
Brian Grinstead
80616f180b Bug 1030347 - Enable devtools/sourceeditor tests with e10s. r=jwalker 2014-08-05 12:01:00 -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
Brian Grinstead
fdd8936fd0 Bug 1029511 - Source Editor: Add ability to toggle autocomplete option. r=vporof 2014-06-30 11:23: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
Brian Grinstead
c07b74e91b Bug 1026811 - Update to CodeMirror 4.2.0. r=robcee 2014-06-19 06:56:00 -04: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
Patrick Brosset
7299945974 Backed out changeset 40f323c3c14e -- Style-editor completion broken 2014-05-22 10:44:35 +02:00
Patrick Brosset
cbde0ae529 Bug 835896 - First word in selector-search also matches classes and ids; r=harth 2014-05-16 14:06:12 +02:00
Heather Arthur
77382a3d3f 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
b6f37f1c1c Bug 993162 - Make default indent size 2 spaces. r=jwalker 2014-04-20 22:28:00 +02:00
Ryan VanderMeulen
5ccec8d240 Bug 996003 - Various devtools test manifest cleanups. r=miker 2014-04-15 08:03:53 -04:00
Heather Arthur
73c671ef77 Bug 988155 - Option to detect indentation in source editor. r=msucan 2014-04-13 15:23:26 -04:00
Ryan VanderMeulen
f381de4a75 Backed out changeset ab4c12c6028b (bug 988155) for xpcshell failures. 2014-04-13 16:20:33 -04:00
Heather Arthur
1b533dd97b Bug 988155 - Option to detect indentation in source editor. r=msucan 2014-04-13 15:23:26 -04:00
Michael Ratcliffe
e7dad953b0 Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Brian Grinstead
270ee4d10a Bug 985924 - Upgrade sourceeditor to CodeMirror 4.0.3; r=msucan 2014-04-04 12:44:10 -05:00
Mark Hammond
cd2c8e6c5b Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
Ehsan Akhgari
07477b55f2 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
d1c4c2a448 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
2c5f9e34c3 Bug 971702 - Style editor to provide meaningful information about hovered text, r=pbrosset 2014-03-25 20:38:52 +05:30
Girish Sharma
5dd410a56f 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
dabaac4db5 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
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
Joel Maher
a07aab0719 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
6855aa46f4 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.)

--HG--
extra : amend_source : cb6b9bf91e57569c8be312d3c16fef69b2b0b950
2014-03-04 17:48:50 -08:00
Ryan VanderMeulen
31a858278a Backed out changeset 593206fbd97e (bug 979640) for mochitest-other failures.
CLOSED TREE
2014-03-05 13:52:02 -05:00
Gregory Szorc
1944284f31 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.)

--HG--
extra : rebase_source : 8c64986169064401951585c07deadada8c905550
2014-03-04 17:48:50 -08:00
Anton Kovalyov
d91df90422 Bug 964504 - Add Editor.setFontSize/getFontSize. r=msucan 2014-02-10 18:21:42 -08:00
Girish Sharma
3d09a30413 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
e37bd6d5eb Bug 960704 - Upgrade CodeMirror to 3.21. r=msucan 2014-01-17 13:04:00 -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
Anton Kovalyov
c7671bbf53 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
d451b46f71 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
5f800bb280 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
Anton Kovalyov
a503368800 Bug 956943 - Replace Editor.extendSelection with CM version. r=vporof 2014-01-07 13:01:38 -08:00
Anton Kovalyov
07634c1c44 Bug 951975 - Expose Editor.setOption and Editor.getOption. r=msucan 2014-01-07 11:24:57 -08:00
Anton Kovalyov
6dcf4dd097 Bug 919707 - Make shift-click on a gutter select whole lines in the editor. r=robcee 2013-11-26 14:32:28 -08:00
Gabriel Luong
59942dfdb6 Bug 924996 - Implement keyboard shortcut to move selected lines in source editor. r=anton 2013-11-25 19:06:42 -08:00
Anton Kovalyov
934952b38e Bug 941781 - Upgrade CodeMirror to 3.20. r=robcee 2013-11-22 11:56:43 -08:00
Anton Kovalyov
e26d1575d0 Bug 929766 - Remove Orion from the SourceEditor component. r=msucan 2013-11-19 15:53:13 -08:00
Anton Kovalyov
7e6b594102 Bug 920570 - requestLongerTimeout for browser_codemirror and re-enable it on Linux. r=me 2013-11-19 10:54:19 -08:00
Ed Morley
58c734c755 Bug 920570 & bug 920876 - Skip-if browser_codemirror.js on linux for too many intermittent failures 2013-10-14 22:56:25 +01:00
Ms2ger
105ce73cfa Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02:00
Gregory Szorc
b03f79a7e6 Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:06 +02:00
Ed Morley
eccf636a23 Backed out changeset 8b02873ee07e (bug 920223) 2013-09-30 12:50:05 +01:00
Gregory Szorc
e4af98efbf Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:06 +02:00