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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/v0/instantiating/changing-is-attribute.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Changing IS attribute of the custom element must not affect this element' s custom element type, after element is instantiated</title> 4 <title>Changing IS attribute of the custom element must not affect this element' s custom element type, after element is instantiated</title>
5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> 5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
6 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru "> 6 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru ">
7 <meta name="assert" content="After a custom element is instantiated, changing th e value of the IS attribute must not affect this element's custom element type"> 7 <meta name="assert" content="After a custom element is instantiated, changing th e value of the IS attribute must not affect this element's custom element type">
8 <link rel="help" href="http://www.w3.org/TR/custom-elements/#instantiating-custo m-elements"> 8 <link rel="help" href="http://www.w3.org/TR/custom-elements/#instantiating-custo m-elements">
9 <script src="../../../../../resources/testharness.js"></script> 9 <script src="../../../../../resources/testharness.js"></script>
10 <script src="../../../../../resources/testharnessreport.js"></script> 10 <script src="../../../../../resources/testharnessreport.js"></script>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 doc.body.innerHTML = '<a id="x-i" is="x-i"></a>'; 149 doc.body.innerHTML = '<a id="x-i" is="x-i"></a>';
150 var customElement = doc.querySelector('#x-i'); 150 var customElement = doc.querySelector('#x-i');
151 customElement.removeAttribute('is'); 151 customElement.removeAttribute('is');
152 assert_equals(Object.getPrototypeOf(customElement), GeneratedConstructor.pro totype, 152 assert_equals(Object.getPrototypeOf(customElement), GeneratedConstructor.pro totype,
153 'Custom element type should be x-i'); 153 'Custom element type should be x-i');
154 }, 'Test custom element type, after removing IS attribute value. ' + 154 }, 'Test custom element type, after removing IS attribute value. ' +
155 'Element is HTML5 element with IS attribute referring to custom element type '); 155 'Element is HTML5 element with IS attribute referring to custom element type ');
156 </script> 156 </script>
157 </body> 157 </body>
158 </html> 158 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698