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

Side by Side Diff: LayoutTests/fast/dom/MicroData/itemvalue-reflects-href-attr.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 itemValue must reflect the href attribute if the eleme nt is an a, area, or link element.</p>
9 <div id="console"></div>
10 <script>
11 var testElement;
12 function runTest(tagName)
13 {
14 debug("Testing '" + tagName + "' element's behavior.");
15 testElement = createElement(tagName, {itemprop: 'foo', href: 'http://example .org/'});
16 shouldBe("testElement.itemValue", "'http://example.org/'");
17 testElement.href = 'http://example.net/';
18 shouldBe("testElement.itemValue", "'http://example.net/'");
19 testElement.itemValue = 'http://example.com/';
20 shouldBe("testElement.href", "'http://example.com/'");
21 debug('');
22 }
23
24 runTest('a');
25 runTest('area');
26 runTest('link');
27
28 </script>
29 <script src="../../js/resources/js-test-post.js"></script>
30 </body>
31 </html
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698