Ember RC6 update

This commit is contained in:
Robin Ward
2013-07-15 19:47:13 -04:00
parent 75282576b9
commit d466d11e71
23 changed files with 5850 additions and 2002 deletions

View File

@@ -1,11 +1,11 @@
// Test helpers
var resolvingPromise = Ember.Deferred.promise(function (p) {
p.resolve();
});
// var resolvingPromise = Ember.Deferred.promise(function (p) {
// p.resolve();
// });
var resolvingPromiseWith = function(result) {
return Ember.Deferred.promise(function (p) { p.resolve(result); });
};
// var resolvingPromiseWith = function(result) {
// return Ember.Deferred.promise(function (p) { p.resolve(result); });
// };
function exists(selector) {
return !!count(selector);

View File

@@ -18,4 +18,15 @@ function controllerFor(controller, model) {
var controller = Discourse.__container__.lookup('controller:' + controller);
if (model) { controller.set('model', model ); }
return controller;
}
function asyncTestDiscourse(text, func) {
asyncTest(text, function () {
var qunitContext = this;
Ember.run(function () {
func.call(qunitContext);
});
});
}