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

Side by Side 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: Updated 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 unified diff | Download patch
OLDNEW
(Empty)
1 Tests the contextmenu attribute.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Test with valid contextmenu attribute
7 PASS document.getElementById('container1').contextMenu.id is "menu1"
8 PASS document.getElementById('container1').contextMenu.type is "popup"
9 PASS document.getElementById('container1').contextMenu.label is "menu 1"
10 Test with invalid contextmenu attribute
11 PASS document.getElementById('container2').contextMenu is null
12 Test setting contextmenu attribute
13 PASS container3.contextMenu.id is "menu3"
14 PASS container3.contextMenu.type is "popup"
15 PASS container3.contextMenu.label is "menu 3"
16 Test setting contextmenu attribute with menu element without id
17 PASS container4.contextMenu is null
18 Test setting contextmenu attribute with multiple menu element with same id
19 PASS container5.contextMenu is null
20 Test setting contextmenu attribute to null
21 PASS container6.contextMenu is null
22 Test setting contextmenu attribute to some text
23 PASS container7.contextMenu is null
24 Test setting contextmenu attribute to comment
25 PASS container8.contextMenu is null
26 Test setting contextmenu attribute to menu without type
27 PASS container9.contextMenu.id is "menu_without_type"
28 PASS container9.contextMenu.type is ""
29 PASS container9.contextMenu.label is "menu without type"
30 Test setting contextmenu attribute to menu element which is in shadow dom
31 PASS container10.contextMenu is null
32 PASS successfullyParsed is true
33
34 TEST COMPLETE
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698