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

Unified Diff: tests/html/element_add_test.dart

Issue 494253002: Fix Try Dart newline handling on IE11. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Test checks content of the text with newlines Created 6 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/try/try.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_add_test.dart
===================================================================
--- tests/html/element_add_test.dart (revision 39571)
+++ tests/html/element_add_test.dart (working copy)
@@ -74,6 +74,18 @@
expect(el.nodes.length, equals(1));
});
+ test('htmlelement', () {
+ var el = new DivElement();
+ var twoNewLines = "\n\n";
+ el.appendText(twoNewLines);
+ // No children were created.
+ expect(el.children.length, equals(0));
+ // One text node was added.
+ expect(el.nodes.length, equals(1));
+ expect(el.nodes[0], isText);
+ expect(el.nodes[0].text, equals(twoNewLines));
ahe 2014/08/27 11:48:48 Suggest adding: expect(el.text, equals(twoNewLine
+ });
+
test('documentFragment', () {
var fragment = new DocumentFragment();
fragment.appendText('foo');
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/try/try.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698