| Server IP : 162.214.74.102 / Your IP : 216.73.216.139 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/marisol/AR/test/specs/ |
Upload File : |
var viewportSize = {
width: 640,
height: 480,
}
browser.setViewportSize(viewportSize)
describe('AR.js Markers Area', function() {
//////////////////////////////////////////////////////////////////////////////
// Code Separator
//////////////////////////////////////////////////////////////////////////////
it('learns an markers-area and play it', function () {
// goes in test-runner.html
var pageURL = '/three.js/examples/test-runner.html'
browser.url(pageURL)
browser.click('#buttonMarkersAreaLearner')
browser.waitUntil(function () {
return browser.url().value.match(/learner-testrunner.html/) !== null
}, 5000, 'page hasnt loaded in 5-seconds');
// Wait for the time to learn the markers-area
browser.pause(1000);
// stop the recording
browser.click('#recordStopButton')
// wait until test-runner.html is loaded back
browser.waitUntil(function () {
return browser.url().value.match(/test-runner.html/) !== null
}, 5000, 'page hasnt loaded in 5-seconds');
// take screenshot of the result
var report = browser.checkViewport()
console.assert( report[0].isWithinMisMatchTolerance )
})
//////////////////////////////////////////////////////////////////////////////
// Code Separator
//////////////////////////////////////////////////////////////////////////////
it('uses a markers-area and enabled markers-helpers', function() {
// goes in test-runner.html
var pageURL = '/three.js/examples/test-runner.html'
browser.url(pageURL)
// toggle marker-helpers
browser.click('#buttonToggleMarkerHelpers')
// take screenshot of the result
var report = browser.checkViewport()
console.assert( report[0].isWithinMisMatchTolerance )
})
//////////////////////////////////////////////////////////////////////////////
// Code Separator
//////////////////////////////////////////////////////////////////////////////
it('resets the markers-area and enable marker-helpers', function () {
// goes in test-runner.html
var pageURL = '/three.js/examples/test-runner.html'
browser.url(pageURL)
// click button to reset markers-area
browser.click('#buttonMarkersAreaReset')
// FIXME timeout is lame
browser.pause(1000);
// click to display markers-helpers
browser.click('#buttonToggleMarkerHelpers')
// take screenshot of the result
var report = browser.checkViewport()
console.assert( report[0].isWithinMisMatchTolerance )
})
})