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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Document/document-title-get.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/Document/document-title-get.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Document/document-title-get.html b/third_party/WebKit/LayoutTests/fast/dom/Document/document-title-get.html
index 4eabdd6ed704a541886943ecbbb83534b4973cf3..9e5cb6890c9fff1431ade463cd980dacc106ecd5 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Document/document-title-get.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Document/document-title-get.html
@@ -4,6 +4,33 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/document-title-get.js"></script>
+<script>
+description("This test checks the implementation of getting the document.title attribute.");
+
+debug('Test with no title set');
+shouldBeEqualToString("document.title", "");
+
+debug('Test with empty title');
+document.title = "";
+shouldBeEqualToString("document.title","");
+
+debug('Test with only whitespace');
+document.title = "\t\n\r \r \t\n\n";
+shouldBeEqualToString("document.title","");
+
+debug('Test with no whitespace');
+document.title = "nowhitespacetitle";
+shouldBeEqualToString("document.title","nowhitespacetitle");
+
+debug('Test with whitespace');
+document.title = "\u0009\u000aone\u000b\u000cspace\u000d\u0020";
+shouldBeEqualToString("document.title","one\u000b space");
+
+debug('Test with various whitespace lengths and fields');
+document.title = " lots of \r whitespace and \n\n\n \t newlines \t";
+shouldBeEqualToString("document.title", "lots of whitespace and newlines");
+
+debug('Test with various length strings');
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698