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

Unified Diff: chrome/test/data/webui/cr_elements/cr_dialog_test.js

Issue 2781363004: Revert of MD Settings: long dialog body should have overscroll line. (Closed)
Patch Set: Created 3 years, 9 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: chrome/test/data/webui/cr_elements/cr_dialog_test.js
diff --git a/chrome/test/data/webui/cr_elements/cr_dialog_test.js b/chrome/test/data/webui/cr_elements/cr_dialog_test.js
index 559de8d4791efff19cc5931cd9dae2e3cd5b316d..5f9c1b1fa3be8f5c9797990b7e55b255bc72d60d 100644
--- a/chrome/test/data/webui/cr_elements/cr_dialog_test.js
+++ b/chrome/test/data/webui/cr_elements/cr_dialog_test.js
@@ -44,32 +44,4 @@
expectNotEquals(dialog, document.activeElement);
expectEquals(button, document.activeElement);
});
-
- test('dialog body indicates over-scroll when appropriate', function() {
- document.body.innerHTML = `
- <dialog is="cr-dialog" show-scroll-borders>
- <div class="title">title</div>
- <div class="body">body</div>
- </dialog>`;
-
- var dialog = document.body.querySelector('dialog');
- var innerBody = document.body.querySelector('.body');
- var bodyContainer = dialog.$$('.body-container');
- assertTrue(!!bodyContainer);
-
- // Height is normally set via CSS, but mixin doesn't work with innerHTML.
- bodyContainer.style.height = '1px';
- innerBody.style.height = '100px';
- dialog.showModal();
-
- return PolymerTest.flushTasks()
- .then(function() {
- assertTrue(bodyContainer.classList.contains('bottom-scrollable'));
- bodyContainer.scrollTop = 100;
- return PolymerTest.flushTasks();
- })
- .then(function() {
- assertFalse(bodyContainer.classList.contains('bottom-scrollable'));
- });
- });
});

Powered by Google App Engine
This is Rietveld 408576698