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

Unified Diff: tests/html/element_test.dart

Issue 12226129: Updating Element.scrollIntoView to be platform independent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: tests/html/element_test.dart
diff --git a/tests/html/element_test.dart b/tests/html/element_test.dart
index 981db6d26224e4c4a49c65aa1abcf40270f5ced1..3acf33c01c2a3ff97026f18ffe1687dabaeb802d 100644
--- a/tests/html/element_test.dart
+++ b/tests/html/element_test.dart
@@ -618,6 +618,18 @@ main() {
testUnsupported('removeLast', () => getQueryAll().removeLast());
});
+ group('functional', () {
+ test('scrollIntoView', () {
+ var child = new DivElement();
+ document.body.append(child);
+
+ child.scrollIntoView(ScrollIntoViewAlignment.TOP);
+ child.scrollIntoView(ScrollIntoViewAlignment.BOTTOM);
+ child.scrollIntoView(ScrollIntoViewAlignment.CENTER);
+ child.scrollIntoView();
+ });
+ });
+
group('_ElementList', () {
List<Element> makeElList() => makeElementWithChildren().children;

Powered by Google App Engine
This is Rietveld 408576698