a47410bbed
Only change from original code review is the closing of files opened in the test. - Fixed integer checks in a couple of places. - Added closed checks to async operations. More changes like this coming but I'm splitting the work up to not make the review too large. R=sgjesse@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//10414021 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7790 260f80e4-7a28-3924-810f-c04153c831b5