Commit Graph

238 Commits

Author SHA1 Message Date
nchevobbe
b4b6709311 Bug 1358937 - Make getCleanedPacket function handle longString exception messages; r=bgrins
Since the longString object has an actor property which can change from test to test,
replace it with its value in the existing packet.

MozReview-Commit-ID: CzxX203TdEU
2017-04-27 09:38:15 +02:00
nchevobbe
a136800c55 Bug 1358937 - Add tests for exceptions with longString messages; r=bgrins
Edit the function that generates pageError stubs so it does use
the key we provide it.
Change the key in existing pageError stubs so we don't have to
modify the tests.

MozReview-Commit-ID: FBfpflNgXpv
2017-04-25 10:40:56 +02:00
nchevobbe
e172e6dea1 Bug 1358937 - Fix console crash due to longString error messages; r=bgrins
MozReview-Commit-ID: 95m5bvQDcdB
2017-04-25 14:05:28 +02:00
nchevobbe
3f66200b5b Bug 1359716 - Make test_render_perf.html more accurate; r=Honza
Set the logLimit to the number of messages we add.
Bump up the number of messages to add to 4000.
Iterate 25 times instead of 10.
Compute the median to limit the impact of low/high spikes.

MozReview-Commit-ID: 1WoiYk5pF9v
2017-04-26 10:40:04 +02:00
Brian Grinstead
83baffc882 Bug 1359597 - Set up new console with devtools-launchpad;r=Honza
MozReview-Commit-ID: FxuwGLYef5v
2017-04-26 08:10:04 -07:00
nchevobbe
e6737c0f87 Bug 1358520 - Fix render perf test; r=bgrins
MozReview-Commit-ID: EPAxQ3hAKit
2017-04-20 09:48:00 +02:00
Sebastian Hengst
6642b397b2 Backed out changeset 2462fcdd73bc (bug 1358520) for eslint failure. r=backout 2017-04-24 22:12:11 +02:00
nchevobbe
7e9656a1fa Bug 1358520 - Fix render perf test; r=bgrins
MozReview-Commit-ID: EPAxQ3hAKit
2017-04-20 09:48:00 +02:00
nchevobbe
07fed53b5b Bug 1307940 - Add toolbox-dependent method to serviceContainer only if toolbox is available. r=bgrins
MozReview-Commit-ID: CjRXKemaJ4f
2017-04-24 10:09:27 +02:00
Nicolas Chevobbe
f47c18b50f Bug 1307940 - Add mochitest to test open-in-inspector icon in the console. r=bgrins,jdescottes
MozReview-Commit-ID: 7tBt2KzOGnp
2017-03-13 13:51:31 +01:00
nchevobbe
be2efe1402 Bug 1307940 - Add icon next to ElementNodeRep to select node in inspector; r=bgrins,jdescottes
MozReview-Commit-ID: InGASswqAAA
2017-04-21 09:23:11 +02:00
Tom Tromey
fc99179caa Bug 1353038 - do not quote whitespace in console evaluation results; r=nchevobbe
Don't escape whitespace in console evaluation results.  This preserves
the behavior of the old console, and in particular makes pprint() more
useful again.

MozReview-Commit-ID: CrWWXjtSBIw
2017-04-20 11:58:35 -06:00
nchevobbe
d8840a78b0 Bug 1358103 - Remove createFactory call on Reps; r=jdescottes
The new Reps bundle from Bug 1357341 is all about functions now,
so we should remove all unnecessary `createFactory` calls
we used to do when creating Reps.

MozReview-Commit-ID: 4KvCThhwphv
2017-04-21 08:50:24 +02:00
Wes Kocher
f8d2845e66 Merge inbound to m-c a=merge
MozReview-Commit-ID: DQDuEiYLWCO
2017-04-20 15:30:43 -07:00
Julian Descottes
99bcf6d7c1 Bug 1354672 - update debugger frontend 04/18/17;r=jdescottes
MozReview-Commit-ID: HI2NymoCLYR
2017-04-20 14:49:44 +02:00
Andrea Marchesini
94b9d42abb Bug 1357473 - Update Console to the latest spec - part 3 - Console.groupEnd(), r=bgrins, r=nchevobbe 2017-04-18 10:04:00 +02:00
Carsten "Tomcat" Book
146c23b5e9 Backed out changeset 26825d7a225d (bug 1354672) on developers request 2017-04-20 09:28:11 +02:00
Julian Descottes
569f1d9f93 Bug 1354672 - update debugger frontend 04/18/17;r=jdescottes
MozReview-Commit-ID: HI2NymoCLYR
2017-04-18 10:25:19 +02:00
Carsten "Tomcat" Book
465ba009d4 Merge mozilla-central to autoland 2017-04-20 13:06:52 +02:00
nchevobbe
4e79e43782 Bug 1357341 - Fix VariableView with new Reps bundle; r=jdescottes
MozReview-Commit-ID: GSOyL6Nx23Z
2017-04-20 12:12:14 +02:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
nchevobbe
72f4acabef Bug 1355869 - Delay scrollToBottom on next tick in console init. r=bgrins
The call to scrollToBottom could take a good amount of time if there were
already logged messages in the console. This might be related to the fact that
componentDidMount is called although there is some layout or paint work.
Delaying the first call to scrollToBottom in the component greatly reduced the
time spent in scrollToBottom.

MozReview-Commit-ID: F3cRYV4OFhm
2017-04-12 17:21:27 +02:00
nchevobbe
10db3c5e03 Bug 1088900 - Add mocha tests for custom styles on console.group messages. r=bgrins
Tests custom styles on both console.group and console.groupCollapsed messages.
Update the stubs to match what the server now returns.

MozReview-Commit-ID: KHhU8Ki0YUz
2017-04-11 11:43:46 +02:00
nchevobbe
06113d95bc Bug 1088900 - Use ConsoleMessage's "parameters" property for console.group. r=bgrins
Because we now enable custom styling on console.group, we can't rely solely on groupName
to output the group. We can have multiple pieces on which to apply different styles, like
for console.log, so we use the same properties to have the same behavior for custom styles.

MozReview-Commit-ID: 7IKl919Dg7a
2017-04-11 11:41:36 +02:00
nchevobbe
e6b2727561 Bug 1355454 - Move "createFactories" function from Reps to a shared util. r=jdescottes
MozReview-Commit-ID: LmGBg2HSzOC
2017-04-12 08:33:37 +02:00
J. Ryan Stinnett
b1e4f726f1 Bug 1349360 - Mark experimental SourceMapService as deprecated. r=ochameau
The existing `SourceMapService` uses server-side source maps, which we are
replacing with client-side source maps.  It will be removed later in bug
1349354, but for now mark it as deprecated so we don't use it with any other
tools.

MozReview-Commit-ID: ABmWGC5asZd
2017-03-21 16:44:09 -05:00
Tom Tromey
41d00b8e41 Bug 1342526 - quote string expression results in console; r=nchevobbe
MozReview-Commit-ID: 1HFbotCZoZ6
2017-03-14 04:28:43 +01:00
Kris Maglione
0c7177bfed Bug 1344616: Follow-up: Fix devtools test failure. r=me
MozReview-Commit-ID: FcTSh9Jih3S
2017-03-06 19:01:06 -08:00
Kris Maglione
a1c3a9c808 Bug 1314361 - Part 3: Stop using origin attributes for add-on ID in console filtering. r=baku 2017-02-26 13:13:45 -08:00
Masatoshi Kimura
4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00
Tooru Fujisawa
7e6a80c83c Bug 104442 - Part 5: Add another testcase for devtools and note. r=nchevobbe 2017-02-25 12:52:34 +09:00
Tooru Fujisawa
33b024f2b0 Bug 104442 - Part 4: Update stub. r=nchevobbe 2017-02-25 12:52:33 +09:00
Tooru Fujisawa
08fbf1a3fe Bug 104442 - Part 3: Add test input for mocha test. r=nchevobbe 2017-02-25 12:52:33 +09:00
Tooru Fujisawa
6a19106a9c Bug 1342293 - Call expectUncaughtException for each pageError. r=nchevobbe 2017-02-25 12:52:33 +09:00
Nicolas Chevobbe
bef1d2fc0a Bug 1342215 - Fix pageError stub generation. r=jdescottes
We set a listener for "pageError" but we don't remove it.
There is a `once: true` property passed as an option for addListener,
but this isn't a standard addEventListener call it does not do anything.
Reverting to remove the listener fix the issue.

MozReview-Commit-ID: CrpS1QY5jNo
2017-02-23 22:02:52 +01:00
Tim Nguyen
3c6aca80ee Bug 1341037 - Fix broken Browser Console. r=nchevobbe
MozReview-Commit-ID: 5gIYVBNCILb
2017-02-23 16:03:14 +01:00
Tim Nguyen
82780ccb28 Bug 1341037 - Fix ESLint and devtools bustage. r=bustage
MozReview-Commit-ID: 3Q7iGxOEMP2
2017-02-23 14:22:48 +01:00
Tim Nguyen
2016411dd2 Bug 1341037 - Use Toolbox react instance in webconsole. r=ochameau
MozReview-Commit-ID: 4ARtkoqWUQP
2017-02-21 20:47:25 +00:00
Julian Descottes
ffa358a329 Bug 1340806 - stop using load-reps wrapper;r=nchevobbe
MozReview-Commit-ID: GL9Sm6W2JCM
2017-02-18 22:43:22 +01:00
Nicolas Chevobbe
0db17aa09f Bug 1313688 - Fail a test if stubs don't match stubs created by stub generators; r=jdescottes
MozReview-Commit-ID: 2HTA4SwyXDi
2017-02-17 08:08:06 +01:00
Nicolas Chevobbe
c05fd473f6 Bug 1313688 - Fix mocha tests. r=jdescottes
MozReview-Commit-ID: J1wGhUEFeQu
2017-02-15 22:41:45 +01:00
Nicolas Chevobbe
b71c06d864 Bug 1313688 - Stubs generation; r=jdescottes
MozReview-Commit-ID: 2HTA4SwyXDi
2017-02-18 13:27:29 +01:00
Nicolas Chevobbe
8bde28ca10 Bug 1313688 - Move new console stub generation to head.js; r=jdescottes
Move the stub generation to functions in head.js so we can use them in other places.
Fix the getCleanedPacket function for properties that can differ from one OS to another.
Enhance test speed by removing the use of temp files to get the packets, and also by
evaluating the command in a single tab, instead of opening a tab for each command.

MozReview-Commit-ID: 2HTA4SwyXDi
2017-02-17 21:35:40 +01:00
Tooru Fujisawa
0f794fc52b Bug 1283712 - Part 11.4: Fix assignment. r=me 2017-02-17 05:28:41 +09:00
Tooru Fujisawa
b7ee7e3810 Bug 1283712 - Part 11.3: Add mocha test. r=nchevobbe 2017-02-15 23:53:07 +09:00
Tooru Fujisawa
67b43f1bc9 Bug 1283712 - Part 11.2: Update stub. r=nchevobbe 2017-02-15 23:53:07 +09:00
Tooru Fujisawa
fb86e22154 Bug 1283712 - Part 11.1: Show notes in devtools console. r=nchevobbe 2017-02-15 23:53:07 +09:00
Tim Nguyen
265bbb90e8 Bug 1255116 - Simplify toolbar button styles. r=jryans
MozReview-Commit-ID: 9J11mNk2c5W
2017-02-14 19:34:54 +00:00
Nicolas Chevobbe
41169b8a94 Bug 1336937 - Add aria-pressed to the filter buttons in new console. r=jdescottes
MozReview-Commit-ID: FEvuSd3RQ67
2017-02-06 13:41:08 +01:00
Julian Descottes
64bc1ded68 Bug 1331007 - fix console debug filter persistence;r=nchevobbe
MozReview-Commit-ID: AvenpwUn9YU
2017-02-02 20:32:39 +01:00