Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / title-text-property.html
blob4b6550655e501b7d14c9f10efbc1d0cc961750ca
1 <html>
2 <head>
3 <title>Original Title</title>
4 <script>
5 function debugOutput(str) {
6 text = document.createTextNode(str);
7 console = document.getElementById('console');
8 div = document.createElement('div');
9 div.appendChild(text);
10 console.appendChild(div);
13 function runTests() {
14 if (window.testRunner) {
15 testRunner.dumpAsText();
16 testRunner.dumpTitleChanges();
19 titleElem = document.getElementsByTagName('title').item(0);
20 debugOutput('Original title is: \'' + titleElem.text + '\'');
22 newTitle = 'This is the new title';
23 debugOutput('Setting new title to: \'' + newTitle + '\'');
24 titleElem.text = newTitle;
26 debugOutput('New title is: \'' + titleElem.text + '\'');
29 function test() {
30 t = document.getElementsByTagName('title').item(0);
31 alert(t.text);
32 t.text = 'new title';
33 alert(t.text);
35 </script>
36 </head>
37 <body onload='runTests();'>
38 <div id='console'>
39 </div>
40 </body>
41 </html>