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

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: 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..06e2a753c506f8d0ca9f916c832afd4b46db82f5 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() {
+test(function() {
+ onload = function() {
Srirama 2016/08/10 11:04:39 This isn't right as this is a sync test, this won'
MuVen 2016/08/10 11:40:59 Done.
var body = document.querySelector("iframe").contentDocument.body;
- shouldBe("285", String(body.clientWidth));
-};
-</script>
+ assert_equals(285, body.clientWidth);
+ };
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698