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/webexposed/custom-elements.html

Issue 117313008: Update Custom Elements API to new names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for forgotten tests. 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <body> 3 <body>
4 <script> 4 <script>
5 description('Tests basic web-exposure of Custom Elements'); 5 description('Tests basic web-exposure of Custom Elements');
6 6
7 function evalAndLogValue(s) { 7 function evalAndLogValue(s) {
8 debug(evalAndLog(s)); 8 debug(evalAndLog(s));
9 debug(''); 9 debug('');
10 } 10 }
11 11
12 evalAndLogValue('Document.prototype.hasOwnProperty("register")'); 12 evalAndLogValue('Document.prototype.hasOwnProperty("registerElement")');
13 evalAndLogValue('typeof Document.prototype.register'); 13 evalAndLogValue('typeof Document.prototype.registerElement');
14 evalAndLogValue('document.createElement("x-a") instanceof HTMLUnknownElement'); 14 evalAndLogValue('document.createElement("x-a") instanceof HTMLUnknownElement');
15 15
16 var div = document.createElement('div'); 16 var div = document.createElement('div');
17 div.innerHTML = '<div is="x-b">'; 17 div.innerHTML = '<div is="x-b">';
18 document.body.appendChild(div); 18 document.body.appendChild(div);
19 evalAndLogValue('document.querySelector(":unresolved")'); 19 evalAndLogValue('document.querySelector(":unresolved")');
20 div.remove(); 20 div.remove();
21 21
22 var span = document.createElement('span', 'type-extension'); 22 var span = document.createElement('span', 'type-extension');
23 evalAndLogValue('span.getAttribute("is")'); 23 evalAndLogValue('span.getAttribute("is")');
24 24
25 successfullyParsed = true; 25 successfullyParsed = true;
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698