summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/test
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-02 20:42:28 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-02 20:42:28 +0100
commitf34094bae31e216228d5c2da2f2461d03df38302 (patch)
treebe78d0059fafcf0bfc451b9add9a0dbd175a4a85 /devtools/client/inspector/test
parent9627f18cebab38cdfe45592d83371ee7bbc62cfa (diff)
downloadUXP-f34094bae31e216228d5c2da2f2461d03df38302.tar
UXP-f34094bae31e216228d5c2da2f2461d03df38302.tar.gz
UXP-f34094bae31e216228d5c2da2f2461d03df38302.tar.lz
UXP-f34094bae31e216228d5c2da2f2461d03df38302.tar.xz
UXP-f34094bae31e216228d5c2da2f2461d03df38302.zip
Add a "copy full CSS path" option to the inspector's menu
Issue #3
Diffstat (limited to 'devtools/client/inspector/test')
-rw-r--r--devtools/client/inspector/test/browser_inspector_menu-01-sensitivity.js1
-rw-r--r--devtools/client/inspector/test/browser_inspector_menu-02-copy-items.js6
2 files changed, 7 insertions, 0 deletions
diff --git a/devtools/client/inspector/test/browser_inspector_menu-01-sensitivity.js b/devtools/client/inspector/test/browser_inspector_menu-01-sensitivity.js
index 59dbbbcc0..052e9da68 100644
--- a/devtools/client/inspector/test/browser_inspector_menu-01-sensitivity.js
+++ b/devtools/client/inspector/test/browser_inspector_menu-01-sensitivity.js
@@ -26,6 +26,7 @@ const ALL_MENU_ITEMS = [
"node-menu-copyinner",
"node-menu-copyouter",
"node-menu-copyuniqueselector",
+ "node-menu-copycsspath",
"node-menu-copyimagedatauri",
"node-menu-delete",
"node-menu-pseudo-hover",
diff --git a/devtools/client/inspector/test/browser_inspector_menu-02-copy-items.js b/devtools/client/inspector/test/browser_inspector_menu-02-copy-items.js
index 0c96e9bbe..57a5dbaa0 100644
--- a/devtools/client/inspector/test/browser_inspector_menu-02-copy-items.js
+++ b/devtools/client/inspector/test/browser_inspector_menu-02-copy-items.js
@@ -26,6 +26,12 @@ const COPY_ITEMS_TEST_DATA = [
text: "body > div:nth-child(1) > p:nth-child(2)",
},
{
+ desc: "copy css path",
+ id: "node-menu-copycsspath",
+ selector: "[data-id=\"copy\"]",
+ text: "html body div p",
+ },
+ {
desc: "copy image data uri",
id: "node-menu-copyimagedatauri",
selector: "#copyimage",