1 description("This test checks the implementation of getting the document.title attribute.");
3 debug('Test with no title set');
4 shouldBeEqualToString("document.title", "");
6 debug('Test with empty title');
8 shouldBeEqualToString("document.title","");
10 debug('Test with only whitespace');
11 document
.title
= "\t\n\r \r \t\n\n";
12 shouldBeEqualToString("document.title","");
14 debug('Test with no whitespace');
15 document
.title
= "nowhitespacetitle";
16 shouldBeEqualToString("document.title","nowhitespacetitle");
18 debug('Test with whitespace');
19 document
.title
= "\u0009\u000aone\u000b\u000cspace\u000d\u0020";
20 shouldBeEqualToString("document.title","one space");
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");
26 debug('Test with various length strings');