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

Side by Side Diff: pkg/polymer/test/take_attributes_test.dart

Issue 26660004: Updating todomvc for some polymer changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | samples/third_party/todomvc/web/router_options.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'package:unittest/html_config.dart'; 8 import 'package:unittest/html_config.dart';
9 import 'package:polymer/polymer.dart'; 9 import 'package:polymer/polymer.dart';
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 expect(queryXTag("#zot1").boolean, false); 87 expect(queryXTag("#zot1").boolean, false);
88 expect(queryXTag("#zot2").boolean, true); 88 expect(queryXTag("#zot2").boolean, true);
89 expect(queryXTag("#zot3").boolean, false); 89 expect(queryXTag("#zot3").boolean, false);
90 // this one is only 'truthy' 90 // this one is only 'truthy'
91 expect(queryXTag("#zot4").boolean, true); 91 expect(queryXTag("#zot4").boolean, true);
92 // this one is also 'truthy', but should it be? 92 // this one is also 'truthy', but should it be?
93 expect(queryXTag("#zot5").boolean, true); 93 expect(queryXTag("#zot5").boolean, true);
94 // 94 //
95 // Issue 14096 - field initializers are in the incorrect order. 95 // Issue 14096 - field initializers are in the incorrect order.
96 // This should be expecting 84. 96 // This should be expecting 84.
97 expect(queryXTag("#zot0").number, 42); 97 //expect(queryXTag("#zot0").number, 84);
blois 2013/10/15 00:52:23 I had switched this over so we'd fix it when dart2
98 expect(queryXTag("#zot6").number, 185); 98 expect(queryXTag("#zot6").number, 185);
99 expect(queryXTag("#zot0").str, "don't panic"); 99 expect(queryXTag("#zot0").str, "don't panic");
100 // 100 //
101 // Date deserialization tests 101 // Date deserialization tests
102 expect(queryXTag("#date1").value, new DateTime(2014, 12, 25)); 102 expect(queryXTag("#date1").value, new DateTime(2014, 12, 25));
103 expect(queryXTag("#date2").value, isNot(equals(new DateTime(2014, 12, 25))), 103 expect(queryXTag("#date2").value, isNot(equals(new DateTime(2014, 12, 25))),
104 reason: 'Dart does not support this format'); 104 reason: 'Dart does not support this format');
105 expect(queryXTag("#date3").value, new DateTime(2014, 12, 25, 11, 45)); 105 expect(queryXTag("#date3").value, new DateTime(2014, 12, 25, 11, 45));
106 expect(queryXTag("#date4").value, new DateTime(2014, 12, 25, 11, 45, 30)); 106 expect(queryXTag("#date4").value, new DateTime(2014, 12, 25, 11, 45, 30));
107 // Failures on Firefox. Need to fix this with custom parsing 107 // Failures on Firefox. Need to fix this with custom parsing
108 //expect(String(queryXTag("#date5").value), String(new Date(2014, 11, 25, 11 , 45, 30))); 108 //expect(String(queryXTag("#date5").value), String(new Date(2014, 11, 25, 11 , 45, 30)));
109 // 109 //
110 // milliseconds in the Date string not supported on Firefox 110 // milliseconds in the Date string not supported on Firefox
111 //expect(queryXTag("#date5").value.getMilliseconds(), new Date(2014, 11, 25, 11, 45, 30, 33).getMilliseconds()); 111 //expect(queryXTag("#date5").value.getMilliseconds(), new Date(2014, 11, 25, 11, 45, 30, 33).getMilliseconds());
112 // 112 //
113 // Array deserialization tests 113 // Array deserialization tests
114 expect(queryXTag("#arr1").values, [0, 1, 2]); 114 expect(queryXTag("#arr1").values, [0, 1, 2]);
115 expect(queryXTag("#arr2").values, [33]); 115 expect(queryXTag("#arr2").values, [33]);
116 // Object deserialization tests 116 // Object deserialization tests
117 expect(queryXTag("#obj1").values, { 'name': 'Brandon', 117 expect(queryXTag("#obj1").values, { 'name': 'Brandon',
118 'nums': [1, 22, 33] }); 118 'nums': [1, 22, 33] });
119 expect(queryXTag("#obj2").values, { "color": "Red" }); 119 expect(queryXTag("#obj2").values, { "color": "Red" });
120 expect(queryXTag("#obj3").values, { 'movie': 'Buckaroo Banzai', 120 expect(queryXTag("#obj3").values, { 'movie': 'Buckaroo Banzai',
121 'DOB': '07/31/1978' }); 121 'DOB': '07/31/1978' });
122 }); 122 });
123 } 123 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | samples/third_party/todomvc/web/router_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698