tao-test/app/tao/views/js/test/layout/actions/manager/test.html

54 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Layout Test - Action Manager</title>
<base href="../../../../../" />
<link rel="stylesheet" type="text/css" href="js/lib/qunit/qunit.css">
<script type="text/javascript" src="js/lib/qunit/qunit.js"></script>
<script type="text/javascript" src="js/lib/require.js"></script>
<script type="text/javascript" src="js/lib/qunit/qunit-parameterize.js"></script>
<script type="text/javascript" src="js/lib/blanket/blanket.min.js" data-cover-flag="branchTracking" data-cover-only="layout/actions.js"></script>
<script type="text/javascript">
//don't start the test now
QUnit.config.autostart = false;
//load the config
require(['/tao/ClientConfig/config'], function(){
//inject mocks
require.config({
paths: {
'layout/actions/common': 'test/layout/actions/manager/commonActionsMock'
}
});
//load the test
require(['test/layout/actions/manager/test'], function() {
//Tests loaded, run tests
QUnit.start();
});
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
<ul class="action-bar">
<li class="action" id="foo-new" title="New Foo" data-context="resource" data-action="addFoo" data-multiple="false" data-rights='{"id":"WRITE"}'>
<a href="https://foo.org/taoFoo/Foo/new">New Foo</a>
</li>
<li class="action hidden" id="foo-delete" title="Delete" data-context="instance" data-action="deleteFoo" data-multiple="false" data-rights='{"id":"WRITE"}'>
<a href="https://foo.org/taoFoo/Foo/delete">Delete</a>
</li>
<li class="action disabled" id="foo-special" title="Special" data-context="class" data-action="special" data-multiple="false" data-rights='{}'>
<a href="https://foo.org/taoFoo/Foo/special">Special</a>
</li>
</ul>
</div>
</body>
</html>