Title: [109489] trunk/LayoutTests
- Revision
- 109489
- Author
- [email protected]
- Date
- 2012-03-01 19:28:08 -0800 (Thu, 01 Mar 2012)
Log Message
Fix test checking for incorrect results.
Rubber stamped by Sam Weinig.
* fast/js/mozilla/strict/function-name-arity-expected.txt:
* fast/js/mozilla/strict/script-tests/function-name-arity.js:
- This tests a non-existent, non-spec-defined property.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (109488 => 109489)
--- trunk/LayoutTests/ChangeLog 2012-03-02 03:18:41 UTC (rev 109488)
+++ trunk/LayoutTests/ChangeLog 2012-03-02 03:28:08 UTC (rev 109489)
@@ -4,6 +4,16 @@
Rubber stamped by Sam Weinig.
+ * fast/js/mozilla/strict/function-name-arity-expected.txt:
+ * fast/js/mozilla/strict/script-tests/function-name-arity.js:
+ - This tests a non-existent, non-spec-defined property.
+
+2012-03-01 Gavin Barraclough <[email protected]>
+
+ Fix test checking for incorrect results.
+
+ Rubber stamped by Sam Weinig.
+
* fast/js/mozilla/strict/12.14.1-expected.txt:
* fast/js/mozilla/strict/script-tests/12.14.1.js:
- This test uses destructuring, this didn't make it into ES5.
Modified: trunk/LayoutTests/fast/js/mozilla/strict/function-name-arity-expected.txt (109488 => 109489)
--- trunk/LayoutTests/fast/js/mozilla/strict/function-name-arity-expected.txt 2012-03-02 03:18:41 UTC (rev 109488)
+++ trunk/LayoutTests/fast/js/mozilla/strict/function-name-arity-expected.txt 2012-03-02 03:28:08 UTC (rev 109489)
@@ -4,11 +4,11 @@
PASS 'use strict'; var f = fn(); delete f.name threw exception of type TypeError.
PASS var f = fn(); delete f.name is false
PASS true === true
-FAIL 'use strict'; var f = fn(); f.arity = 4; f.arity should throw an instance of TypeError
-FAIL var f = fn(); f.arity = 4; f.arity should be 3. Was 4.
+PASS 'use strict'; var f = fn(); f.arity = 4; f.arity is 4
+PASS var f = fn(); f.arity = 4; f.arity is 4
PASS true === true
-FAIL 'use strict'; var f = fn(); delete f.arity should throw an instance of TypeError
-FAIL var f = fn(); delete f.arity should be false. Was true.
+PASS 'use strict'; var f = fn(); delete f.arity is true
+PASS var f = fn(); delete f.arity is true
PASS true === true
PASSED!
PASS successfullyParsed is true
Modified: trunk/LayoutTests/fast/js/mozilla/strict/script-tests/function-name-arity.js (109488 => 109489)
--- trunk/LayoutTests/fast/js/mozilla/strict/script-tests/function-name-arity.js 2012-03-02 03:18:41 UTC (rev 109488)
+++ trunk/LayoutTests/fast/js/mozilla/strict/script-tests/function-name-arity.js 2012-03-02 03:28:08 UTC (rev 109489)
@@ -16,11 +16,13 @@
returns(false), raisesException(TypeError)),
true);
+// arity is not a spec defined property of Function.
assertEq(testLenientAndStrict('var f = fn(); f.arity = 4; f.arity',
- returns(3), raisesException(TypeError)),
+ returns(4), returns(4)),
true);
+// arity is not a spec defined property of Function.
assertEq(testLenientAndStrict('var f = fn(); delete f.arity',
- returns(false), raisesException(TypeError)),
+ returns(true), returns(true)),
true);
reportCompare(true, true);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes