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

Side by Side Diff: LayoutTests/fast/dom/HTMLDocument/document-special-properties-expected.txt

Issue 75273004: Add 'exposed' objects and embeds to a document's named properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove extraneous empty line in expected output Created 7 years 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
1 This test covers the various ways of accessing DOM elements through the document object by name, id or index, directly as properties of the document object. Thi s lookup is supposed to include applet, embed, form, image, object and iframe by name, but only applet and object by id. It should give the element itself in th e case of a single match, or an HTMLCollection in the case of multiple matches; except that when exactly one item that is an iframe matches, it will give the wi ndow object for that iframe. 1 This test covers the various ways of accessing DOM elements through the document object by name, id or index, directly as properties of the document object. Thi s lookup is supposed to include applet, embed, form, image, object and iframe by name, but only applet and object by id. It should give the element itself in th e case of a single match, or an HTMLCollection in the case of multiple matches; except that when exactly one item that is an iframe matches, it will give the wi ndow object for that iframe.
2 2
3 Our results match IE. 3 Our results match IE.
4 4
5 Results: 5 Results:
6 6
7 Nonexistent image name: undefined 7 Nonexistent image name: undefined
8 Image by name (unique): single IMG(name) 8 Image by name (unique): single IMG(name)
9 Image by name (multiple): collection(2) IMG(name) IMG(name) 9 Image by name (multiple): collection(2) IMG(name) IMG(name)
10 Image by id (unique): undefined 10 Image by id (unique): undefined
(...skipping 17 matching lines...) Expand all
28 Applet by id (unique): single APPLET(id) 28 Applet by id (unique): single APPLET(id)
29 Applet by id (multiple): collection(2) APPLET(id) APPLET(id) 29 Applet by id (multiple): collection(2) APPLET(id) APPLET(id)
30 Applet by id/name mixed: collection(4) APPLET(id) APPLET(name) APPLET(name) APPL ET(id) 30 Applet by id/name mixed: collection(4) APPLET(id) APPLET(name) APPLET(name) APPL ET(id)
31 31
32 Nonexistent object name: undefined 32 Nonexistent object name: undefined
33 Object by name (unique): single OBJECT(name) 33 Object by name (unique): single OBJECT(name)
34 Object by name (multiple): collection(2) OBJECT(name) OBJECT(name) 34 Object by name (multiple): collection(2) OBJECT(name) OBJECT(name)
35 Object by id (unique): single OBJECT(id) 35 Object by id (unique): single OBJECT(id)
36 Object by id (multiple): collection(2) OBJECT(id) OBJECT(id) 36 Object by id (multiple): collection(2) OBJECT(id) OBJECT(id)
37 Object by id/name mixed: collection(4) OBJECT(id) OBJECT(name) OBJECT(name) OBJE CT(id) 37 Object by id/name mixed: collection(4) OBJECT(id) OBJECT(name) OBJECT(name) OBJE CT(id)
38 Object by name nested in object with the same name: single OBJECT(name)
39 Object by name nested in object with a different name: single OBJECT(name)
38 40
39 Nonexistent embed name: undefined 41 Nonexistent embed name: undefined
40 Embed by name (unique): single EMBED(name) 42 Embed by name (unique): single EMBED(name)
41 Embed by name (multiple): collection(2) EMBED(name) EMBED(name) 43 Embed by name (multiple): collection(2) EMBED(name) EMBED(name)
42 Embed by id (unique): undefined 44 Embed by id (unique): undefined
43 Embed by id (multiple): undefined 45 Embed by id (multiple): undefined
44 Embed by id/name mixed: collection(2) EMBED(name) EMBED(name) 46 Embed by id/name mixed: collection(2) EMBED(name) EMBED(name)
45 Embed by name nested in object with the same name: single EMBED(name) 47 Embed by name nested in object with the same name: single EMBED(name)
48 Embed by name nested in object with a different name: single EMBED(name)
49 Embed by name nested in param of an object with a different name: single EMBED(n ame)
46 50
47 Nonexistent iframe name: undefined 51 Nonexistent iframe name: undefined
48 Iframe by name (unique): single WINDOW 52 Iframe by name (unique): single WINDOW
49 Iframe by name (multiple): collection(2) IFRAME(name) IFRAME(name) 53 Iframe by name (multiple): collection(2) IFRAME(name) IFRAME(name)
50 Iframe by id (unique): undefined 54 Iframe by id (unique): undefined
51 Iframe by id (multiple): undefined 55 Iframe by id (multiple): undefined
52 Iframe by id/name mixed: collection(2) IFRAME(name) IFRAME(name) 56 Iframe by id/name mixed: collection(2) IFRAME(name) IFRAME(name)
53 57
54 Nonexistent span name: undefined 58 Nonexistent span name: undefined
55 Span by name (unique): undefined 59 Span by name (unique): undefined
56 Span by name (multiple): undefined 60 Span by name (multiple): undefined
57 Span by id (unique): undefined 61 Span by id (unique): undefined
58 Span by id (multiple): undefined 62 Span by id (multiple): undefined
59 Span by id/name mixed: undefined 63 Span by id/name mixed: undefined
60 64
61 Mixed by id: collection(2) APPLET(id) OBJECT(id) 65 Mixed by id: collection(2) APPLET(id) OBJECT(id)
62 Mixed by name: collection(6) IMG(name) FORM(name) APPLET(name) EMBED(name) OBJEC T(name) IFRAME(name) 66 Mixed by name: collection(6) IMG(name) FORM(name) APPLET(name) EMBED(name) OBJEC T(name) IFRAME(name)
63 Mixed by id (no iframe): collection(2) APPLET(id) OBJECT(id) 67 Mixed by id (no iframe): collection(2) APPLET(id) OBJECT(id)
64 Mixed by name (no iframe): collection(5) IMG(name) FORM(name) APPLET(name) EMBED (name) OBJECT(name) 68 Mixed by name (no iframe): collection(5) IMG(name) FORM(name) APPLET(name) EMBED (name) OBJECT(name)
65 69
66 Numeric 0: undefined 70 Numeric 0: undefined
67 Numeric 12: undefined 71 Numeric 12: undefined
68 Numeric 13: undefined 72 Numeric 13: undefined
69 73
70 Conflicting image: single IMG(name) 74 Conflicting image: single IMG(name)
71 Conflicting image (custom property): single IMG(name) 75 Conflicting image (custom property): single IMG(name)
72 Conflicting iframe: single WINDOW 76 Conflicting iframe: single WINDOW
73 77
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698