1 description('Test that when using the JavaScript bindings to get the value of a URL attribute such \
2 as \'src\', leading whitespace is ignored');
4 function testURL(attribute, url)
10 var img = new Image();
11 var url = "about:blank";
13 shouldBe('testURL("src", url)', 'url');
14 shouldBe('testURL("src", "\\n" + url)', 'url');
15 shouldBe('testURL("src", " " + url)', 'url');
17 shouldBe('testURL("lowsrc", url)', 'url');
18 shouldBe('testURL("lowsrc", "\\n" + url)', 'url');
19 shouldBe('testURL("lowsrc", " " + url)', 'url');
21 shouldBe('testURL("longDesc", url)', 'url');
22 shouldBe('testURL("longDesc", "\\n" + url)', 'url');
23 shouldBe('testURL("longDesc", " " + url)', 'url');