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

Unified Diff: tests/html/element_webkit_test.dart

Issue 11679007: Adding support checks for partially supported element types and updating tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « tests/html/element_types_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_webkit_test.dart
diff --git a/tests/html/element_webkit_test.dart b/tests/html/element_webkit_test.dart
index 4933d75ceb6f2a588399aa0afb49afb0bfc0e8b3..60036312d098bf2ebb96aba314de86f3af2da875 100644
--- a/tests/html/element_webkit_test.dart
+++ b/tests/html/element_webkit_test.dart
@@ -13,14 +13,6 @@ import 'dart:html';
// Ideally all of these should be functional on all browsers and moved into
// element_test.dart.
-void testConstructorHelper(String tag, String htmlSnippet,
- String expectedText, Function isExpectedClass) {
- expect(isExpectedClass(new Element.tag(tag)), true);
- final elementFromSnippet = new Element.html(htmlSnippet);
- expect(isExpectedClass(elementFromSnippet), true);
- expect(expectedText, elementFromSnippet.text);
-}
-
void testEventHelper(EventListenerList listenerList, type,
[Function registerOnEventListener = null]) {
bool firedWhenAddedToListenerList = false;
@@ -46,25 +38,6 @@ void testEventHelper(EventListenerList listenerList, type,
main() {
useHtmlConfiguration();
- group('constructors', () {
- test('details', () => testConstructorHelper('details',
- '<details>foo</details>', 'foo',
- (element) => element is DetailsElement));
- test('embed', () => testConstructorHelper('embed',
- '<embed>foo</embed>', '',
- (element) => element is EmbedElement));
- test('keygen', () => testConstructorHelper('keygen', '<keygen>', '',
- (element) => element is KeygenElement));
- test('marquee', () => testConstructorHelper('marquee',
- '<marquee>foo</marquee>', 'foo',
- (element) => element is MarqueeElement));
- test('meter', () => testConstructorHelper('meter',
- '<meter>foo</meter>', 'foo',
- (element) => element is MeterElement));
- test('object', () => testConstructorHelper('object',
- '<object>foo</object>', 'foo',
- (element) => element is ObjectElement));
- });
group('events', () {
final element = new Element.tag('div');
« no previous file with comments | « tests/html/element_types_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698