-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pulsar-edit:master' into master
- Loading branch information
Showing
24 changed files
with
730 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+27 Bytes
(100%)
packages/language-hyperlink/grammars/ts/tree-sitter-hyperlink.wasm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
const PackageKeymapView = require("../lib/package-keymap-view.js"); | ||
let view; | ||
|
||
describe("PackageKeymapView", () => { | ||
|
||
beforeEach(() => { | ||
// Just prevent this stuff from calling through, it doesn't matter for this test | ||
spyOn(atom.packages, "getLoadedPackage").andReturn({ keymaps: [] }); | ||
|
||
view = new PackageKeymapView({ | ||
name: "test-package" | ||
}); | ||
}); | ||
|
||
it("should say a selector with no platform listed is compatible with the current one", () => { | ||
expect(view.selectorIsCompatibleWithPlatform("atom-text-editor", "win32")).toBe(true); | ||
}); | ||
|
||
it("should say a selector with a platform other than the current is not compatible", () => { | ||
expect(view.selectorIsCompatibleWithPlatform(".platform-darwin", "linux")).toBe(false); | ||
expect(view.selectorIsCompatibleWithPlatform(".platform-win32", "darwin")).toBe(false); | ||
}); | ||
|
||
it("should say a selector with the current platform listed is compatible", () => { | ||
expect(view.selectorIsCompatibleWithPlatform(".platform-linux", "linux")).toBe(true); | ||
expect(view.selectorIsCompatibleWithPlatform(".platform-win32", "win32")).toBe(true); | ||
expect(view.selectorIsCompatibleWithPlatform(".platform-darwin", "darwin")).toBe(true); | ||
}); | ||
|
||
it("should say a selector with the current platform and others listed is compatible", () => { | ||
expect(view.selectorIsCompatibleWithPlatform(".platform-linux, .platform-win32", "win32")).toBe(true); | ||
expect(view.selectorIsCompatibleWithPlatform(".platform-linux, .platform-win32", "linux")).toBe(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.