Commit Graph

227 Commits

Author SHA1 Message Date
Patrick Brosset
9eb3bf7352 Bug 1146591 - Avoid unsafe CPOW usage in helper_outerhtml_test_runner.js; r=bgrins
helper_outerhtml_test_runner.js was accessing DOM nodes directly in content (via
CPOWs) to check their outerHTML.
This change adds outerHTML, innerHTML and textContent to the common
devtools:test:getDomElementInfo frame-script message listener so that the test
can get it there instead.
2015-03-25 18:03:22 +01:00
Patrick Brosset
54d6ed5393 Bug 1146568 - Avoid unsafe CPOW usage in markupview tests, in assertAttributes helper; r=bgrins
The common assertAttributes helper test function used to access DOM nodes in the
content page directly (CPOW). It now becomes an async function that goes through
a frame-script to retrieve the list of attributes for a node, given its selector.
All tests were passing with this change but one: browser_markupview_tag_edit_06.js
This one was checking camelcase attribute names while the actual names on the
node were lowercased by the browser. The way we were asserting attributes before
didn't care about the case. Now it does.
2015-03-25 14:11:36 +01:00
Patrick Brosset
acf5e50eb2 Bug 1146568 - Avoid unsafe CPOW usage warnings in browser_markupview_tag_edit_08.js; r=bgrins
Making use of the devtools test frame-script to set the test node's attributes instead of
using a CPOW.
2015-03-25 11:17:05 +01:00
Patrick Brosset
a28a03ab6f Bug 1146566 - 2 - Avoid using CPOWs in test browser_markupview_tag_edit_03.js; r=bgrins
This change updates the browser_markupview_tag_edit_03.js test by making use of the
getDomElementInfo message listener to retrieve information about the tested nodes
without having to go through CPOWs.
2015-03-24 10:55:02 +01:00
Patrick Brosset
dd9c1738cc Bug 1146566 - 1 - Use devtools common frame-script in markupview tests and add helper; r=bgrins
This change loads the devtools common frame-script-utils.js frame-script in the browser message
manager when a new test tab is opened by a test, and it adds a new getDomElementInfo message
listener useful for many tests to retrieve data about a node without having to go through a
CPOW.
2015-03-25 10:53:24 +01:00
Brian Grinstead
976e48ff93 Bug 1139644 - Flash only relevant attributes in markup view when changed;r=pbrosset 2015-03-24 14:57:57 -07:00
Brian Grinstead
367fb1ae01 Bug 1139644 - Make markupview use sdk timers instead of individual timers for each window;r=pbrosset 2015-03-24 14:57:54 -07:00
Sami Jaktholm
9309c86b4d Bug 1035124 - Move browser_inspector_update-on-navigation.js from inspector to markup view tests. r=pbrosset 2015-03-13 23:23:01 +02:00
Brian Grinstead
2dedf81645 Bug 1139569 - Optimize update function for element editors in markup view;r=mratcliffe
Previously, any call to update() would destroy and recreate all attribute
editors.  This got really slow and caused a lot of unnecessary work, since
this ran any time any attribute changed.  Also, old attributes wouldn't
end up getting removed but would simply be hidden.  With this patch, we
update each attribute if it's changed, and any unused attributes are removed.
2015-03-09 10:02:21 -07:00
Mahdi Dibaiee
e163e6d83d Bug 984442 - Remove XUL attributes when their attributeName is deleted. r=pbrosset 2015-02-27 02:44:00 -05:00
Mahdi Dibaiee
c6b8e75613 Bug 858038 - Allow moving elements in the markupview by drag/drop; r=pbrosset 2014-12-26 02:53:00 -08:00
Vaibhav Choudhary
bdab3d6a89 Bug 1127417 - Replaced hardcoded string with internationalized version in markup-view.js;r=bgrins 2015-02-03 10:30:45 -08:00
J. Ryan Stinnett
e4ece6dd49 Bug 1118974 - Toolbox fails to shut down when highlighter actor is gone. r=pbrosset 2015-01-26 14:38:00 +01:00
Aaron Raimist
da5470f9f0 Bug 1042619 - Change 'width x height' letter x to a multiplication sign in devtools frontend. r=bgrins 2015-01-26 14:36:00 -05:00
Athena
57ebfa1877 Bug 911148 - Tabbing when editing an attribute stays in edit mode. r=pbrosset 2015-01-14 19:46:00 -05:00
Brian Grinstead
67c121f412 Bug 1119276 - Show all native anon content in browser toolbox with devtools.inspector.showAllAnonymousContent pref. r=pbrosset 2015-01-09 09:27: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
Sami Jaktholm
0a1155777b Bug 1056048 - Replace deprecated-sync-thenables with Promise.jsm in Markup View. r=pbrosset 2014-12-15 02:52:00 -05:00
Fayolle Florent
cd51b7a548 Bug 1108212 - In the DevTools Inspector tree, pressing delete should move to the next element. r=bgrins 2014-12-07 14:54:00 -05:00
Patrick Brosset
b53c7a05e7 Bug 1103993 - 3 - Only refresh the rule/computed views when active; r=bgrins r=ochameau 2014-12-10 09:09:19 +01:00
Tim P.
e6a996537e Bug 1090874 - Avoid always re-creating the node when editing a tagname in the markup-view; r=pbrosset 2014-12-04 16:34:47 -08:00
Daniel Holbert
50490b2d65 Bug 1093316 part 1: Backout changeset aece7f9f944c (i.e. backout bug 1032922 part 2), to reflect CSSWG removing "flex-basis: main-size" from the flexbox spec. 2014-11-25 11:28:15 -08:00
fayolle-florent@orange.fr
1b02acfe41 Bug 1095521 - Implement more paste commands for the inspector panel. r=pbrosset 2014-11-22 08:48:00 +01:00
Tomasz Kołodziejski
260a02f850 Bug 1094622 - Deleting node in inspector now selects previous sibling and not parent. r=bgrins
---
 browser/devtools/markupview/markup-view.js         | 15 +++++----
 .../test/browser_markupview_tag_edit_04.js         | 38 +++++++++++++++-------
 browser/devtools/markupview/test/head.js           |  2 +-
 toolkit/devtools/server/actors/inspector.js        | 14 +++++++-
 .../tests/mochitest/test_inspector-remove.html     | 23 +++++++++----
 5 files changed, 65 insertions(+), 27 deletions(-)
2014-11-21 12:48:04 -08:00
Patrick Brosset
39f6247a54 Bug 985597 - Tests for the new highlighter implementation using the AnonymousContent API; r=miker r=jwalker 2014-11-06 13:04:37 +01:00
Patrick Brosset
c95d4d952b Bug 917696 - Makes markup-view tag name edition go through the protocol; r=bgrins 2014-10-08 15:46:16 -07:00
Brian Grinstead
8cb3638a5d Bug 920141 - Add support for inspecting anonymous content. r=pbrosset 2014-09-29 09:29:00 +02: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
Shu-yu Guo
6cfc2eb110 Bug 1001090 - Part 4: Fix errors in chrome code. (r=zombie,gavin,fitzgen,dcamp,bgrins,fabrice,gwagner,margaret,mrbkap,mak,njn,vicamo) 2014-09-15 16:30:46 -07:00
Patrick Brosset
ba16702bc2 Bug 1063463 - Simplify how case is preserved when editing attributes in the inspector. r=bgrins 2014-09-08 08:30:00 -04:00
Brian Grinstead
4fcb65d1e9 Bug 1047148 - [markup view] Fix overlapping scrollbars when editing outer HTML in dark theme. r=past 2014-09-05 06:58:00 +02:00
Patrick Brosset
e3b6cc465a Bug 1008584 - Preserve case when editing attributes in the inspector; r=bgrins 2014-09-04 10:28:24 +02:00
Michael Ratcliffe
8498997a1e Bug 1060933 - Prevent jQuery Live event bubbles from throwing on invalid selector r=bgrins 2014-09-02 16:26:32 +01:00
Michael Ratcliffe
6d9d029bad Bug 1059767 - browser_markupview_events-overflow.js: Fix precision error in alignment r=me 2014-08-28 14:29:55 +01:00
Michael Ratcliffe
daa284a31c Bug 1044932 - Add JQuery support to visual events r=pbrosset 2014-08-28 12:46:25 +01:00
Sami Jaktholm
68a2a0bd91 Bug 1041654 - Make ElementTooltip scrollable and scroll the event handler content into view when expanded. r=miker 2014-08-27 02:35:00 -04:00
Alexey Novak
6891c27af8 Bug 1036297 - markupview updateNodeOuterHTML method jsdoc is incorrect and should return a promise, r=pbrosset 2014-08-21 12:59:53 -04:00
Patrick Brosset
972eb5dc33 Bug 1000716 - Intermittent race condition in markupview/test/browser_markupview_mutation_02.js. r=miker 2014-08-11 04:43:00 -04:00
Michael Ratcliffe
300f2020f2 Bug 1041284 - Fix GC issues and re-enable browser_markupview_events.js r=jwalker 2014-08-07 22:35:19 +01:00
Daniel Holbert
14a5e3d758 Bug 1032922 part 2: Rename flex-basis's "auto" keyword to "main-size" (but retain "flex:auto" as shorthand for "1 1 main-size"). r=heycam 2014-08-07 22:11:48 -07:00
Nathan Froyd
cedbc07ce0 Bug 1044162 - part 1 - make EXTRA_{PP_,}JS_MODULES communicate their installation path; r=mshal
This patch makes EXTRA_{PP_,}JS_MODULES similar in functionality to
TESTING_JS_MODULES: we indicate the path relative to
$(FINAL_TARGET)/modules with an appropriate hierarchy of paths.
2014-07-25 13:40:07 -04:00
Nathan Froyd
22d12819c5 Bug 1043957 - remove some libs:: rules from devtools's Makefile.ins; r=mshal 2014-07-25 09:38:15 -04:00
Michael Ratcliffe
6fb614b1fa Bug 736078 - Show which elements have listeners attached r=jwalker,bgrins 2014-07-20 12:03:59 +01:00
Michael Ratcliffe
7f526f4e74 Backed out changeset 89669f18bd2d (bug 736078) for dt test timeouts 2014-07-19 23:36:56 +01:00
Michael Ratcliffe
ad961acbd3 Bug 736078 - Show which elements have listeners attached r=jwalker,bgrins 2014-07-18 14:25:03 +01:00
Michael Ratcliffe
584afa1e41 Bug 994732 - Make "Disable Cache" in Devtools persist (only when the toolbox is open) r=jwalker, r=pbrosset 2014-07-17 10:39:56 +01:00
Patrick Brosset
3ea0049432 bug 1034601 - Enable devtools/markupview tests with e10s; r=bgrins 2014-07-16 22:17:30 +02:00
Michael Ratcliffe
3fdad7a259 Bug 1032721 - Re-enable browser_inspector_infobar.js when oranges are fixed r=pbrosset 2014-07-12 20:20:28 +01:00
Brian Grinstead
3a52fe6376 Bug 1031472 - Automatically reload all preferences in source editor. r=vporof,harth 2014-07-07 13:52:00 +02:00
Patrick Brosset
67ce18012c bug 971662 - part 0 - The BoxModelHighlighter has options for drawing regions and guides; r=miker 2014-06-25 16:40:34 +02:00