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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Document/script-tests/document-title-get.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("This test checks the implementation of getting the document.title a ttribute.");
2
3 debug('Test with no title set');
4 shouldBeEqualToString("document.title", "");
5
6 debug('Test with empty title');
7 document.title = "";
8 shouldBeEqualToString("document.title","");
9
10 debug('Test with only whitespace');
11 document.title = "\t\n\r \r \t\n\n";
12 shouldBeEqualToString("document.title","");
13
14 debug('Test with no whitespace');
15 document.title = "nowhitespacetitle";
16 shouldBeEqualToString("document.title","nowhitespacetitle");
17
18 debug('Test with whitespace');
19 document.title = "\u0009\u000aone\u000b\u000cspace\u000d\u0020";
20 shouldBeEqualToString("document.title","one\u000b space");
21
22 debug('Test with various whitespace lengths and fields');
23 document.title = " lots of \r whitespace and \n\n\n \t newlines \t";
24 shouldBeEqualToString("document.title", "lots of whitespace and newlines");
25
26 debug('Test with various length strings');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698