vsavkin / angulardart-sample-app Goto Github PK
View Code? Open in Web Editor NEWA sample Web application built using AngularDart
License: Other
A sample Web application built using AngularDart
License: Other
Can you add an open source license to the app? Thanks!
TestDouble
fails due to not being a subtype of X.
DUMP: unittest-suite-wait-for-done
Chrome 32.0.1700 (Mac OS X 10.8.5) [CreateCallCtrl] [create] storing the call FAILED
Test failed: Caught type 'TestDouble' is not a subtype of type 'CallStorage' of 'storage'.
package:talk_to_me/controllers/create_call_ctrl.dart 12:23 CreateCallCtrl.CreateCallCtrl
base/test/unit/create_call_ctrl_test.dart 17:23 testCreateCallCtrl.<fn>.<fn>.<fn>
package:unittest/src/test_case.dart 109:30 _run.<fn>
dart:async/zone.dart 717 _rootRunUnary
dart:async/zone.dart 449 _ZoneDelegate.runUnary
dart:async/zone.dart 654 _CustomizedZone.runUnary
dart:async/future_impl.dart 439 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 522 _Future._propagateToListeners
dart:async/future_impl.dart 303 _Future._complete
dart:async/future_impl.dart 354 _Future._asyncComplete.<fn>
dart:async/zone.dart 710 _rootRun
dart:async/zone.dart 440 _ZoneDelegate.run
dart:async/zone.dart 650 _CustomizedZone.run
dart:async/zone.dart 561 _BaseZone.runGuarded
dart:async/zone.dart 586 _BaseZone.bindCallback.<fn>
dart:async/schedule_microtask.dart 23 _asyncRunCallbackLoop
dart:async/schedule_microtask.dart 32 _asyncRunCallback
file:///Volumes/data/b/build/slave/dartium-mac-full-dev/build/src/dart/tools/dom/src/native_DOMImplementation.dart 607 _handleMutation
Chrome 32.0.1700 (Mac OS X 10.8.5) [CreateCallCtrl] [create] redirecting to the show url FAILED
Test failed: Caught type 'TestDouble' is not a subtype of type 'CallStorage' of 'storage'.
package:talk_to_me/controllers/create_call_ctrl.dart 12:23 CreateCallCtrl.CreateCallCtrl
base/test/unit/create_call_ctrl_test.dart 27:23 testCreateCallCtrl.<fn>.<fn>.<fn>
package:unittest/src/test_case.dart 109:30 _run.<fn>
dart:async/zone.dart 717 _rootRunUnary
dart:async/zone.dart 449 _ZoneDelegate.runUnary
dart:async/zone.dart 654 _CustomizedZone.runUnary
dart:async/future_impl.dart 439 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 522 _Future._propagateToListeners
dart:async/future_impl.dart 303 _Future._complete
dart:async/future_impl.dart 354 _Future._asyncComplete.<fn>
dart:async/zone.dart 710 _rootRun
dart:async/zone.dart 440 _ZoneDelegate.run
dart:async/zone.dart 650 _CustomizedZone.run
dart:async/zone.dart 561 _BaseZone.runGuarded
dart:async/zone.dart 586 _BaseZone.bindCallback.<fn>
dart:async/schedule_microtask.dart 23 _asyncRunCallbackLoop
dart:async/schedule_microtask.dart 32 _asyncRunCallback
file:///Volumes/data/b/build/slave/dartium-mac-full-dev/build/src/dart/tools/dom/src/native_DOMImplementation.dart 607 _handleMutation
Chrome 32.0.1700 (Mac OS X 10.8.5) [UsersRepository - without using Angular helpers] [all] getting a list of users FAILED
Test failed: Caught type 'TestDouble' is not a subtype of type 'Http' of 'http'.
package:talk_to_me/services/users_repository.dart 6:24 UsersRepository.UsersRepository
base/test/unit/users_repository_test.dart 25:26 testUsersRepository.<fn>.<fn>.<fn>
package:unittest/src/test_case.dart 109:30 _run.<fn>
dart:async/zone.dart 717 _rootRunUnary
dart:async/zone.dart 449 _ZoneDelegate.runUnary
dart:async/zone.dart 654 _CustomizedZone.runUnary
dart:async/future_impl.dart 439 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 522 _Future._propagateToListeners
dart:async/future_impl.dart 303 _Future._complete
dart:async/future_impl.dart 354 _Future._asyncComplete.<fn>
dart:async/zone.dart 710 _rootRun
dart:async/zone.dart 440 _ZoneDelegate.run
dart:async/zone.dart 650 _CustomizedZone.run
dart:async/zone.dart 561 _BaseZone.runGuarded
dart:async/zone.dart 586 _BaseZone.bindCallback.<fn>
dart:async/schedule_microtask.dart 23 _asyncRunCallbackLoop
dart:async/schedule_microtask.dart 32 _asyncRunCallback
file:///Volumes/data/b/build/slave/dartium-mac-full-dev/build/src/dart/tools/dom/src/native_DOMImplementation.dart 607 _handleMutation
Chrome 32.0.1700 (Mac OS X 10.8.5): Executed 14 of 14 (3 FAILED) (1.914 secs / 0.296 secs)
gh_pages demo talk_to_me.dart
not found
but as I understand problem is much bigger
caused by line 12 in models/angenda_item.dart:
bool get extPriority => done ? 4 : priority;
changing the typt to int resolves the issue:
int get extPriority => done ? 4 : priority;
does an angulardart app is consider a static website just like website with just html, css and js?
if so, this means that angulardart app can be host on google cloud storage, right?
'HTMLSourceElement.media' is deprecated. This attribute doesn't do anything.
'HTMLVideoElement.webkitDisplayingFullscreen' is deprecated. Please use the 'fullscreenchange' and 'webkitfullscreenchange' events instead.
'HTMLVideoElement.webkitSupportsFullscreen' is deprecated. Its value is true if the video is loaded.
Unsupported operation: Cannot find class for: DynamicMetadataExtractor
STACKTRACE:
Error
at dart.wrapException (http://localhost:8888/build/web/talk_to_me_main.dart.js:3043:15)
at dart.reflectClassByName (http://localhost:8888/build/web/talk_to_me_main.dart.js:35819:15)
at dart.reflectClassByMangledName (http://localhost:8888/build/web/talk_to_me_main.dart.js:35784:14)
at dart.reflectType (http://localhost:8888/build/web/talk_to_me_main.dart.js:49845:14)
at DynamicInjector.newInstanceOf$4 (http://localhost:8888/build/web/talk_to_me_main.dart.js:50800:23)
at TypeProvider.get$4 (http://localhost:8888/build/web/talk_to_me_main.dart.js:50958:23)
at DynamicInjector.BaseInjector.getInstanceByKey$3 (http://localhost:8888/build/web/talk_to_me_main.dart.js:50666:24)
at DynamicInjector_newInstanceOf_resolveArgument.call$1 (http://localhost:8888/build/web/talk_to_me_main.dart.js:50832:19)
at dart.List.static.List_List$generate.H.computeSignature.func (http://localhost:8888/build/web/talk_to_me_main.dart.js:44447:26)
at DynamicInjector.newInstanceOf$4 (http://localhost:8888/build/web/talk_to_me_main.dart.js:50811:16) js_primitives.dart:25
See line #36 here: https://github.com/vsavkin/angulardart-sample-app/blob/master/test/unit/agenda_item_component_test.dart
Not a big deal but result may surprise some since Guinness/Jasmine may not be familiar to users.
Hi!
First of all, thanks for a great example of how to implement something using AngularDart.
Could anyone, if needed, update it so it works with AngularDart v1.0? (Or maybe point me to some other example app using AngularDart v1.0)
Cheers!
I can't seem to get the tests to run in this repository. I found this repository through your excellent article, here: http://victorsavkin.com/post/88976977711/testing-angulardart-applications
But whenever I run the tests I get the following error:
ERROR: [AgendaItemComponent] DDESCRIBE: [swiching between modes] defaults to the show mode
Test failed: Caught Type 'DynamicTypeToUriMapper' not found in generated typeFactory maps. Is the type's constructor injectable and annotated for injection?
I've also posted a question on StackOverflow about this (http://stackoverflow.com/questions/32137921/unit-testing-angulardart-components), but can you shed any light?
Thanks very much for your help.
Firefox 25.0 (Mozilla Firefox for Ubuntu canonical - 1.0)
[06:51:06.912] "NullError: a.webkitCreateShadowRoot is undefined
STACKTRACE:
.cv.er@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:41473
J.Rx@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:71116
.Z4.call$6@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:5252
.Gf.call$1@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:5140
.Ek@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:2633
.on.jT@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:57378
J.Zz@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:71187
.LR.call$0@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:57286
.yU@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:57420
.Ua.kp@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:57477
.cX.xD@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:57201
.cX.ox@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:57224
J.Xk@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:71171
.uHO.call$1@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:5180
.bQ@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:13431
.Q.aN@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:1117
J.kH@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:71268
.ll.lK@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:5030
.ll.lw@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4976
.ll.lw@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4977
.ll.lw@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4977
.ll.lw@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4977
.ll.call$2@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4951
.ll.call$1@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4955
.Kw.call$1@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:9946
.vs.GP@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16670
.jb.call$0@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16907
.T8@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16000
.Id.Vn@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19521
.AP.call$0@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4730
.G3.YF@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4663
.G3.Cwz@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4672
$$.QdT<.call$4@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:211
.Id.Vn@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19521
.uo.Gr@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19722
.vs.static.HZ@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16834
.vs.rX@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16740
.rH.call$0@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16880
.T8@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16000
.Id.Vn@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19521
.pu.call$0@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4744
.T8@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:16003
.Id.Vn@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19521
.G3.n1@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4693
.G3.YF@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4670
.G3.O0p@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:4676
$$.RTS<.call$5@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:214
.Id.qG@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19528
.uo.FI@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19726
.fZ.m1@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19610
.Cg.call$1@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:19663
.TL.call$0@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:3379
.aX.vV@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:1953
.zd@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:1796
.ft@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:2709
.tR/z</<@http://vsavkin.github.io/angulardart-sample-app/talk_to_me.dart.js:2718
"
The app failed to load because it tries to parse all keys and values.
See CallStorage
This is not a safe assumption because so many examples run in the same origin: localhost:3030 :)
Victor, I am looking forward to try out your sample AngularDart, but when I run pub get
it reports
Resolving dependencies...
No such file or directory
Uncaught Error: FormatException: Couldn't parse VM stack trace line 'null'.
Stack trace:
null
...
I am using Dart 1.1.1. Do you get the same error? If not, which version of Dart are you using (so that I might retro/upgrade to it). Thanks.
Add one agenda item
Add a second
freezes
(when compiled to JS)
NullError: a.webkitCreateShadowRoot is undefined
Everything seems to work fine in Chromium. This is probably related to this bug.
Here's what I get:
NotFoundError: Failed to execute 'appendChild' on 'Node': The new child element is null.
STACKTRACE:
Error: Failed to execute 'appendChild' on 'Node': The new child element is null.
at HtmlElement.Node.append$1 (http://localhost:8080/talk_to_me.dart.js:34347:23)
at dart.J.append$1$x (http://localhost:8080/talk_to_me.dart.js:43492:39)
at NgViewDirective__show__closure.call$1 (http://localhost:8080/talk_to_me.dart.js:14942:16)
at dart.IterableMixinWorkaround_forEach (http://localhost:8080/talk_to_me.dart.js:17166:9)
at JSArray.forEach$1.H.computeSignature.func [as forEach$1] (http://localhost:8080/talk_to_me.dart.js:724:16)
at dart.J.forEach$1$ax (http://localhost:8080/talk_to_me.dart.js:43567:40)
at NgViewDirective__show_closure0.call$1 (http://localhost:8080/talk_to_me.dart.js:14934:9)
at _Future._onValue$1 (http://localhost:8080/talk_to_me.dart.js:21172:34)
at _Future__propagateToListeners_closure0.call$0 (http://localhost:8080/talk_to_me.dart.js:21447:44)
at _rootRun (http://localhost:8080/talk_to_me.dart.js:20721:16)
When I try to load the app when served from pub serve
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.