[ 
https://issues.apache.org/jira/browse/CB-7905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197633#comment-14197633
 ] 

Angela Fowler commented on CB-7905:
-----------------------------------

Find all "alert(", Subfolders, Find Results 1, Entire Solution, ""
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\battery\index.js(13):
            alert("Error: Apache Cordova did not initialize.  Demo will not run 
correctly.");
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\arraybuffer.html(99):
                alert('Echo plugin did not respond');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\arraybuffer.html(112):
                alert("Error: Cordova did not initialize.  Demo will not run 
correctly.");
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(43):
                alert('Error creating LICENSE FileWriter');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(46):
            alert('Error copying LICENSE to a file system');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(78):
                    alert('Some prereq XHR stuff to get license content failed 
mang.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(89):
                            alert('Failed to get TEMPORARY File System');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(93):
                    alert('Failed to get PERSISTENT File System');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(103):
                alert("Error: Cordova did not initialize.  Demo will not run 
correctly.");
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(134):
                    alert('There was a problem during XHR file read!');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(150):
                    alert('Error getting File object from LICENSE file in TEMP 
FS.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(153):
                alert('Error getting LICENSE file from root of TEMP FS.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(167):
                    alert('Error getting File object from LICENSE file in 
PERSISTENT FS.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\autobench.html(170):
                alert('Error getting LICENSE file from root of PERSISTENT FS.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\exec.html(155):
                alert('Echo plugin did not respond');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\benchmarks\exec.html(199):
                alert("Error: Cordova did not initialize.  Demo will not run 
correctly.");
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\events\index.js(23):
        alert("Error: Apache Cordova did not initialize.  Demo will not run 
correctly.");
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\keyboard\index.js(15):
                alert(msg);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\keyboard\index.js(22):
            alert(msg);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\keyboard\index.js(41):
    alert('Keyboard.isVisible: ' + Keyboard.isVisible);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\keyboard\window-onerror.js(1):window.onerror
 = function(err,fn,ln) {alert("ERROR:" + err + ", " + fn + ":" + ln);};
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\misc\index.js(19):  
      alert("Error: Apache Cordova did not initialize.  Demo will not run 
correctly.");
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.camera.tests\tests.js(324):
            alert('No file selected.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.camera.tests\tests.js(329):
            alert('Got value but no file.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.contacts.tests\tests.js(495):
            alert(e);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.device\www\device.js(61):
            utils.alert("[ERROR] Error initializing Cordova: " + e);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.dialogs\src\windows8\NotificationProxy.js(34):
                module.exports.alert(win, loseX, args);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.dialogs.tests\tests.js(74):
        navigator.notification.alert(message,
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.dialogs.tests\tests.js(179):
        alert('You pressed alert');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.geolocation.tests\tests.js(158):
            alert('geolocation object is missing. usePlugin = ' + usePlugin);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.geolocation.tests\tests.js(185):
            alert('geolocation object is missing. usePlugin = ' + usePlugin);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.geolocation.tests\tests.js(202):
            alert('geolocation object is missing. usePlugin = ' + usePlugin);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(42):*
    globalization.getPreferredLanguage(function (language) {alert('language:' + 
language.value + '\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(64):*
    globalization.getLocaleName(function (locale) {alert('locale:' + 
locale.value + '\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(94):*
                function (date) {alert('date:' + date.value + '\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(95):*
                function (errorCode) {alert(errorCode);},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(134):*
                function (date) { alert('Month:' + date.month + '\n' +
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(137):*
                function (errorCode) {alert(errorCode);},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(174):*
                function (date) {alert('pattern:' + date.pattern + '\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(206):*
            alert('Month:' + names.value[i] + '\n');}},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(231):*
                function (date) {alert('dst:' + date.dst + '\n');}
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(255):*
                { alert('Day:' + day.value + '\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(283):*
                function (number) {alert('number:' + number.value + '\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(312):*
                function (number) {alert('Number:' + number.value + '\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(313):*
                function () { alert('Error parsing number');});
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(349):*
                function (pattern) {alert('Pattern:' + pattern.pattern + 
'\n');},
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.globalization\www\globalization.js(381):*
                function (currency) {alert('Pattern:' + currency.pattern + 
'\n');}
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(29):
            alert('window.open returned ' + iab);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(52):
                    alert('Unexpected: loadstart fired multiple times for the 
same URL.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(59):
                    alert('Unexpected: ' + e.type + ' event.url != loadstart\'s 
event.url');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(64):
                        alert('Unexpected: got multiple loadstart events. (' + 
counts['loadstart'] + ')');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(67):
                    alert('Unexpected: should have got at least ' + 
(numExpectedRedirects + 1) + ' loadstart events, but got ' + 
counts['loadstart']);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(77):
                    alert('Unexpected: browser closed without a loadstop or 
loaderror.')
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(79):
                    alert('Unexpected: got multiple loadstop/loaderror 
events.');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(95):
                alert('Results verified');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(98):
                alert('Got: ' + typeof (results) + '\n' + 
JSON.stringify(results));
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(119):
                        alert('Results verified');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(122):
                        alert('Got: ' + typeof (results) + '\n' + 
JSON.stringify(results));
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(135):
                        alert('Results verified');
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(138):
                        alert('Got: ' + typeof (results) + '\n' + 
JSON.stringify(results));
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(145):
    var loadlistener = function (event) { alert('background window loaded '); };
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.inappbrowser.tests\tests.js(150):
            alert('window.open returned ' + hiddenwnd);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\plugins\org.apache.cordova.test.echo\www\does-not-run.js(24):alert('I
 shouldn\'t be run on start-up');
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\sql\index.js(26): 
            function(tx,err) { alert("Error creating table: "+err.message); });
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\sql\index.js(29): 
            function(tx,err) { alert("Error adding 1st row: "+err.message); });
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\sql\index.js(32): 
            function(tx,err) { alert("Error adding 2nd row: "+err.message); });
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\sql\index.js(46): 
           alert("Error processing SELECT * SQL: "+err.message);
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\sql\index.js(58): 
           alert("Error processing SELECT ID SQL: "+err.message);
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\sql\index.js(88): 
           alert("Error processing SELECT * WHERE id=2 SQL: "+err.message);
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\storage\index.js(13):
        alert("Error: Apache Cordova did not initialize.  Demo will not run 
correctly.");
  
C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\cordova.js(30):function
 alert(msg) {
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\cordova.js(31):   
 navigator.notification.alert(msg);
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\cordova.js(523):  
          utils.alert('Exception building Cordova JS globals: ' + e + ' for key 
"' + key + '"');
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\cordova.js(1567): 
       window.alert(msg);
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\main.js(35):      
  alert(p.coords.latitude + " " + p.coords.longitude);
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\main.js(78):      
              alert("accel fail (" + ex.name + ": " + ex.message + ")");
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\main.js(98):    
alert(msg);
  C:\projects\mobilespecNov5\mobilespec\platforms\windows\www\main.js(124):    
alert(contacts.length
  Matching lines: 78    Matching files: 21    Total files searched: 229


> Windows 8 Manual Tests use alert function which is undefined
> ------------------------------------------------------------
>
>                 Key: CB-7905
>                 URL: https://issues.apache.org/jira/browse/CB-7905
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: mobile-spec, Windows 8
>    Affects Versions: 3.6.3
>         Environment: Windows 8
>            Reporter: Angela Fowler
>            Assignee: Jesse MacFadyen
>
> A number of the manual tests use the alert function which is unhandled and 
> crashes the app.
> e.g. events init() function.
> Unhandled exception at line 23, column 9 in 
> ms-appx://86f5ae70-5993-11e4-a645-8b89700cd2e4/www/events/index.js
> 0x800a1391 - JavaScript runtime error: 'alert' is undefined
> You could use navigator.notification.alert() instead.
> Have any of these tests ever been run on a device?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to