Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
11d44b30
Commit
11d44b30
authored
1 year ago
by
vkovtun
Browse files
Options
Downloads
Patches
Plain Diff
BIS-772: Writing JS tests.
parent
0445c315
No related branches found
No related tags found
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js
+24
-23
24 additions, 23 deletions
...bapps/openbis-v3-api-test/html/test/test-import-export.js
with
24 additions
and
23 deletions
test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js
+
24
−
23
View file @
11d44b30
...
@@ -152,29 +152,30 @@ define([ 'jquery', 'underscore', 'openbis', 'test/openbis-execute-operations', '
...
@@ -152,29 +152,30 @@ define([ 'jquery', 'underscore', 'openbis', 'test/openbis-execute-operations', '
testAction
(
c
,
fAction
,
fCheck
);
testAction
(
c
,
fAction
,
fCheck
);
});
});
// QUnit.test("executeExport()", function(assert) {
QUnit
.
test
(
"
executeExport()
"
,
function
(
assert
)
{
// var c = new common(assert, dtos);
var
c
=
new
common
(
assert
,
dtos
);
//
// var fAction = function(facade) {
var
fAction
=
function
(
facade
)
{
// var exportablePermId = new ExportablePermId(
var
exportablePermId
=
new
ExportablePermId
(
// ExportableKind.SAMPLE, new SamplePermId("200902091225616-1027"));
ExportableKind
.
SAMPLE
,
new
SamplePermId
(
"
200902091225616-1027
"
));
// var exportData = new dtos.ExportData(exportablePermId,
var
exportData
=
new
dtos
.
ExportData
(
exportablePermId
,
// new AllFields());
new
AllFields
());
//
// var exportOptions = new dtos.ExportOptions(
var
exportOptions
=
new
dtos
.
ExportOptions
(
// [ExportFormat.XLSX, ExportFormat.HTML, ExportFormat.PDF, ExportFormat.DATA],
[
ExportFormat
.
XLSX
,
ExportFormat
.
HTML
,
ExportFormat
.
PDF
,
ExportFormat
.
DATA
],
// XlsTextFormat.RICH, true, false);
XlsTextFormat
.
RICH
,
true
,
false
);
//
// return facade.executeExport(exportData, exportOptions);
return
facade
.
executeExport
(
exportData
,
exportOptions
);
// }
}
//
// var fCheck = function(facade, result) {
var
fCheck
=
function
(
facade
,
result
)
{
// // Simple smoke test in this case.
// Simple smoke test in this case.
// c.assertNotNull(result);
c
.
assertNotNull
(
result
);
// }
return
null
;
//
}
// testAction(c, fAction, fCheck);
// });
testAction
(
c
,
fAction
,
fCheck
);
});
}
}
return
function
()
{
return
function
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment