ttt43ttt / speedtracer

Automatically exported from code.google.com/p/speedtracer
0 stars 0 forks source link

ImageLoader problem in method loadImages(...) #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Provide a description of the buggy behavior observed:

What steps will reproduce the problem?
call ImageLoader.loadImage(urls, callback)

Give a description of the behavior you expected to see.
callback.onImagesLoad(ImageHandle[] imageHandles)
imageHandles should contain array of handles in the same order as given by
urls argument.
Problem: all the handles contain information about image given by urls[0].

The version of Speed Tracer (check the chrome://extensions url)
SVN trunk (r48)

Problem in class com.google.gwt.graphics.client.ImageLoader:
51  public static void loadImages(String[] urls, CallBack cb) {
52    ImageLoader il = new ImageLoader();
53    for (int i = 0;i < urls.length;i++) {
54      il.addHandle(il.loadImage(urls[0]));
55    }
56    il.finalize(cb);
57    ImageLoader.imageLoaders.add(il);
58  }

Fix:
54      il.addHandle(il.loadImage(urls[i]));

Patch is attached to fix the issue.

Original issue reported on code.google.com by igor.mih...@gmail.com on 11 Jan 2010 at 10:24

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by knor...@google.com on 21 Jun 2011 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by sarahgsm...@google.com on 1 Jul 2011 at 5:33