Commit Graph

52 Commits

Author SHA1 Message Date
Brian Grinstead
899b355eb7 Bug 1181834 - Migrate browser/devtools/fontinspector tests to shared-head.js;r=jryans 2015-07-09 16:18:11 -07:00
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Gabriel Luong
bfbd0192d5 Bug 987365 - Add pseudo-class lock options to rule view r=bgrins 2015-04-23 21:35:00 -07:00
Sami Jaktholm
b910155bdf Bug 1119149 - Update Font Inspector previews when the theme changes. r=pbrosset 2015-05-31 13:12:47 +03: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
Sami Jaktholm
2f8c652774 Bug 1158634 - Tests for editable font previews. r=pbrosset
This adds two tests:
1. browser_fontinspector_edit-previews.js checks that
   * if the text is changed, the preview images should change
   * if the text field is empty, the initial previews should be shown

   It doesn't check the exact preview images because they are drawn on a canvas
   causing them to vary between systems, platforms and software versions.

2. browser_fontinspector_edit-previews-show-all.js checks that the 'Show all'
   mode is remembered if the preview text is edited after the button is clicked.
2015-05-21 19:21:43 +03:00
Sami Jaktholm
ba28755b0a Bug 1158634 - Restore support for editing previews in Font Inspector. r=pbrosset
An input box similar to those in rule and computed views (without the search
symbol) is added to the font-inspector panel which can be used to control the
preview text. The updates are throttled to avoid unnecessary updates while the
text is being edited.

Since the PageStyleActor has allowed clients to define the preview text for a
while now, this feature is also enabled for older targets too.
2015-05-21 19:18:18 +03:00
Sami Jaktholm
f5be7739c8 Bug 1158634 - Clean up font-inspector.js. r=pbrosset 2015-05-16 09:57:56 +03:00
Sami Jaktholm
b3f47703b6 Bug 1158634 - Modify font-inspector tests for better code sharing. r=pbrosset
This patch adds a new method openFontInspectorForURL to the head.js file which
a) opens a new tab with the given URL
b) opens inspector for the tab
c) selects font-inspector and waits for it to initialize

Previously the only font-inspector test was doing all that inside the test but
as new tests require the similar functionality it's better to reside in
head.js.
2015-05-14 14:21:53 +03:00
Panos Astithas
a936ed870b Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Jan Odvarko
633d4c5a1f Bug 1118179 - Assume light theme colors for the font inspector as the default. r=bgrins 2015-01-07 17:38:33 +01:00
ffc0f8a147 Bug 1097150 - Added getAllUsedFontFaces to styles.js retrieve fonts from all windows;r=pbrosset 2015-01-05 09:38:57 -08:00
Heather Arthur
7e79f97cb4 Bug 1105572 - Font inspector should display fonts using their font weight and style. r=bgrins 2014-12-17 16:05:00 +01:00
Patrick Brosset
bb9603f20a Bug 1075319 - Use native add_task in devtools mochitests rather than custom asyncTest. r=miker 2014-12-15 03:37:00 -05:00
Heather Arthur
162ffa98dd Bug 1105808 - Use ttf fonts in browser_fontinspector.js test. r=bgrins 2014-12-04 12:51:00 +01:00
Heather Arthur
daf196bce6 Bug 886041 - Make the font inspector remotable; r=bgrins 2014-11-25 07:36:44 -08:00
Simon Lindholm
06f0d8e33d Bug 1075665 - Fix typo in font inspector. r=paul 2014-10-01 17:39:09 +01:00
Brian Grinstead
8cb3638a5d Bug 920141 - Add support for inspecting anonymous content. r=pbrosset 2014-09-29 09:29: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
Ryan VanderMeulen
66b14f4f7d Bug 996003 - Various devtools test manifest cleanups. r=miker 2014-04-15 08:03:53 -04:00
Michael Ratcliffe
4cc10271fe Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Mark Hammond
d5b24aae08 Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
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
Brian Grinstead
7f5e8980fb Bug 957117 - DevTools Themes: Use light theme for top tabbar and toolbars OVERRIDE HOOK;r=vporof 2014-01-30 14:42:15 -06:00
Kay Plößer
809d59f9a2 Bug 960737 - Remove inline script / style in browser/devtools/fontinspector/font-inspector.xhtml;r=bgrins 2014-01-24 10:49:37 -06:00
Patrick Brosset
391c4ad9d2 Bug 962085 - Font-inspector "show all fonts" button selects the <body> node remotely; r=paul 2014-01-23 16:54:04 +01:00
Patrick Brosset
6c50b3a034 Bug 916443 - part 1 - Toolbox level remote highlighter [Australis], r=paul 2014-01-09 12:36:01 +01:00
Gijs Kruitbosch
594b78520b Bug 938162 - if it looks, swims and quacks like a duck, but doesn't end in .js, let's not call it a test, r=gps 2013-11-13 17:30:00 +01:00
Ms2ger
37114e13e1 Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02:00
Gregory Szorc
d3405d579f Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:06 +02:00
Ed Morley
697a1cc250 Backed out changeset 8b02873ee07e (bug 920223) 2013-09-30 12:50:05 +01:00
Gregory Szorc
3bbbcf0fd0 Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:06 +02:00
Mike Hommey
b207d5baf7 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Paul Rouget
b61a1f2a00 Bug 898918 - many files have wrong mode-lines in comments. r=robcee 2013-08-01 10:53:31 +02:00
Paul Rouget
43234c9f13 Bug 889827 - Disable spellcheck in font inspector. r=vporof 2013-07-08 13:14:17 +03:00
Dave Camp
fed4c4fe12 Bug 877320 - Expose a node front in the Selection object in addition to a raw node. r=paul 2013-06-07 14:32:32 -07:00
Ms2ger
521aeddc8b Bug 882848 - Use MOCHITEST_BROWSER_FILES more; r=gps 2013-06-23 09:16:19 +02:00
Michael Ratcliffe
19a380a608 Bug 875717 - TypeError: window.fontInspector is undefined in chrome://browser/content/devtools/fontinspector/font-inspector.js:228 r=harthur 2013-05-24 12:06:00 +01:00
Joe Walker
0ece0909bb Bug 873963 - Set fontFamily property directly; r=dcamp, mgoodwin 2013-05-25 09:51:31 +01:00
Dave Camp
e923fe56c4 Bug 867485: Move the devtools loader into toolkit/ r=jwalker 2013-05-01 09:27:24 -07: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
Kyle Machulis
331f36baa9 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
ec9b53db93 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
0419a0b889 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-03-29 13:56:18 -07:00
Paul Rouget
18bc6f27a8 Bug 836233 - [Inspector] Implement Shorlander's visual design. r=mratcliffe 2013-03-27 23:20:38 +01:00
Gregory Szorc
9b83c3d1f4 Bug 844635 - Part 3: Remove empty Makefile.in files; r=glandium 2013-03-17 18:01:25 -07:00