Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt

Issue 464903002: Add contextmenu attribute for HTMLElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added more tests Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/HTMLElement/contextmenu.html ('k') | Source/core/html/HTMLAttributeNames.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt b/LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d51642f9ee18d641207acd73d2fce789ba4072c9
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt
@@ -0,0 +1,54 @@
+Tests the contextmenu attribute.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test with valid contextmenu attribute
+PASS document.getElementById('container1').contextMenu.id is "menu1"
+PASS document.getElementById('container1').contextMenu.type is "popup"
+PASS document.getElementById('container1').contextMenu.label is "menu 1"
+Test with invalid contextmenu attribute
+PASS document.getElementById('container2').contextMenu is null
+Test setting contextmenu attribute to non-popup type menu element
+PASS container11.contextMenu.id is "menu11"
+PASS container11.contextMenu.type is "toolbar"
+PASS container11.contextMenu.label is "menu 11"
+Test setting contextmenu attribute to non-menu element
+PASS container12.contextMenu is null
+Test setting contextmenu attribute to an ID which multiple elements have
+PASS container13.contextMenu is null
+PASS container14.contextMenu.id is "menu14"
+PASS container14.contextMenu.type is "popup"
+PASS container14.contextMenu.label is "menu 14"
+Test setting contextmenu attribute
+PASS container3.contextMenu.id is "menu3"
+PASS container3.contextMenu.type is "popup"
+PASS container3.contextMenu.label is "menu 3"
+Test setting contextmenu attribute with menu element without id
+PASS container4.contextMenu is null
+PASS container4.hasAttribute('contextmenu') is true
+PASS container4.getAttribute('contextmenu') is ""
+Test setting contextmenu attribute with multiple menu element with same id
+PASS container5.contextMenu is null
+PASS container5.contextMenu is menu2
+Test setting contextmenu attribute to null
+PASS container6.contextMenu is null
+PASS container6.hasAttribute('contextmenu') is true
+PASS container6.getAttribute('contextmenu') is ""
+Test setting contextmenu attribute to some text
+PASS container7.contextMenu is null
+Test setting contextmenu attribute to comment
+PASS container8.contextMenu is null
+Test setting contextmenu attribute to menu without type
+PASS container9.contextMenu.id is "menu_without_type"
+PASS container9.contextMenu.type is ""
+PASS container9.contextMenu.label is "menu without type"
+Test setting contextmenu attribute to menu element which is in shadow dom
+PASS container10.contextMenu is null
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
+
+
+
« no previous file with comments | « LayoutTests/fast/dom/HTMLElement/contextmenu.html ('k') | Source/core/html/HTMLAttributeNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698