} if (strpos($_POST['submit'], "Check") === 0 && $code_major == 'success' && $textString !== false) { if (strlen($textString) == 0) { mark_pass("8.5", "Proper response to deleteResult"); } else { echo "<p>Error expecting empty resultScore textstring after delete found: " . htmlentities($textString) . "</p>\n"; } } if (strpos($_POST['submit'], "Test") === 0 && $code_major == 'unsupported') { mark_pass("8.6", "Handles invalid operations"); } if (strpos($_POST['submit'], "Out") === 0 && $code_major == 'failure') { mark_pass("8.7", "Handles out of range values with failure"); } if (strpos($_POST['submit'], "Non") === 0 && $code_major == 'failure') { mark_pass("8.8", "Handles non-numeric values"); } if (count($thispass) > 0) { echo "<p>This Launch Passed Test(s): "; foreach ($thispass as $key => $value) { echo $key . " "; } echo ' (<a href="lmsstatus.php" target="_new">Test Status</a>)'; echo "</p>\n"; } if (count($thisfail) > 0) { echo "<p>This Launch Failed Test(s): "; foreach ($thisfail as $key => $value) { echo $key . " "; } echo "</p>\n";
if ($height > 0) { mark_pass("7.3", "launch_presentation_height"); } else { mark_fail("7.3", "launch_presentation_height"); } } if (isset($_REQUEST['launch_presentation_width'])) { $width = intval($_REQUEST['launch_presentation_width']); if ($width > 0) { mark_pass("7.4", "launch_presentation_width"); } else { mark_fail("7.4", "launch_presentation_width"); } } if (isset($_REQUEST['lis_result_sourcedid']) && isset($_REQUEST['lis_outcome_service_url'])) { mark_pass("8.1", "Sends lis_result_sourcedid and lis_outcome_service_url"); print "<p>This launch provided information to call the LTI Outcome Service. Press\n"; $sourcedid = $_REQUEST['lis_result_sourcedid']; if (get_magic_quotes_gpc()) { $sourcedid = stripslashes($sourcedid); } print '<a href="tool_provider_outcome.php?sourcedid=' . urlencode($sourcedid); print '&url=' . urlencode($_REQUEST['lis_outcome_service_url']) . '" target="_outcome">'; print 'here to run the 8.x tests of that service.</a>.</p>' . "\n"; } if (count($thispass) > 0) { echo "<p>This Launch Passed Test(s): "; foreach ($thispass as $key => $value) { echo $key . " "; } echo ' (<a href="lmsstatus.php" target="_new">Test Status</a>)';
<?php session_start(); require_once "misc.php"; require_once "cert_util.php"; if ($_SESSION['testing'] == 'lms') { session_unset(); header("Location: " . curPageURL()); exit; } if (isset($_GET['passed'])) { $passid = $_GET['passed']; mark_pass($passid, ""); update_cert_data(); $url = curPageURL() . "?testshow=" . $passid; if (isset($_GET['debug'])) { $url = $url . '&debug=yes'; } header("Location: {$url}"); exit; } require_once "blti_util.php"; if (!isset($_SESSION['cert_consumer_key'])) { include "header.php"; echo "<p>This test environment is not yet configured.\n"; echo "please run the setup program in the same browser as you\n"; echo "will run the tests as the tests use the session for configuration\n"; echo "and results.</p>\n"; echo '<p><a href="toolsetup.php">Test Setup</a></p>' . "\n"; exit; }