[LON-CAPA-cvs] cvs: loncom /node.js/axe AxeRunner.pm axeperl.js

raeburn raeburn at source.lon-capa.org
Mon Nov 16 17:56:59 EST 2026


raeburn		Mon Nov 16 22:56:59 2026 EDT

  Modified files:              
    /loncom/node.js/axe	axeperl.js AxeRunner.pm 
  Log:
  - Accessibility testing using axe-core and puppeteer (node.js) using a
    headless chromium web browser.
    Reverse part of changes in rev. 1.4 of axeperl.js and AxeRunner.pm which
    prevented testing of multiple pages.
  
  
Index: loncom/node.js/axe/axeperl.js
diff -u loncom/node.js/axe/axeperl.js:1.4 loncom/node.js/axe/axeperl.js:1.5
--- loncom/node.js/axe/axeperl.js:1.4	Sun Aug  2 22:06:52 2026
+++ loncom/node.js/axe/axeperl.js	Mon Nov 16 22:56:59 2026
@@ -1,5 +1,5 @@
 //
-// $Id: axeperl.js,v 1.4 2026/08/02 22:06:52 raeburn Exp $
+// $Id: axeperl.js,v 1.5 2026/11/16 22:56:59 raeburn Exp $
 //
 // This is a javascript library for accessibility testing of
 // LON-CAPA resources rendered for the web target.  It relies
@@ -118,8 +118,6 @@
   } else {
     console.log('0');
   }
-  console.log(''); // Signals to AxeRunner::checkcompliance() to exit its while() loop.
-                   // DO NOT REMOVE.
   await page.close();
 }
 
Index: loncom/node.js/axe/AxeRunner.pm
diff -u loncom/node.js/axe/AxeRunner.pm:1.5 loncom/node.js/axe/AxeRunner.pm:1.6
--- loncom/node.js/axe/AxeRunner.pm:1.5	Wed Aug  5 14:26:04 2026
+++ loncom/node.js/axe/AxeRunner.pm	Mon Nov 16 22:56:59 2026
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Accessibility Testing
 #
-# $Id: AxeRunner.pm,v 1.5 2026/08/05 14:26:04 raeburn Exp $
+# $Id: AxeRunner.pm,v 1.6 2026/11/16 22:56:59 raeburn Exp $
 #
 # The LearningOnline Network with CAPA
 #
@@ -97,7 +97,6 @@
             print $chld_in 'URL ' . $url . "\n";
             while (my $line = <$chld_out>) {
                 chomp($line);
-                last if ($line eq '');
                 if ($line eq '0') {
                     $count = 0;
                     last;
@@ -122,7 +121,7 @@
                 return ($broken,$skip);
             }
         } else {
-             return ();
+            return ();
         }
     } else {
         return (-1);




More information about the LON-CAPA-cvs mailing list