Support map and list literals in analyzer2dart.

BUG=
R=paulberry@google.com, sigurdm@google.com

Review URL: https://codereview.chromium.org//658103003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41391 260f80e4-7a28-3924-810f-c04153c831b5
Make Expect.throws not accept arguments that fail to be called.

Expect.throws calls its first argument, f, with no arguments.
If f isn't callable in this way, the act of calling would throw, and this throw would be considered as makeing the Expect.throws succeeede.

Now we check the argument first, and call it outside the try/catch if it's not callable. This was already caught in checked mode, but we shouldn't accept a false positive in unchecked mode either.

R=zerny@google.com

Review URL: https://codereview.chromium.org//692463002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41392 260f80e4-7a28-3924-810f-c04153c831b5
Mark tests flaky on Safari 6.2

BUG=dartbug.com/21434
R=ricow@google.com

Review URL: https://codereview.chromium.org//659173003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41393 260f80e4-7a28-3924-810f-c04153c831b5