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

Side by Side Diff: LayoutTests/fast/dom/MicroData/itemid-must-see-resolved-url.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 tests the itemid attribute must see the resolved itemId URL.</p>
9 <div id="console"></div>
10 <script>
11 var currentUri = location.href;
12
13 shouldBeTrue("createElement('div',{itemid:'foo'}).itemId == currentUri.substring (0, currentUri.lastIndexOf('/')) + '/foo'");
14 debug('');
15 shouldBeTrue("createElement('div',{itemid:'foo bar'}).itemId == currentUri.subst ring(0, currentUri.lastIndexOf('/')) + '/foo%20bar'");
16 debug('');
17
18 var element = createElement('div',{});
19 element.itemId = 'bar'
20 shouldBeTrue("element.itemId == currentUri.substring(0, currentUri.lastIndexOf(' /')) + '/bar'");
21
22 </script>
23 <script src="../../js/resources/js-test-post.js"></script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698