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

Unified Diff: client/tests/client/html/ElementTests.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: client/tests/client/html/ElementTests.dart
diff --git a/client/tests/client/html/ElementTests.dart b/client/tests/client/html/ElementTests.dart
index 2632bfcfe4a8b2b32d8d9c968d43d97694b70df2..0404350442d39c91edd718875742c05480a5d1b9 100644
--- a/client/tests/client/html/ElementTests.dart
+++ b/client/tests/client/html/ElementTests.dart
@@ -276,98 +276,98 @@ void testElement() {
test('eventListeners', () {
final element = new Element.tag('div');
final on = element.on;
- final rawElement = unwrapDomObject(element);
+ var rawElement = element;
testEventHelper(on.abort, 'abort',
- (listener) => rawElement.addEventListener('abort', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'abort', listener, true));
testEventHelper(on.beforeCopy, 'beforecopy',
- (listener) => rawElement.addEventListener('beforecopy', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'beforecopy', listener, true));
testEventHelper(on.beforeCut, 'beforecut',
- (listener) => rawElement.addEventListener('beforecut', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'beforecut', listener, true));
testEventHelper(on.beforePaste, 'beforepaste',
- (listener) => rawElement.addEventListener('beforepaste', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'beforepaste', listener, true));
testEventHelper(on.blur, 'blur',
- (listener) => rawElement.addEventListener('blur', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'blur', listener, true));
testEventHelper(on.change, 'change',
- (listener) => rawElement.addEventListener('change', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'change', listener, true));
testEventHelper(on.click, 'click',
- (listener) => rawElement.addEventListener('click', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'click', listener, true));
testEventHelper(on.contextMenu, 'contextmenu',
- (listener) => rawElement.addEventListener('contextmenu', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'contextmenu', listener, true));
testEventHelper(on.copy, 'copy',
- (listener) => rawElement.addEventListener('copy', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'copy', listener, true));
testEventHelper(on.cut, 'cut',
- (listener) => rawElement.addEventListener('cut', listener, true));
- testEventHelper(on.dblClick, 'dblclick',
- (listener) => rawElement.addEventListener('dblclick', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'cut', listener, true));
+ testEventHelper(on.doubleClick, 'dblclick',
+ (listener) => Testing.addEventListener(rawElement, 'dblclick', listener, true));
testEventHelper(on.drag, 'drag',
- (listener) => rawElement.addEventListener('drag', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'drag', listener, true));
testEventHelper(on.dragEnd, 'dragend',
- (listener) => rawElement.addEventListener('dragend', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'dragend', listener, true));
testEventHelper(on.dragEnter, 'dragenter',
- (listener) => rawElement.addEventListener('dragenter', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'dragenter', listener, true));
testEventHelper(on.dragLeave, 'dragleave',
- (listener) => rawElement.addEventListener('dragleave', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'dragleave', listener, true));
testEventHelper(on.dragOver, 'dragover',
- (listener) => rawElement.addEventListener('dragover', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'dragover', listener, true));
testEventHelper(on.dragStart, 'dragstart',
- (listener) => rawElement.addEventListener('dragstart', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'dragstart', listener, true));
testEventHelper(on.drop, 'drop',
- (listener) => rawElement.addEventListener('drop', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'drop', listener, true));
testEventHelper(on.error, 'error',
- (listener) => rawElement.addEventListener('error', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'error', listener, true));
testEventHelper(on.focus, 'focus',
- (listener) => rawElement.addEventListener('focus', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'focus', listener, true));
testEventHelper(on.input, 'input',
- (listener) => rawElement.addEventListener('input', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'input', listener, true));
testEventHelper(on.invalid, 'invalid',
- (listener) => rawElement.addEventListener('invalid', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'invalid', listener, true));
testEventHelper(on.keyDown, 'keydown',
- (listener) => rawElement.addEventListener('keydown', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'keydown', listener, true));
testEventHelper(on.keyPress, 'keypress',
- (listener) => rawElement.addEventListener('keypress', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'keypress', listener, true));
testEventHelper(on.keyUp, 'keyup',
- (listener) => rawElement.addEventListener('keyup', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'keyup', listener, true));
testEventHelper(on.load, 'load',
- (listener) => rawElement.addEventListener('load', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'load', listener, true));
testEventHelper(on.mouseDown, 'mousedown',
- (listener) => rawElement.addEventListener('mousedown', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'mousedown', listener, true));
testEventHelper(on.mouseMove, 'mousemove',
- (listener) => rawElement.addEventListener('mousemove', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'mousemove', listener, true));
testEventHelper(on.mouseOut, 'mouseout',
- (listener) => rawElement.addEventListener('mouseout', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'mouseout', listener, true));
testEventHelper(on.mouseOver, 'mouseover',
- (listener) => rawElement.addEventListener('mouseover', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'mouseover', listener, true));
testEventHelper(on.mouseUp, 'mouseup',
- (listener) => rawElement.addEventListener('mouseup', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'mouseup', listener, true));
testEventHelper(on.mouseWheel, 'mousewheel',
- (listener) => rawElement.addEventListener('mousewheel', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'mousewheel', listener, true));
testEventHelper(on.paste, 'paste',
- (listener) => rawElement.addEventListener('paste', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'paste', listener, true));
testEventHelper(on.reset, 'reset',
- (listener) => rawElement.addEventListener('reset', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'reset', listener, true));
testEventHelper(on.scroll, 'scroll',
- (listener) => rawElement.addEventListener('scroll', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'scroll', listener, true));
testEventHelper(on.search, 'search',
- (listener) => rawElement.addEventListener('search', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'search', listener, true));
testEventHelper(on.select, 'select',
- (listener) => rawElement.addEventListener('select', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'select', listener, true));
testEventHelper(on.selectStart, 'selectstart',
- (listener) => rawElement.addEventListener('selectstart', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'selectstart', listener, true));
testEventHelper(on.submit, 'submit',
- (listener) => rawElement.addEventListener('submit', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'submit', listener, true));
testEventHelper(on.touchCancel, 'touchcancel',
- (listener) => rawElement.addEventListener('touchcancel', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'touchcancel', listener, true));
testEventHelper(on.touchEnd, 'touchend',
- (listener) => rawElement.addEventListener('touchend', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'touchend', listener, true));
testEventHelper(on.touchLeave, 'touchleave');
testEventHelper(on.touchMove, 'touchmove',
- (listener) => rawElement.addEventListener('touchmove', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'touchmove', listener, true));
testEventHelper(on.touchStart, 'touchstart',
- (listener) => rawElement.addEventListener('touchstart', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'touchstart', listener, true));
testEventHelper(on.transitionEnd, 'webkitTransitionEnd');
testEventHelper(on.fullscreenChange, 'webkitfullscreenchange',
- (listener) => rawElement.addEventListener('webkitfullscreenchange', listener, true));
+ (listener) => Testing.addEventListener(rawElement, 'webkitfullscreenchange', listener, true));
});
test('attributes', () {
@@ -671,8 +671,7 @@ void testElement() {
});
group('_ElementList', () {
- ElementList makeElList() =>
- makeElementWithChildren().elements.filter((_) => true);
+ ElementList makeElList() => makeElementWithChildren().elements;
test('first', () {
var els = makeElList();

Powered by Google App Engine
This is Rietveld 408576698