Commit Graph

7754 Commits

Author SHA1 Message Date
probablycorey
b5bd7160d2 Update window spec 2013-05-22 16:44:09 -07:00
probablycorey
ce4cb0db80 Test window.closeWithoutConfirm instead of window.close 2013-05-22 16:28:13 -07:00
probablycorey
7716441bbd Update clipboard calls in edit session spec 2013-05-22 16:01:57 -07:00
probablycorey
2746d72731 Ignoring 'modal native dialogs' spec
/cc @zcbenz since we don't use sendMessageToBrowserProcess anymore
these specs aren't mocked correctly. Is there a method that we can
mock when calling remote objects?
2013-05-22 15:34:48 -07:00
probablycorey
7f083acdc4 Update atom specs 2013-05-22 15:31:59 -07:00
probablycorey
102068f9e5 Remove calls to $native
And now some specs pass!
2013-05-22 11:57:31 -07:00
probablycorey
0901e1a34c Allow spec window to store window state
It just stores window dimensions for now.
2013-05-22 11:56:33 -07:00
probablycorey
6abe6e7539 💄 2013-05-22 11:39:16 -07:00
probablycorey
f6cb33b2ea Replace resource-path flag with dev flag (assume atom is located at
~/github/atom)
2013-05-22 11:06:50 -07:00
Cheng Zhao
127e38a0b5 Don't send commands to renderer for reload and toggleDevTools menu item.
The specs window doesn't respond to window commands, so it would make
the menu items do not work.
2013-05-22 22:35:19 +08:00
Cheng Zhao
b68978ecb3 💄 2013-05-22 22:30:04 +08:00
Cheng Zhao
a381e36779 The resourcePath should also be added to 'NODE_PATH'.
The core specs rely on this to find and run specs.
2013-05-22 22:27:18 +08:00
Cheng Zhao
a5a6af7ef6 Don't prevent close for specs window. 2013-05-22 21:39:31 +08:00
Cheng Zhao
31ffe5e060 💄 2013-05-22 20:57:23 +08:00
Cheng Zhao
61f8878e05 Merge branch 'master' into atom-shell
Conflicts:
	package.json
	script/bootstrap
	spec/app/window-spec.coffee
	src/app/window.coffee
2013-05-22 20:52:42 +08:00
Cheng Zhao
9b44b15f3b Use Command+Ctrl+Alt+S for running specs. 2013-05-22 20:01:25 +08:00
Kevin Sawicki
42e1595bd7 💄 2013-05-21 18:49:27 -07:00
Kevin Sawicki
e7c08d1202 Exclude core.ignoredNames when scanning project 2013-05-21 18:46:03 -07:00
Kevin Sawicki
61b5160d81 Move apm to github org. 2013-05-21 18:24:55 -07:00
probablycorey
b58fcc5395 Specs run (but fail hardcore) 2013-05-21 17:04:00 -07:00
probablycorey
d4b146d080 Serialize window dimensions 2013-05-21 14:33:45 -07:00
probablycorey
f65fbdf7ae Don't show window until it is finished loading 2013-05-21 14:32:12 -07:00
probablycorey
8008985120 🙊 2013-05-21 14:27:58 -07:00
probablycorey
f23cb1aa79 Window state works now
The state is now stored in ~/.atom/.storage/SHA-OF-PATH. It is written
to every time it is set.
2013-05-21 14:12:15 -07:00
Garen Torikian
0caf6b5a2e Merge pull request #559 from github/remove-blank-options
Remove blank options in renderMarkdown
2013-05-21 11:36:19 -07:00
Garen Torikian
d401f7cd19 Bump roaster 2013-05-21 11:30:24 -07:00
Garen Torikian
21bf03320e Remove blank options argument from renderMarkdown 2013-05-21 10:52:50 -07:00
Garen Torikian
ecc65ff233 Bump roaster 2013-05-21 10:52:36 -07:00
probablycorey
26094a5405 Use executedFrom command line option to resolve paths 2013-05-20 16:02:06 -07:00
probablycorey
40d49373d3 Rename createAtomWindow to open 2013-05-20 14:47:36 -07:00
probablycorey
501acbc9c8 Files and folders can be opened from the command line 2013-05-20 14:46:57 -07:00
probablycorey
cf6b2f8efd Slice application name off the argument list 2013-05-20 14:46:57 -07:00
Cheng Zhao
4faf48233b 💄 2013-05-20 22:36:49 +08:00
Cheng Zhao
bf6e0752f8 Remove atom.presentModal and its helper methods.
Since all the dialogs are modal and blocking now, there is no need to
keep the atom.presentModal which is used to emulate the blocking
behavior.
2013-05-20 22:25:57 +08:00
Cheng Zhao
6e012ed24f Adopt to new open/save dialog API. 2013-05-20 22:23:27 +08:00
Cheng Zhao
1254561724 There is no need to call node-gyp externally any more.
From npm v1.2.19, the npm_config_disturl is supported to set dist-url
for node-gyp, so we don't need to interactive with node-gyp ourselves
any more.
2013-05-20 15:27:12 +08:00
Cheng Zhao
60fcb97a3e Send window commands instead of invoking window APIs directly.
For some events generated on the browser side, like reloading, closing
window, we should not handle those events directly, instead we should
send the corresponding commands to the renderer and let the renderer
deal with it.

The window.reload() is also moved to atom.reload(), because I saw things
like toggleFullScreen(), focus(), toggleDevTools() are also there.
2013-05-20 14:19:12 +08:00
Cheng Zhao
5459f1e9db Store AtomWindow instead of BrowserWindow in atomApplication.windows. 2013-05-20 12:07:04 +08:00
Cheng Zhao
0ad96ca7da Make a few window related atom.* functions work. 2013-05-20 11:55:27 +08:00
Cheng Zhao
8be54136ed Use "shell.openExternal(url)" to open links in external browsers. 2013-05-20 10:12:40 +08:00
Cheng Zhao
7cb6801ce8 Use atom-shell's "shell.moveToTrash()" to replace "$native.moveToTrash()" 2013-05-20 09:57:29 +08:00
Cheng Zhao
177ac5687f Use atom-shell's "shell.beep()" to replace "$native.beep()" 2013-05-20 09:49:34 +08:00
Cheng Zhao
1301eb0fa4 Use atom-shell's API for pasteboard operations. 2013-05-20 09:43:19 +08:00
Cheng Zhao
62caaf01d7 💄 2013-05-18 15:06:35 +08:00
Cheng Zhao
160c9b9d8e Add Edit menu. 2013-05-18 12:28:17 +08:00
Cheng Zhao
c8891c1008 Adopt to API change of dialog.showMessageBox. 2013-05-18 12:21:25 +08:00
probablycorey
153668db56 Opening a folder works! 2013-05-17 15:51:11 -07:00
Kevin Sawicki
276c6c1725 Add --silent flag to apm/npm commands 2013-05-17 15:37:26 -07:00
Kevin Sawicki
5859ae6ba7 Upgrade apm 2013-05-17 15:37:21 -07:00
probablycorey
1594231b4f Refactor AtomWindow code 2013-05-17 14:21:43 -07:00