-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
140 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#!/bin/sh | ||
|
||
. libtest.sh | ||
. libgit.sh | ||
|
||
export LINES=12 | ||
|
||
steps ' | ||
<Enter> | ||
:save-display split.screen | ||
:next | ||
:save-display split-after-next.screen | ||
:view-diff | ||
:save-display maximized.screen | ||
:next | ||
:save-display maximized-after-next.screen | ||
' | ||
|
||
tigrc <<EOF | ||
set line-graphics = utf-8 | ||
set vertical-split = horizontal | ||
EOF | ||
|
||
in_work_dir create_repo_from_tgz "$base_dir/files/scala-js-benchmarks.tgz" | ||
|
||
test_tig -n 3 | ||
|
||
assert_equals 'split.screen' <<EOF | ||
2014-03-01 17:26 -0500 Jonas Fonseca ∙ [master] WIP: Upgrade to 0.4-SNAPSHOT and | ||
2014-03-01 15:59 -0500 Jonas Fonseca ∙ Add type parameter for js.Dynamic | ||
2014-01-16 22:51 -0500 Jonas Fonseca ∙ Move classes under org.scalajs.benchmark | ||
[main] ee912870202200a0b9cf4fd86ba57243212d341e - commit 1 of 3 100% | ||
commit ee912870202200a0b9cf4fd86ba57243212d341e | ||
Refs: [master] | ||
Author: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
AuthorDate: Sat Mar 1 17:26:01 2014 -0500 | ||
Commit: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
CommitDate: Sat Mar 1 17:26:01 2014 -0500 | ||
[diff] ee912870202200a0b9cf4fd86ba57243212d341e - line 1 of 367 1% | ||
EOF | ||
|
||
assert_equals 'split-after-next.screen' <<EOF | ||
2014-03-01 17:26 -0500 Jonas Fonseca ∙ [master] WIP: Upgrade to 0.4-SNAPSHOT and | ||
2014-03-01 15:59 -0500 Jonas Fonseca ∙ Add type parameter for js.Dynamic | ||
2014-01-16 22:51 -0500 Jonas Fonseca ∙ Move classes under org.scalajs.benchmark | ||
[main] a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff - commit 2 of 3 100% | ||
commit a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff | ||
Author: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
AuthorDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Commit: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
CommitDate: Sat Mar 1 15:59:02 2014 -0500 | ||
[diff] a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff - line 1 of 24 25% | ||
EOF | ||
|
||
assert_equals 'maximized.screen' <<EOF | ||
commit a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff | ||
Author: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
AuthorDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Commit: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
CommitDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Add type parameter for js.Dynamic | ||
--- | ||
common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
[diff] a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff - line 1 of 24 41% | ||
EOF | ||
|
||
assert_equals 'maximized-after-next.screen' <<EOF | ||
commit a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff | ||
Author: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
AuthorDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Commit: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
CommitDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Add type parameter for js.Dynamic | ||
--- | ||
common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
[diff] a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff - line 2 of 24 41% | ||
EOF |
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,58 @@ | ||
#!/bin/sh | ||
# | ||
# Test main view display of index changes and interaction with the stage view. | ||
|
||
. libtest.sh | ||
. libgit.sh | ||
|
||
# Set timestamp to return from gettimeofday-like stub. | ||
export TEST_TIME_NOW=1401046937 | ||
|
||
# The default formatted date of the above timestamp. | ||
YYY_MM_DD_HH_MM="2014-05-25 19:42" | ||
|
||
export LINES=12 | ||
|
||
steps ' | ||
:enter | ||
:save-display split.screen | ||
:view-diff | ||
:save-display maximized.screen | ||
' | ||
|
||
tigrc <<EOF | ||
set vertical-split = no | ||
set vertical-split = horizontal | ||
EOF | ||
|
||
in_work_dir create_dirty_workdir | ||
|
||
test_tig | ||
|
||
assert_equals 'split.screen' <<EOF | ||
$YYY_MM_DD_HH_MM +0000 Unknown o Unstaged changes | ||
2009-02-13 23:31 +0000 A. U. Thor I [master] Initial commit | ||
[main] Unstaged changes 100% | ||
.j | 6 ++---- | ||
a | 6 ++---- | ||
b.c | 6 ++---- | ||
e/f | 6 ++---- | ||
g h | 6 ++---- | ||
5 files changed, 10 insertions(+), 20 deletions(-) | ||
[stage] Press '<Enter>' to jump to file diff - line 1 of 107 5% | ||
EOF | ||
|
||
assert_equals 'maximized.screen' <<EOF | ||
.j | 6 ++---- | ||
a | 6 ++---- | ||
b.c | 6 ++---- | ||
e/f | 6 ++---- | ||
g h | 6 ++---- | ||
5 files changed, 10 insertions(+), 20 deletions(-) | ||
diff --git a/.j b/.j | ||
index e697dfd..9d8ef3d 100644 | ||
--- a/.j | ||
[stage] Press '<Enter>' to jump to file diff - line 1 of 107 9% | ||
EOF |