on master help sign in
Remove "shadowed fields" from tests
commit79fa633fdc2aa79489646dd08206aad2ec331f3e authorEvan Czaplicki <info@elm-lang.org> dateThu 1 Oct 2015, 18:11 (11 years ago) parent1158a97
4 files changed+4−6
tests/test-files/good-expected-js/AliasSubstitution.elm.js+1−3 tests/test-files/good-expected-js/Ports.elm.js+1−1 tests/test-files/good-expected-js/PortsWithTypeAliases.elm.js+1−1 tests/test-files/good-expected-js/Unify/NonHomogeneousRecords.elm.js+1−1
tests/test-files/good-expected-js/AliasSubstitution.elm.js+1−3
@@ -4,8 +4,6 @@ Elm.Main.make = function (_elm) {
44 _elm.Main = _elm.Main || {};
55 if (_elm.Main.values) return _elm.Main.values;
66 var _op = {};
7− var extractVec = function (v) {
8− return {_: {},x: v.x,y: v.y};
9− };
7+ var extractVec = function (v) { return {x: v.x,y: v.y};};
108 return _elm.Main.values = {_op: _op,extractVec: extractVec};
119};
tests/test-files/good-expected-js/Ports.elm.js+1−1
@@ -10,7 +10,7 @@ Elm.Main.make = function (_elm) {
1010 return {name: v.name,age: v.age};
1111 });
1212 },
13− _utils.list([{_: {},age: 42,name: "Tom"}]));
13+ _utils.list([{name: "Tom",age: 42}]));
1414 var time = Elm.Native.Port.make(_elm).outbound("time",
1515 function (v) {
1616 return v;
tests/test-files/good-expected-js/PortsWithTypeAliases.elm.js+1−1
@@ -21,6 +21,6 @@ Elm.Main.make = function (_elm) {
2121 ,y: typeof v.y === "number" ? v.y : _U.badPort("a number",
2222 v.y)} : _U.badPort("an object with fields `x`, `y`",v);
2323 });
24− var Point = F2(function (a,b) { return {_: {},x: a,y: b};});
24+ var Point = F2(function (a,b) { return {x: a,y: b};});
2525 return _elm.Main.values = {_op: _op,Point: Point};
2626};
tests/test-files/good-expected-js/Unify/NonHomogeneousRecords.elm.js+1−1
@@ -5,6 +5,6 @@ Elm.Main.make = function (_elm) {
55 if (_elm.Main.values) return _elm.Main.values;
66 var _op = {};
77 var f = function (t) { var y = t.y;var x = t.x;return t;};
8− var Thing = F2(function (a,b) { return {_: {},x: a,y: b};});
8+ var Thing = F2(function (a,b) { return {x: a,y: b};});
99 return _elm.Main.values = {_op: _op,Thing: Thing,f: f};
1010};