Browse Source

Fixing some more unit tests

Sebastien Ros 11 năm trước cách đây
mục cha
commit
422c44e201

+ 1 - 0
Jint.Tests.Ecma/Ecma/13.2.3.cs

@@ -2,6 +2,7 @@ using Xunit;
 
 namespace Jint.Tests.Ecma
 {
+    [Trait("Category", "Pass")]
     public class Test_13_2_3 : EcmaTest
     {
         [Fact]

+ 1 - 0
Jint.Tests.Ecma/Ecma/14.1.cs

@@ -2,6 +2,7 @@ using Xunit;
 
 namespace Jint.Tests.Ecma
 {
+    [Trait("Category", "Pass")]
     public class Test_14_1 : EcmaTest
     {
         [Fact]

+ 1 - 0
Jint.Tests.Ecma/Ecma/14.cs

@@ -2,6 +2,7 @@ using Xunit;
 
 namespace Jint.Tests.Ecma
 {
+    [Trait("Category", "Pass")]
     public class Test_14 : EcmaTest
     {
         [Fact]

+ 1 - 0
Jint.Tests.Ecma/Ecma/15.1.cs

@@ -2,6 +2,7 @@ using Xunit;
 
 namespace Jint.Tests.Ecma
 {
+    [Trait("Category", "Pass")]
     public class Test_15_1 : EcmaTest
     {
         [Fact]

+ 2 - 2
Jint/Native/Function/FunctionPrototype.cs

@@ -49,7 +49,7 @@ namespace Jint.Native.Function
             }
             
             object thisArg = arguments.At(0);
-            var f = new BindFunctionInstance(Engine);
+            var f = new BindFunctionInstance(Engine) {Extensible = true};
             f.TargetFunction = target;
             f.BoundThis = thisArg;
             f.BoundArgs = arguments.Skip(1).ToArray();
@@ -69,7 +69,7 @@ namespace Jint.Native.Function
 
             var thrower = Engine.Function.ThrowTypeError;
             f.DefineOwnProperty("caller", new AccessorDescriptor(thrower, thrower) { Enumerable = false, Configurable = false }, false);
-            f.DefineOwnProperty("callee", new AccessorDescriptor(thrower, thrower) { Enumerable = false, Configurable = false }, false);
+            f.DefineOwnProperty("arguments", new AccessorDescriptor(thrower, thrower) { Enumerable = false, Configurable = false }, false);
 
 
             return f;