Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 description('Test getting the port attribute of the URL in HTMLAnchorElement.'); | |
| 2 | |
| 3 var a = document.createElement('a'); | |
| 4 | |
| 5 debug("Default port is empty"); | |
| 6 shouldBe("a.port", "''"); | |
| 7 | |
| 8 debug("Unspecified port should return empty string"); | |
| 9 a.href = "http://example.com/"; | |
| 10 shouldBe("a.port", "''"); | |
| 11 | |
| 12 debug("Empty port should be empty"); | |
| 13 a.href = "http://example.com:/"; | |
| 14 shouldBe("a.port", "''"); | |
| OLD | NEW |