Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(464)

Unified Diff: test/test_service_module.js

Issue 10500044: Make charms able to be dragged to the environment.
Patch Set: Make charms able to be dragged to the environment. Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/test_notifier_widget.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_service_module.js
=== modified file 'test/test_service_module.js'
--- test/test_service_module.js 2013-06-19 15:44:25 +0000
+++ test/test_service_module.js 2013-06-26 13:58:04 +0000
@@ -369,4 +369,20 @@
assert.deepPropertyVal(boxes, 'wordpress.model', wordpress);
});
+ it('should deploy a service on charm token drop events', function(done) {
+ d3.event._event = {dataTransfer: {
+ getData: function(name) {
+ if (name === 'dataType') {
+ return 'charm-token-drag-and-drop';
+ } else if (name === 'charmData') {
+ return '{"id": "cs:foo/bar-1"}';
+ }
+ }}};
+ var eventHandle = Y.on('initiateDeploy', function(charm) {
+ eventHandle.detach();
+ done();
+ });
+ serviceModule.canvasDropHandler();
+ });
+
});
« no previous file with comments | « test/test_notifier_widget.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b