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

Side by Side Diff: LayoutTests/fast/dom/Document/xml-document-focus.xml

Issue 144063004: Add support for DOM4's XMLDocument interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove FIXME about XMLDocument.load() Created 6 years, 11 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 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or g/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head> 4 <head>
5 <script src="../../../resources/js-test.js"></script> 5 <script src="../../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <input id="testElement"></input> 8 <input id="testElement"></input>
9 <script> 9 <script>
10 description("Make sure the focus management API is available to XML documents.") ; 10 description("Make sure the focus management API is available to XML documents.") ;
11 11
12 shouldNotBe('document.__proto__', 'HTMLDocument.prototype'); 12 shouldNotBe('document.__proto__', 'HTMLDocument.prototype');
13 shouldBe('document.__proto__', 'Document.prototype'); 13 shouldBe('document.__proto__', 'XMLDocument.prototype');
14 shouldBeTrue('document.hasFocus()'); 14 shouldBeTrue('document.hasFocus()');
15 shouldBe('document.activeElement', 'document.body'); 15 shouldBe('document.activeElement', 'document.body');
16 var testElement = document.getElementById('testElement'); 16 var testElement = document.getElementById('testElement');
17 testElement.focus(); 17 testElement.focus();
18 shouldBe('document.activeElement', 'testElement'); 18 shouldBe('document.activeElement', 'testElement');
19 shouldBeTrue('document.hasFocus()'); 19 shouldBeTrue('document.hasFocus()');
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Document/clone-node-expected.txt ('k') | LayoutTests/fast/dom/Document/xml-document-focus-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698