Hi Folks:

I am getting ready to submit a number of tests and wanted to get your feedback on format. We already agreed on a template a few weeks back. This follows on that format. Just wanted to get your view before I go forward.
See attached files.

Format 1 includes the files:
NIST_wheel_001.html
NIST_wheel_002.html
NIST_functions.js

Format 2 includes:

NIST_wheel_format2_001.html
NIST_wheel_002_format2.html
NIST_Functions_format2.js

Thanks,
Carmelo Montanez

Attachment: NIST_wheel_002_format2.html
Description: Binary data

var _actualResults = "actual";
var _expectedResults = "expected";
 
function NIST_reportResult()
{
    if (_actualResults == _expectedResults)
       document.getElementById("result").setAttribute("class", "passed");
     else          
       document.getElementById("result").setAttribute("class", "failed");
}

function NIST_wheel_001(id)
{
        var evt = document.createEvent("WheelEvent");
        evt.initWheelEvent("wheel", true, true, window,
    0, 5, 0, 0, 0, 0, null, null, 0, 0, 0);     
    var target = document.getElementById(id);
    target.dispatchEvent(evt);
    _actualResults = evt.screenX;
    _expectedResults = getExpectedResults_NIST_wheel_001();
}

function NIST_wheel_002(id)
{
        var evt = document.createEvent("WheelEvent");
        evt.initWheelEvent("wheel", true, true, window,
    0, -5, 0, 0, 0, 0, null, null, 0, 0, 0);    
    var target = document.getElementById(id);
    target.dispatchEvent(evt);
    _actualResults = evt.screenX;
    _expectedResults = getExpectedResults_NIST_wheel_002();
}

function getExpectedResults_NIST_wheel_001()
{
        return 5;
}

function getExpectedResults_NIST_wheel_002()
{
        return -5;
}
var _actualResults = "actual";
var _expectedResults = "expected";
 
function NIST_reportResult()
{
    if (_actualResults == _expectedResults)
       document.getElementById("result").setAttribute("class", "passed");
     else          
       document.getElementById("result").setAttribute("class", "failed");
}

function getExpectedResults_NIST_wheel_001()
{
        return 5;
}

function getExpectedResults_NIST_wheel_002()
{
        return -5;
}

Attachment: NIST_wheel_001.html
Description: Binary data

Attachment: NIST_wheel_001_format2.html
Description: Binary data

Attachment: NIST_wheel_002.html
Description: Binary data

Reply via email to