Add test mode for selenium tests. In this mode the file input is visible, so the driver can click on it.
This commit is contained in:
parent
2503893967
commit
56e81f627a
@ -267,6 +267,7 @@ ImporterApp.prototype.GenerateMenu = function ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
var meshMenuItem = meshesGroup.AddSubItem (mesh.name, {
|
var meshMenuItem = meshesGroup.AddSubItem (mesh.name, {
|
||||||
|
id : 'meshmenuitem-' + meshIndex.toString (),
|
||||||
openCloseButton : {
|
openCloseButton : {
|
||||||
title : 'Show/Hide Details',
|
title : 'Show/Hide Details',
|
||||||
onOpen : function (contentDiv, mesh) {
|
onOpen : function (contentDiv, mesh) {
|
||||||
@ -626,7 +627,17 @@ ImporterApp.prototype.LoadFilesFromHash = function ()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var fileInput = $('#file');
|
||||||
var hash = window.location.hash;
|
var hash = window.location.hash;
|
||||||
|
if (hash == '#testmode') {
|
||||||
|
fileInput.css ('display', '');
|
||||||
|
fileInput.css ('position', 'absolute');
|
||||||
|
fileInput.css ('right', '10px');
|
||||||
|
fileInput.css ('bottom', '10px');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
fileInput.css ('display', 'none');
|
||||||
var hash = hash.substr (1, hash.length - 1);
|
var hash = hash.substr (1, hash.length - 1);
|
||||||
var fileList = hash.split (',');
|
var fileList = hash.split (',');
|
||||||
this.ProcessFiles (fileList, true);
|
this.ProcessFiles (fileList, true);
|
||||||
|
|||||||
16
website/testfiles/prism.off
Normal file
16
website/testfiles/prism.off
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
OFF
|
||||||
|
6 8 0
|
||||||
|
0.5 0 -0.5
|
||||||
|
-0.25 0.433013 -0.5
|
||||||
|
-0.25 -0.433013 -0.5
|
||||||
|
0.5 0 0.5
|
||||||
|
-0.25 0.433013 0.5
|
||||||
|
-0.25 -0.433013 0.5
|
||||||
|
3 2 1 0
|
||||||
|
3 3 4 5
|
||||||
|
3 0 1 4
|
||||||
|
3 0 4 3
|
||||||
|
3 1 2 5
|
||||||
|
3 1 5 4
|
||||||
|
3 2 0 3
|
||||||
|
3 2 3 5
|
||||||
Loading…
Reference in New Issue
Block a user