Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests #10

Merged
merged 4 commits into from Nov 29, 2015
Merged

Update tests #10

merged 4 commits into from Nov 29, 2015

Conversation

miya0001
Copy link
Contributor

.editorconfig の追加

これによりエディターのインデント等の設定を統一できます。
http://editorconfig.org/

テストファイルを移動

  • tests/以下のディレクトリにテスト用のファイルを移動しました。
  • gh-pagesにデプロイされた時にこれらのテストファイルがデプロイされないようにしました。
  • テスト用のコードをtests/tests.jsにまとめました。

テストの追加

テストのサンプルとしていくつかのテストを追加しました。

  • 地図が表示された時に#mapに追加されるべき属性値が期待通りかを確認するテストを追加しました。
  • 地図が表示された時にURLに期待通りのハッシュ値が追加されたかどうかのテストを追加しました。
  • 左上のLayersというボタンをクリックした時にダークグレーのサブメニューが表示されるかどうかのテストを追加しました。

https://github.com/miya0001/sandmaps.github.io/blob/update-tests/tests/tests.js

hfu added a commit that referenced this pull request Nov 29, 2015
@hfu hfu merged commit 35c2d1e into sandmaps:master Nov 29, 2015
@hfu
Copy link
Contributor

hfu commented Nov 29, 2015

ありがとうございます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants