summaryrefslogtreecommitdiff
path: root/tests/resources
diff options
context:
space:
mode:
authorArthur Schreiber <schreiber.arthur@googlemail.com>2014-10-09 22:21:34 +0200
committerArthur Schreiber <schreiber.arthur@googlemail.com>2014-10-09 22:21:34 +0200
commit994a3006b61e0a729569770de51d5c13af6a23ed (patch)
tree6caea979dba9444c215ea6c6554419bf009dd682 /tests/resources
parent19fa9c0ca018ccc00299222e015a182e73816dc1 (diff)
downloadlibgit2-994a3006b61e0a729569770de51d5c13af6a23ed.tar.gz
Update the javascript diff driver's function pattern.
Diffstat (limited to 'tests/resources')
-rw-r--r--tests/resources/userdiff/expected/driver/diff.javascript6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/resources/userdiff/expected/driver/diff.javascript b/tests/resources/userdiff/expected/driver/diff.javascript
index 44ea9cf77..4cefe5cff 100644
--- a/tests/resources/userdiff/expected/driver/diff.javascript
+++ b/tests/resources/userdiff/expected/driver/diff.javascript
@@ -2,7 +2,7 @@ diff --git a/files/file.javascript b/files/file.javascript
index 0965b37..5391797 100644
--- a/files/file.javascript
+++ b/files/file.javascript
-@@ -4,4 +4,3 @@
+@@ -4,4 +4,3 @@ function(require, exports, module)
var Key = require("./key")
- , Direction = require("./direction")
- , Image = require("./image");
@@ -15,12 +15,12 @@ index 0965b37..5391797 100644
+ this.pixelX = 10;
+ this.pixelY = 10;
-@@ -82,3 +81,3 @@ function Player(game)
+@@ -82,3 +81,3 @@ Player.prototype.moveUp = function()
Player.prototype.moveLeft = function() {
- this.x -= 1;
+ this.x -= 5;
this.direction = Direction.LEFT;
-@@ -106,3 +105,3 @@ function Player(game)
+@@ -106,3 +105,3 @@ Player.prototype.draw = function(context)
- context.drawImage(this.image.data, offsetX, offsetY, 32, 48, this.pixelX, this.pixelY - 16, 32, 48);
+ context.drawImage(this.image.data, offsetX, offsetY, 32, 48, this.pixelX, this.pixelY, 32, 48);