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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/dimension-properties-unrendered.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(
2 'This test checks the scroll, client and offset dimension properties return "0" instead of undefined for an unrendered element. <div id="testDiv" style="display : none">x</div>'
3 );
4
5 var testDiv = document.getElementById("testDiv");
6 shouldBe("testDiv.offsetLeft", "0");
7 shouldBe("testDiv.offsetTop", "0");
8 shouldBe("testDiv.offsetWidth", "0");
9 shouldBe("testDiv.offsetHeight", "0");
10 shouldBe("testDiv.clientWidth", "0");
11 shouldBe("testDiv.clientHeight", "0");
12 shouldBe("testDiv.scrollLeft", "0");
13 shouldBe("testDiv.scrollTop", "0");
14 shouldBe("testDiv.scrollWidth", "0");
15 shouldBe("testDiv.scrollHeight", "0");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698