Permalink
Browse files

more tests

  • Loading branch information...
1 parent 5b11987 commit 43e244b6f577aa2e773ed589eb64248e7ab37ccc @nwright nwright committed Feb 9, 2010
@@ -1,25 +1,5 @@
var win = Titanium.UI.currentWindow;
-var imageView = Titanium.UI.createImageView({
- height:200,
- width:200,
- top:20,
- left:10,
- backgroundColor:'#999'
-});
-
-win.add(imageView);
-
-var thumbnailView = Titanium.UI.createImageView({
- height:50,
- width:50,
- top:240,
- left:10,
- backgroundColor:'#999'
-});
-
-win.add(thumbnailView);
-
Titanium.Media.showCamera({
success:function(event)
@@ -29,8 +9,8 @@ Titanium.Media.showCamera({
var thumbnail = event.thumbnail;
// set image view
- imageView.image = image;
- thumbnailView.image = thumbnail;
+ var imageView = Ti.UI.createImageView({image:event.media});
+ win.add(imageView);
Titanium.API.info('CAMERA SUCCESS cropRect.x ' + cropRect.x + ' cropRect.y ' + cropRect.y + ' cropRect.height ' + cropRect.height + ' cropRect.width ' + cropRect.width);
@@ -2,7 +2,9 @@
var data = [
{title:'Basic', hasChild:true, test:'../examples/scroll_views_basic.js'},
{title:'Scrolling Tabs', hasChild:true, test:'../examples/scroll_views_tabs.js'},
- {title:'Scrollable View', hasChild:true, test:'../examples/scroll_views_scrollable.js'},
+// {title:'Scrollable View', hasChild:true, test:'../examples/scroll_views_scrollable.js'},
+ {title:'Scrollable View', hasChild:true, test:'../todo.js'},
+
{title:'Many on a Screen', hasChild:true, test:'../examples/scroll_views_many.js'},
];
@@ -8,7 +8,7 @@ var data = [
{title:'Image URL', hasChild:true, url:'http://www.appcelerator.com/wp-content/uploads/2010/01/TABWAVE_graph1.png'},
{title:'SVG URL', hasChild:true, url:'http://upload.wikimedia.org/wikipedia/commons/5/55/1st_Cavalry_Division_-_Shoulder_Sleeve_Insignia.svg'},
{title:'Inline HTML', hasChild:true, text:'<html><body>Hello from inline HTML.</body></html>'},
- {title:'Inline HTML w/ Trans Bg', hasChild:true, text:'<html><body><div style="color:black;">Hello from inline HTML. You should see white text and black background</div></body></html>', bgcolor:'transparent'},
+ {title:'Inline HTML w/ Trans Bg', hasChild:true, text:'<html><body><div style="color:white;">Hello from inline HTML. You should see white text and black background</div></body></html>', bgcolor:'black'},
{title:'Inline HTML w/ Color Bg', hasChild:true, text:'<html><body><div style="color:red;">Hello from inline HTML. You should see red text and yellow background</div></body></html>', bgcolor:'yellow'},
{title:'Inline HTML w/ Border', hasChild:true, text:'<html><body><div>Hello from inline HTML. You should see red border</div></body></html>', border: true}
];

0 comments on commit 43e244b

Please sign in to comment.