summaryrefslogtreecommitdiff
path: root/test/smoke-tests/app-window.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/smoke-tests/app-window.js')
-rw-r--r--test/smoke-tests/app-window.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/smoke-tests/app-window.js b/test/smoke-tests/app-window.js
new file mode 100644
index 0000000..ab89961
--- /dev/null
+++ b/test/smoke-tests/app-window.js
@@ -0,0 +1,21 @@
+// Copyright 2013 Endless Mobile, Inc.
+
+const Lang = imports.lang;
+const Endless = imports.gi.Endless;
+
+const TEST_APPLICATION_ID = 'com.endlessm.example.test';
+
+const TestApplication = new Lang.Class ({
+ Name: 'TestApplication',
+ Extends: Endless.Application,
+
+ vfunc_startup: function() {
+ this.parent();
+ this._window = new Endless.Window({application: this});
+ this._window.show_all();
+ },
+});
+
+let app = new TestApplication({ application_id: TEST_APPLICATION_ID,
+ flags: 0 });
+app.run(ARGV);