diff options
author | P. F. Chimento <philip.chimento@gmail.com> | 2013-04-24 08:26:22 -0700 |
---|---|---|
committer | P. F. Chimento <philip.chimento@gmail.com> | 2013-04-24 08:26:22 -0700 |
commit | 51ad28a4d90a1c8691127eccbbe0b170f53ef71e (patch) | |
tree | a69b1b90cd6d32f696d5f42fa2f9706ffc2ee921 /test/smoke-tests | |
parent | bb6bd3b5dbd59d6a3bae1ad7b3878d55ceadc60b (diff) | |
parent | 60bf094db89ab098a7d56169c8657f7a26dd7590 (diff) |
Merge pull request #15 from endlessm/issues/4
Application class
Diffstat (limited to 'test/smoke-tests')
-rw-r--r-- | test/smoke-tests/app-window.js | 21 |
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); |