Commit Graph

23 Commits

Author SHA1 Message Date
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
Tom Tromey
09849bd97c Bug 1154809 - rewrite CubicBezierWidget to use CSSLexer; r=pbrosset 2015-05-19 08:56:08 -07:00
Ryan VanderMeulen
2aa50456a9 Backed out 7 changesets (bug 1154809) for xpcshell failures.
Backed out changeset 056f69eee8db (bug 1154809)
Backed out changeset 13f93d585e42 (bug 1154809)
Backed out changeset 1e967727087e (bug 1154809)
Backed out changeset 1f3809022d39 (bug 1154809)
Backed out changeset 7e730e9cb6b3 (bug 1154809)
Backed out changeset 139959618516 (bug 1154809)
Backed out changeset ea59187953f6 (bug 1154809)
2015-05-17 19:54:49 -04:00
Tom Tromey
675af72a94 Bug 1154809 - Rewrite CubicBezierWidget to use CSSLexer. r=pbrosset 2015-05-14 05:36:00 -04:00
Tom Tromey
720aa8da21 Bug 930680 - allow inserting ";" in values in style inspector; r=pbrosset 2015-05-13 11:37:18 -07:00
Patrick Brosset
0016a8a5bb Bug 1158822 - Link css url attributes to style-editor and js url attributes to debugger; r=jsantell
The node-attribute-parser now marks uris to css and js files as cssresource and jsresource.
Thanks to this, the inspector can open the corresponding files in the style-editor and
debugger rather than just opening a new tab with the source.
This makes use of 2 new toolbox methods: viewSourceInStyleEditor and viewSourceInDebugger.
2015-05-04 09:23:04 +02:00
Patrick Brosset
c2c0627641 Bug 921102 - 1 - Linkify URIs in the inspector; r=tromey, miker
This first part adds a parser for node attributes which, given some node
information and an attribute name, generates a small AST-like array of
objects that tells which parts of the attribute (if any) are links, and
what they link to.
Using this, the markup-view generates the right HTML structure to display
these parts as links.
This part 1 doesn't yet allow users to follow these links.
2015-04-30 10:43:04 +02:00
Panos Astithas
a936ed870b Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
John Giannakos
a4f38c652b Bug 1134568 - Implement a preset gallery for CubicBezierWidget incl. 8 preset functions for categories: ease-in, ease-out, and ease-in-out. r=pbrosset 2015-03-23 08:01:00 -04:00
Nick Fitzgerald
9e5725799b Bug 1033153 - Part 2: Have the VariablesView stringifier expose internal Promise state. r=vporof 2014-10-23 15:52:00 +02:00
Andrew Halberstadt
11b824f09b Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Wes Kocher
877afbd303 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo
40c62f33a5 Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Paul Rouget
7b3c0e4229 Backed out changeset a6d02cff43d3 (bug 1037235) for breaking WebIDE (bug 1067331) 2014-09-15 16:23:04 +02:00
Erik Vold
164a27af2b Bug 1037235 - toolkit/loader doesn't check module compatibility r=Mossop 2014-09-09 18:33:55 -07:00
Patrick Brosset
7facb78a91 Bug 711941 - part 1 - Cubic-bezier widget; r=harth r=gerv 2014-07-03 12:49:16 +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
Paul Rouget
b61a1f2a00 Bug 898918 - many files have wrong mode-lines in comments. r=robcee 2013-08-01 10:53:31 +02:00
Dave Camp
31ce67e5e0 Bug 855914 - Start using the jetpack loader in devtools. r=jwalker, f=ochameau 2013-04-11 13:59:08 -07:00
Dave Camp
a5c65f65e2 Backed out changeset 9117c7ad29d5 for MaxHeap regression. 2013-04-28 14:42:23 -07:00
Dave Camp
fee966b388 Bug 855914 - Start using the jetpack loader in devtools. r=jwalker, f=ochameau 2013-04-11 13:59:08 -07:00
Mike Hommey
72de8f6196 Bug 755724 - Move browser application in a subdirectory. r=jimm 2013-02-11 14:10:16 +01:00
Dave Camp
6cc99c112c Bug 785635 - Markup panel undo is broken. r=jwalker 2012-08-25 11:04:47 -07:00