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

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html

Issue 2235693002: convert LayoutTest/scrollbars/* js-test.js tests to testharness.js based tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed review comments Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html b/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html
index 941e9f53ea531872a701bfc64c0be96006bf24b3..ef22a70aba526067a6e6e8060078bfa2b8e7857b 100644
--- a/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html
+++ b/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html
@@ -1,17 +1,18 @@
<!DOCTYPE html>
-<script src="../resources/js-test.js"></script>
+<title>Make sure a parent block that fits content expands when a child adds an auto scrollbar.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
<div id="top" style="float:left; display:none;">
<div id="scroller" style="overflow: auto; height: 100px;">
<div style="width: 100px; height: 200px; border: 2px solid blue;"></div>
</div>
</div>
-
<script>
-description("Make sure a parent block that fits content expands when a child adds an auto scrollbar.");
-
-var topDiv = document.getElementById("top");
-var scroller = document.getElementById("scroller");
-topDiv.style.display = "block";
-topDiv.offsetTop;
-shouldBe("scroller.clientWidth", "scroller.scrollWidth");
+test(function() {
+ var topDiv = document.getElementById("top");
+ var scroller = document.getElementById("scroller");
+ topDiv.style.display = "block";
+ topDiv.offsetTop;
+ assert_equals(scroller.clientWidth, scroller.scrollWidth);
+});
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698