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

Side by Side Diff: LayoutTests/fast/dom/MicroData/nameditem-must-be-case-sensitive.html

Issue 14028014: Remove MicroData implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also delete all the tests Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 <script src="resources/microdata-common.js"></script>
6 </head>
7 <body>
8 <p>This test ensures that namedItem must be case sensitive.</p>
9 <div id="console"></div>
10 <script>
11 var element = createElement('div', {itemscope: 'itemscope'}, '<div itemprop="foo "></div><div itemprop="bar"><div itemprop="FOO"></div><div itemprop="foo FOo foo "></div></div><div itemprop="baz qux"></div>');
12
13 shouldBe("element.properties.namedItem('foo').length", '2');
14 shouldBe("element.properties.namedItem('FOO').length", '1');
15 shouldBe("element.properties.namedItem('FOo').length", '1');
16
17 shouldBe("element.properties.namedItem('foo')[0]", 'element.firstChild');
18 shouldBe("element.properties.namedItem('foo')[1]", 'element.childNodes[1].lastCh ild');
19 shouldBe("element.properties.namedItem('FOO')[0]", 'element.childNodes[1].firstC hild');
20 shouldBe("element.properties.namedItem('FOo')[0]", 'element.childNodes[1].lastCh ild');
21 debug('');
22
23 shouldBe("element.properties['foo'].length", '2');
24 shouldBe("element.properties['FOO'].length", '1');
25 shouldBe("element.properties['FOo'].length", '1');
26
27 shouldBe("element.properties['foo'][0]", 'element.firstChild');
28 shouldBe("element.properties['foo'][1]", 'element.childNodes[1].lastChild');
29 shouldBe("element.properties['FOO'][0]", 'element.childNodes[1].firstChild');
30 shouldBe("element.properties['FOo'][0]", 'element.childNodes[1].lastChild');
31
32 </script>
33 <script src="../../js/resources/js-test-post.js"></script>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698