[Webkit-unassigned] [Bug 115413] New: Unable to get correct type of IDBTransaction.mode attribute
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 30 05:39:48 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=115413
Summary: Unable to get correct type of IDBTransaction.mode
attribute
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: m.poteralski at samsung.com
IDBTransaction.mode return a String value but should return number value.
function runTest() {
var rqOpen = window.indexedDB.open(dbname, dbVersion);
if (typeof rqOpen.onupgradeneeded == "undefined") {
fail("The onupgradeneeded attribute does not exist");
return;
}
rqOpen.onupgradeneeded = function (event) {
var txn = event.target.transaction;
if (typeof txn.mode === 'number') { // THIS IS NOT TRUE
pass();
} else { // HERE IS THE ISSUE, THE MODE IS EQUAL STRING NOT A NUMBER
fail("IDBTransaction.mode attribute is of type " + typeof txn.mode);
}
};
rqOpen.onerror = t.step_func(open_request_error);
}
add_completion_callback(function() {
if (db) {
db.close();
}
});
setup(function() {
var rqDelete = window.indexedDB.deleteDatabase(dbname);
rqDelete.onsuccess = t.step_func(runTest);
});
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list