From a5c446441fee005975a82885771e8d931e7a4e7a Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sun, 24 Jan 2010 19:12:01 -0800 Subject: fix closure compiler incompatibilities --- test/FileControllerTest.js | 4 ++-- test/WidgetsTest.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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); diff --git a/test/WidgetsTest.js b/test/WidgetsTest.js index fe20e664..c0a2d082 100644 --- a/test/WidgetsTest.js +++ b/test/WidgetsTest.js @@ -223,10 +223,10 @@ BindAttrUpdaterTest.prototype.testShouldLoadBlankImageWhenBindingIsUndefined = f var scope = new Scope(); scope.set('imageUrl', undefined); - scope.set('config.server', 'http://server'); + scope.set('$config.blankImage', 'http://server/blank.gif'); controller.updateView(scope); - assertEquals("http://server/images/blank.gif", view.attr('src')); + assertEquals("http://server/blank.gif", view.attr('src')); }; RepeaterUpdaterTest.prototype.testShouldNotDieWhenRepeatExpressionIsNull = function() { -- cgit v1.2.3