Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Issue 10876002: Fixing up some APIs to allow Web DB to work from dart and adding tests. (Closed)

Created:
8 years, 4 months ago by blois
Modified:
8 years, 4 months ago
Reviewers:
sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fixing up some APIs to allow Web DB to work from dart and adding tests. Basically the SQLTransaction.executeSQL was being ommitted because the compiler didn't recognize the ObjectArray type. Adding this in makes this work in dart2js sscenarios (where the browser supports it). I've opened bug #4645 that the APIs need to be implemented in Dartium. BUG=1888 Committed: https://code.google.com/p/dart/source/detail?r=11272

Patch Set 1 #

Patch Set 2 : Adding missing test file. #

Patch Set 3 : Changing import paths for unit test #

Total comments: 4

Patch Set 4 : Incorporating review feedback. #

Patch Set 5 : Fixing merge issue with sync. #

Patch Set 6 : Incorporating CR feedback. #

Patch Set 7 : Syncing to latest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -0 lines) Patch
M tests/html/html.status View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
A tests/html/websql_test.dart View 1 2 3 1 chunk +116 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
sra1
lgtm https://chromiumcodereview.appspot.com/10876002/diff/21/tests/html/websql_test.dart File tests/html/websql_test.dart (right): https://chromiumcodereview.appspot.com/10876002/diff/21/tests/html/websql_test.dart#newcode30 tests/html/websql_test.dart:30: }); Indentation of these things is tricky. The ...
8 years, 4 months ago (2012-08-23 17:52:39 UTC) #1
blois
8 years, 4 months ago (2012-08-23 18:15:31 UTC) #2
https://chromiumcodereview.appspot.com/10876002/diff/21/tests/html/websql_tes...
File tests/html/websql_test.dart (right):

https://chromiumcodereview.appspot.com/10876002/diff/21/tests/html/websql_tes...
tests/html/websql_test.dart:30: });
On 2012/08/23 17:52:39, sra1 wrote:
> Indentation of these things is tricky.  The } should not be at the indent of
the
> enclosing call, so the body of the anonymous functions should be +4 (i.e, two
> indents)
> 
> Something like this might be better
> 
>   transaction.executeSql(sql, [],
>     (SQLTransaction tx, SQLResultSet rs) {
>       completer.complete(transaction);
>     },
>     (SQLTransaction tx, SQLError error) {
>       fail(error.message);
>     });

Done.

https://chromiumcodereview.appspot.com/10876002/diff/21/tests/html/websql_tes...
tests/html/websql_test.dart:92: // Attempt to clear out any tables which may be
lurking from previous runs.
On 2012/08/23 17:52:39, sra1 wrote:
> Line length

Done.

Powered by Google App Engine
This is Rietveld 408576698