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

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.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
Index: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html
index 2239ebedc5ebc679229d3beac4a8dbe2037a23f3..accb3395d86debc224d862ea6bf842bba7c18827 100644
--- a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html
+++ b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
-<script src="../resources/js-test.js"></script>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
<style>
::-webkit-scrollbar {
width: 150px;
@@ -17,8 +18,10 @@ iframe {
</style>
"></iframe>
<script>
-onload = function() {
- var body = document.querySelector("iframe").contentDocument.body;
- shouldBe("285", String(body.clientWidth));
-};
-</script>
+async_test(function(t) {
+ onload = t.step_func_done(function() {
+ var body = document.querySelector("iframe").contentDocument.body;
+ assert_equals(285, body.clientWidth);
+ });
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698