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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/script-tests/parse-src.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('Test that when using the JavaScript bindings to get the value of a URL attribute such \
2 as \'src\', leading whitespace is ignored');
3
4 function testURL(attribute, url)
5 {
6 img[attribute] = url;
7 return img[attribute];
8 }
9
10 var img = new Image();
11 var url = "about:blank";
12
13 shouldBe('testURL("src", url)', 'url');
14 shouldBe('testURL("src", "\\n" + url)', 'url');
15 shouldBe('testURL("src", " " + url)', 'url');
16
17 shouldBe('testURL("lowsrc", url)', 'url');
18 shouldBe('testURL("lowsrc", "\\n" + url)', 'url');
19 shouldBe('testURL("lowsrc", " " + url)', 'url');
20
21 shouldBe('testURL("longDesc", url)', 'url');
22 shouldBe('testURL("longDesc", "\\n" + url)', 'url');
23 shouldBe('testURL("longDesc", " " + url)', 'url');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698