aboutsummaryrefslogtreecommitdiffstats
path: root/test/FileControllerTest.js
diff options
context:
space:
mode:
authorMisko Hevery2010-01-24 19:12:01 -0800
committerMisko Hevery2010-01-24 19:12:01 -0800
commita5c446441fee005975a82885771e8d931e7a4e7a (patch)
tree5f998901d0abd1be01dd2dd656619b7b051d2cc3 /test/FileControllerTest.js
parentefad9ec5be8da442af5fb3dffc08510f7a71e10f (diff)
downloadangular.js-a5c446441fee005975a82885771e8d931e7a4e7a.tar.bz2
fix closure compiler incompatibilities
Diffstat (limited to 'test/FileControllerTest.js')
-rw-r--r--test/FileControllerTest.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/FileControllerTest.js b/test/FileControllerTest.js
index 09eb6fc5..454e7624 100644
--- a/test/FileControllerTest.js
+++ b/test/FileControllerTest.js
@@ -5,7 +5,7 @@ FileControllerTest.prototype.testOnSelectUpdateView = function(){
var swf = {};
var controller = new FileController(view, null, swf);
swf.uploadFile = function(path){};
- controller._on_select('A', 9, '9 bytes');
+ controller.select('A', 9, '9 bytes');
assertEquals(view.find('a').text(), "A");
assertEquals(view.find('span').text(), "9 bytes");
};
@@ -20,7 +20,7 @@ FileControllerTest.prototype.testUpdateModelView = function(){
view.data('scope', scope);
controller = new FileController(view, 'value.input', null, "http://server_base");
var value = '{"text":"A", "size":123, "id":"890"}';
- controller._on_uploadCompleteData(value);
+ controller.uploadCompleteData(value);
controller.updateView(scope);
assertEquals(scope.get('value.input.text'), 'A');
assertEquals(scope.get('value.input.size'), 123);