Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8727

WebSQL test fail on Android 5.1

    XMLWordPrintableJSON

Details

    Description

      Regression testing Android 5.1 on mobile-spec.
      WebSQL test fails immediately when trying to create a table.

      Gets exception at line with the scrollByLines() method

      var databaseOutput = function(s) {
      var el = document.getElementById("database_results");
      el.innerHTML = el.innerHTML + s + "<br>";
      el.scrollByLines(20000);
      };

      To Fix: Just remove that line. scollByLines() doesn't affect the webSQL test so can be removed.

      My guess for why it breaks in Android 5.1 is that it is deprecated, though just speculating after looking around for answers.

      Some sources regarding the fix:

      The earliest version of cordova this line is present in is 3.2.0 and goes all the way through Master. And somewhere along the way, index.html starts to reference index.js where this line was moved to.

      Attachments

        Activity

          People

            ktop500 Karen Tran
            ktop500 Karen Tran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: