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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/get-href-attribute-port.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/get-href-attribute-port.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/get-href-attribute-port.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/get-href-attribute-port.html
index e7059ca817feb7decd7d9210defe664acd114ce4..aabcf0cea0a80e3216bce95557ec060158a12943 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/get-href-attribute-port.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/get-href-attribute-port.html
@@ -4,6 +4,21 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/get-href-attribute-port.js"></script>
+<script>
+description('Test getting the port attribute of the URL in HTMLAnchorElement.');
+
+var a = document.createElement('a');
+
+debug("Default port is empty");
+shouldBe("a.port", "''");
+
+debug("Unspecified port should return empty string");
+a.href = "http://example.com/";
+shouldBe("a.port", "''");
+
+debug("Empty port should be empty");
+a.href = "http://example.com:/";
+shouldBe("a.port", "''");
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698