Changeset 35250 in webkit
- Timestamp:
- Jul 19, 2008 10:29:44 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r35247 r35250 1 2008-07-19 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Cameron Zwarich. 4 5 Bug 20104: Exception in tables/mozilla_expected_failures/bugs/bug92868_1.html includes the equals operator in the quoted expression 6 <https://bugs.webkit.org/show_bug.cgi?id=20104> 7 8 To make this correct we make the dot and bracket assign nodes emit the information to indicate 9 the failure range is the dot/bracket accessor. 10 11 * kjs/grammar.y: 12 1 13 2008-07-18 Steve Falkenburg <sfalken@apple.com> 2 14 -
trunk/JavaScriptCore/kjs/grammar.y
r35245 r35250 1212 1212 BracketAccessorNode* bracket = static_cast<BracketAccessorNode*>(loc); 1213 1213 if (op == OpEqual) 1214 return new AssignBracketNode(GLOBAL_DATA, bracket->base(), bracket->subscript(), expr, locHasAssignments, exprHasAssignments, divot, divot - start, end - divot);1214 return new AssignBracketNode(GLOBAL_DATA, bracket->base(), bracket->subscript(), expr, locHasAssignments, exprHasAssignments, bracket->divot(), bracket->divot() - start, end - bracket->divot()); 1215 1215 else { 1216 1216 ReadModifyBracketNode* node = new ReadModifyBracketNode(GLOBAL_DATA, bracket->base(), bracket->subscript(), op, expr, locHasAssignments, exprHasAssignments, divot, divot - start, end - divot); … … 1222 1222 DotAccessorNode* dot = static_cast<DotAccessorNode*>(loc); 1223 1223 if (op == OpEqual) 1224 return new AssignDotNode(GLOBAL_DATA, dot->base(), dot->identifier(), expr, exprHasAssignments, d ivot, divot - start, end - divot);1224 return new AssignDotNode(GLOBAL_DATA, dot->base(), dot->identifier(), expr, exprHasAssignments, dot->divot(), dot->divot() - start, end - dot->divot()); 1225 1225 1226 1226 ReadModifyDotNode* node = new ReadModifyDotNode(GLOBAL_DATA, dot->base(), dot->identifier(), op, expr, exprHasAssignments, divot, divot - start, end - divot); -
trunk/LayoutTests/ChangeLog
r35245 r35250 1 2008-07-19 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Cameron Zwarich. 4 5 Update a few tests i filed to correct in the last patch, and add tests for 6 assignment error position. 7 8 * fast/css/font-face-descriptor-multiple-values-parsing-expected.txt: 9 * fast/js/resources/exception-expression-offset.js: 10 * http/tests/security/cross-frame-access-call-expected.txt: 11 * http/tests/security/cross-frame-access-call.html: 12 * platform/mac/tables/mozilla_expected_failures/bugs/bug92868_1-expected.txt: 13 1 14 2008-07-18 Oliver Hunt <oliver@apple.com> 2 15 -
trunk/LayoutTests/fast/css/font-face-descriptor-multiple-values-parsing-expected.txt
r34879 r35250 9 9 PASS test("font-weight", "bold, normal") is "bold, normal" 10 10 PASS test("font-weight", "100, 200, 300, 400, 500, 600, 700, 100") is "100, 200, 300, 400, 500, 600, 700, 100" 11 PASS test("font-weight", "all, 100") threw exception TypeError: Null value.12 PASS test("font-weight", "bold, normal, all") threw exception TypeError: Null value.13 PASS test("font-weight", "") threw exception TypeError: Null value.11 PASS test("font-weight", "all, 100") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 12 PASS test("font-weight", "bold, normal, all") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 13 PASS test("font-weight", "") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 14 14 PASS test("font-style", "normal") is "normal" 15 15 PASS test("font-style", "italic") is "italic" 16 16 PASS test("font-style", "normal, oblique") is "normal, oblique" 17 17 PASS test("font-style", "all") is "all" 18 PASS test("font-style", "all, normal") threw exception TypeError: Null value.19 PASS test("font-style", "italic, all") threw exception TypeError: Null value.20 PASS test("font-style", "") threw exception TypeError: Null value.18 PASS test("font-style", "all, normal") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 19 PASS test("font-style", "italic, all") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 20 PASS test("font-style", "") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 21 21 PASS test("font-variant", "normal") is "normal" 22 22 PASS test("font-variant", "small-caps") is "small-caps" 23 23 PASS test("font-variant", "normal, small-caps") is "normal, small-caps" 24 24 PASS test("font-variant", "all") is "all" 25 PASS test("font-variant", "all, normal") threw exception TypeError: Null value.26 PASS test("font-variant", "small-caps, all") threw exception TypeError: Null value.27 PASS test("font-variant", "") threw exception TypeError: Null value.25 PASS test("font-variant", "all, normal") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 26 PASS test("font-variant", "small-caps, all") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 27 PASS test("font-variant", "") threw exception TypeError: Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an object.. 28 28 PASS successfullyParsed is true 29 29 -
trunk/LayoutTests/fast/js/resources/exception-expression-offset.js
r35245 r35250 35 35 testException("for (undefined.b in [1]) {}", 5, 14, 16, "Result of expression 'undefined' [undefined] is not an object."); 36 36 testException("for (undefined[0] in [1]) {}", 5, 14, 17, "Result of expression 'undefined' [undefined] is not an object."); 37 testException("undefined.a = 5", 0, 9, 15, "Result of expression 'undefined' [undefined] is not an object."); 38 testException("undefined[0] = 5", 0, 9, 16, "Result of expression 'undefined' [undefined] is not an object."); 39 testException("({b:undefined}).b.a = 5", 0, 17, 23, "Result of expression '({b:undefined}).b' [undefined] is not an object."); 40 testException("({b:undefined}).b[0] = 5", 0, 17, 24, "Result of expression '({b:undefined}).b' [undefined] is not an object."); 41 testException("undefined.a += 5", 0, 9, 11, "Result of expression 'undefined' [undefined] is not an object."); 42 testException("undefined[0] += 5", 0, 9, 12, "Result of expression 'undefined' [undefined] is not an object."); 43 testException("({b:undefined}).b.a += 5", 0, 17, 19, "Result of expression '({b:undefined}).b' [undefined] is not an object."); 44 testException("({b:undefined}).b[0] += 5", 0, 17, 20, "Result of expression '({b:undefined}).b' [undefined] is not an object."); 37 45 38 46 var successfullyParsed = true; -
trunk/LayoutTests/http/tests/security/cross-frame-access-call-expected.txt
r34142 r35250 83 83 PASS: window.resizeBy.call(targetWindow, 0, 0); should be 'undefined' and is. 84 84 PASS: window.resizeTo.call(targetWindow, 0, 0); should be 'undefined' and is. 85 PASS: window.showModalDialog.call(targetWindow); should be 'TypeError: Undefined value' and is.85 PASS: window.showModalDialog.call(targetWindow); should be 'TypeError: Result of expression 'window.showModalDialog' [undefined] is not an object.' and is. 86 86 PASS: window.location.toString.call(targetWindow.location) should be 'undefined' and is. 87 87 -
trunk/LayoutTests/http/tests/security/cross-frame-access-call.html
r35245 r35250 57 57 58 58 // Throws a TypeError and logs to the error console 59 shouldBe("window.showModalDialog.call(targetWindow);", "'Result of expression 'window.showModalDialog' [undefined] is not an object.'");59 shouldBe("window.showModalDialog.call(targetWindow);", '"TypeError: Result of expression \'window.showModalDialog\' [undefined] is not an object."'); 60 60 61 61 // - Tests for the Location object - -
trunk/LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug92868_1-expected.txt
r35245 r35250 1 CONSOLE MESSAGE: line 14: Result of expression 'document.styleSheets[1] .disabled =' [undefined] is not an object.1 CONSOLE MESSAGE: line 14: Result of expression 'document.styleSheets[1]' [undefined] is not an object. 2 2 layer at (0,0) size 800x600 3 3 RenderView at (0,0) size 800x600
Note: See TracChangeset
for help on using the changeset viewer.