| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"/> |
| 4 <script src="../../../resources/js-test.js"></script> | 5 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 6 </head> |
| 6 <body> | 7 <body> |
| 7 <script> | 8 <script> |
| 8 description("Test URL protocol setter."); | 9 description("Test URL protocol setter."); |
| 9 | 10 |
| 10 var a = document.createElement("a"); | 11 var a = document.createElement("a"); |
| 11 a.setAttribute("href", "http://www.apple.com/"); | 12 a.setAttribute("href", "http://www.apple.com/"); |
| 12 document.body.appendChild(a); | 13 document.body.appendChild(a); |
| 13 | 14 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 28 shouldBe("a.href", "'https://www.apple.com/'"); | 29 shouldBe("a.href", "'https://www.apple.com/'"); |
| 29 | 30 |
| 30 a.protocol = "http:"; | 31 a.protocol = "http:"; |
| 31 shouldBe("a.href", "'http://www.apple.com/'"); | 32 shouldBe("a.href", "'http://www.apple.com/'"); |
| 32 | 33 |
| 33 a.protocol = "https://foobar"; | 34 a.protocol = "https://foobar"; |
| 34 shouldBe("a.href", "'https://www.apple.com/'"); | 35 shouldBe("a.href", "'https://www.apple.com/'"); |
| 35 </script> | 36 </script> |
| 36 </body> | 37 </body> |
| 37 </html> | 38 </html> |
| OLD | NEW |