-
Notifications
You must be signed in to change notification settings - Fork 2
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
20 changed files
with
275 additions
and
33 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
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
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,69 @@ | ||
#!/bin/sh | ||
|
||
. libtest.sh | ||
. libgit.sh | ||
|
||
test_require sha256 | ||
|
||
steps ' | ||
:save-display initial-diff.screen | ||
:20 # Move to a deleted line. | ||
:view-blame | ||
:scroll-right | ||
:save-display blame-deleted-line.screen | ||
' | ||
|
||
in_work_dir create_repo_from_tgz "$base_dir/files/sha256-scala-js-benchmarks.tgz" | ||
|
||
LINES=23 test_tig show ed3277a | ||
|
||
assert_equals 'initial-diff.screen' <<EOF | ||
commit ed3277a31a5a48def23854db7eaa7356871a29cbf26ba279cb8f1e4f93cf54fb | ||
Author: Jonas Fonseca <[email protected]> | ||
AuthorDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Commit: Jonas Fonseca <[email protected]> | ||
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 --git a/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala b/commo | ||
index 4abd433..aa90cdf 100644 | ||
--- a/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | ||
+++ b/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | ||
@@ -15,7 +15,7 @@ object Benchmark { | ||
val benchmarks = js.Array[Benchmark]() | ||
val benchmarkApps = js.Array[BenchmarkApp]() | ||
- val global = js.Dynamic.global.asInstanceOf[js.Dictionary] | ||
+ val global = js.Dynamic.global.asInstanceOf[js.Dictionary[js.Any]] | ||
[diff] ed3277a31a5a48def23854db7eaa7356871a29cbf26ba279cb8f1e4f93cf54fb - li 87% | ||
EOF | ||
|
||
# Make sure that we find the commit that introduce the deleted line. | ||
assert_equals 'blame-deleted-line.screen' <<EOF | ||
0400 1x /* __ | ||
0400 2x ** ________ ___ / / ___ __ ____ Scala.js Benchmarks | ||
0400 3x ** / __/ __// _ | / / / _ | __ / // __/ (c) 2003-2013, LAMP/EPFL | ||
0400 4x ** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ (c) 2013, Jonas Fonseca | ||
0400 5x ** /____/\___/_/ |_/____/_/ | |__/ /____/ | ||
0400 6x ** |/____/ | ||
0400 7x \* | ||
0400 8x | ||
0400 9x package benchmarks | ||
0400 10x | ||
0400 11x import scala.compat.Platform | ||
0500 12x import scala.scalajs.js | ||
0500 13x | ||
0500 14x object Benchmark { | ||
0500 15x val benchmarks = js.Array[js.Function0[Unit]]() | ||
0500 16x | ||
0500 17x val global = js.Dynamic.global.asInstanceOf[js.Dictionary] | ||
0500 18x global("ScalaJSBenchmarks") = benchmarks | ||
0500 19x | ||
0500 20x def add(benchmark: Benchmark) { | ||
0500 21x benchmarks.push { | ||
[blame] common/Benchmark.scala - line 17 of 99 21% | ||
EOF |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.