Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: LayoutTests/fast/dom/setPrimitiveValue-exceptions-expected.txt

Issue 128043003: Improve core/css exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test exceptions thrown by the CSSPrimitiveValue APIs. Primitive values are curre ntly immutable (see https://bugs.webkit.org/show_bug.cgi?id=31223) 1 Test exceptions thrown by the CSSPrimitiveValue APIs. Primitive values are curre ntly immutable (see https://bugs.webkit.org/show_bug.cgi?id=31223)
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 6 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
7 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 7 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
8 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 8 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
9 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception NoModi ficationAllowedError: An attempt was made to modify an object where modification s are not allowed.. 9 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception NoModi ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only..
10 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception NoM odificationAllowedError: An attempt was made to modify an object where modificat ions are not allowed.. 10 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception NoM odificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue ': CSSPrimitiveValue objects are read-only..
11 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception NoModifica tionAllowedError: An attempt was made to modify an object where modifications ar e not allowed.. 11 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception NoModifica tionAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSP rimitiveValue objects are read-only..
12 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception NoMod ificationAllowedError: An attempt was made to modify an object where modificatio ns are not allowed.. 12 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception NoMod ificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only..
13 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception NoModi ficationAllowedError: An attempt was made to modify an object where modification s are not allowed.. 13 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception NoModi ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only..
14 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception InvalidAc cessError: A parameter or an operation was not supported by the underlying objec t.. 14 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception InvalidAc cessError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to o btain a double value..
15 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception InvalidAcc essError: A parameter or an operation was not supported by the underlying object .. 15 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception InvalidAcc essError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to ob tain a double value..
16 PASS left.getStringValue() threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object.. 16 PASS left.getStringValue() threw exception InvalidAccessError: Failed to execute 'getStringValue' on 'CSSPrimitiveValue': This object's value cannot be represen ted as a string..
17 PASS left.getCounterValue() threw exception InvalidAccessError: A parameter or a n operation was not supported by the underlying object.. 17 PASS left.getCounterValue() threw exception InvalidAccessError: Failed to execut e 'getCounterValue' on 'CSSPrimitiveValue': This object is not a counter value..
18 PASS left.getRectValue() threw exception InvalidAccessError: A parameter or an o peration was not supported by the underlying object.. 18 PASS left.getRectValue() threw exception InvalidAccessError: Failed to execute ' getRectValue' on 'CSSPrimitiveValue': This object is not a rect value..
19 PASS left.getRGBColorValue() threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object.. 19 PASS left.getRGBColorValue() threw exception InvalidAccessError: Failed to execu te 'getRGBColorValue' on 'CSSPrimitiveValue': This object is not an RGB color va lue..
20 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 20 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
21 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 21 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
22 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 22 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
23 PASS fontFamily.getStringValue() is "Times" 23 PASS fontFamily.getStringValue() is "Times"
24 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception NoModificationAllowedError: An attempt was made to modify an object wh ere modifications are not allowed.. 24 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception NoModificationAllowedError: Failed to execute 'setStringValue' on 'CSS PrimitiveValue': CSSPrimitiveValue objects are read-only..
25 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw excep tion NoModificationAllowedError: An attempt was made to modify an object where m odifications are not allowed.. 25 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw excep tion NoModificationAllowedError: Failed to execute 'setStringValue' on 'CSSPrimi tiveValue': CSSPrimitiveValue objects are read-only..
26 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception NoModificationAllowedError: An attempt was made to modify an object w here modifications are not allowed.. 26 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception NoModificationAllowedError: Failed to execute 'setStringValue' on 'CS SPrimitiveValue': CSSPrimitiveValue objects are read-only..
27 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception NoModificationAllowedError: An attempt was made to modify an object wh ere modifications are not allowed.. 27 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception NoModificationAllowedError: Failed to execute 'setStringValue' on 'CSS PrimitiveValue': CSSPrimitiveValue objects are read-only..
28 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') t hrew exception NoModificationAllowedError: An attempt was made to modify an obje ct where modifications are not allowed.. 28 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') t hrew exception NoModificationAllowedError: Failed to execute 'setStringValue' on 'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only..
29 PASS fontFamily.getFloatValue() threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object.. 29 PASS fontFamily.getFloatValue() threw exception InvalidAccessError: Failed to ex ecute 'getFloatValue' on 'CSSPrimitiveValue': Failed to obtain a double value..
30 PASS fontFamily.getCounterValue() threw exception InvalidAccessError: A paramete r or an operation was not supported by the underlying object.. 30 PASS fontFamily.getCounterValue() threw exception InvalidAccessError: Failed to execute 'getCounterValue' on 'CSSPrimitiveValue': This object is not a counter v alue..
31 PASS fontFamily.getRectValue() threw exception InvalidAccessError: A parameter o r an operation was not supported by the underlying object.. 31 PASS fontFamily.getRectValue() threw exception InvalidAccessError: Failed to exe cute 'getRectValue' on 'CSSPrimitiveValue': This object is not a rect value..
32 PASS fontFamily.getRGBColorValue() threw exception InvalidAccessError: A paramet er or an operation was not supported by the underlying object.. 32 PASS fontFamily.getRGBColorValue() threw exception InvalidAccessError: Failed to execute 'getRGBColorValue' on 'CSSPrimitiveValue': This object is not an RGB co lor value..
33 PASS fontFamily.getStringValue() is "Times" 33 PASS fontFamily.getStringValue() is "Times"
34 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 34 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
35 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 35 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
36 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 36 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
37 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception NoModi ficationAllowedError: An attempt was made to modify an object where modification s are not allowed.. 37 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception NoModi ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only..
38 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception NoM odificationAllowedError: An attempt was made to modify an object where modificat ions are not allowed.. 38 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception NoM odificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue ': CSSPrimitiveValue objects are read-only..
39 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception NoModifica tionAllowedError: An attempt was made to modify an object where modifications ar e not allowed.. 39 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception NoModifica tionAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSP rimitiveValue objects are read-only..
40 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception NoMod ificationAllowedError: An attempt was made to modify an object where modificatio ns are not allowed.. 40 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception NoMod ificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only..
41 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception NoModi ficationAllowedError: An attempt was made to modify an object where modification s are not allowed.. 41 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception NoModi ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only..
42 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception InvalidAc cessError: A parameter or an operation was not supported by the underlying objec t.. 42 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception InvalidAc cessError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to o btain a double value..
43 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception InvalidAcc essError: A parameter or an operation was not supported by the underlying object .. 43 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception InvalidAcc essError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to ob tain a double value..
44 PASS left.getStringValue() threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object.. 44 PASS left.getStringValue() threw exception InvalidAccessError: Failed to execute 'getStringValue' on 'CSSPrimitiveValue': This object's value cannot be represen ted as a string..
45 PASS left.getCounterValue() threw exception InvalidAccessError: A parameter or a n operation was not supported by the underlying object.. 45 PASS left.getCounterValue() threw exception InvalidAccessError: Failed to execut e 'getCounterValue' on 'CSSPrimitiveValue': This object is not a counter value..
46 PASS left.getRectValue() threw exception InvalidAccessError: A parameter or an o peration was not supported by the underlying object.. 46 PASS left.getRectValue() threw exception InvalidAccessError: Failed to execute ' getRectValue' on 'CSSPrimitiveValue': This object is not a rect value..
47 PASS left.getRGBColorValue() threw exception InvalidAccessError: A parameter or an operation was not supported by the underlying object.. 47 PASS left.getRGBColorValue() threw exception InvalidAccessError: Failed to execu te 'getRGBColorValue' on 'CSSPrimitiveValue': This object is not an RGB color va lue..
48 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 48 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
49 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 49 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
50 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 50 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
51 FAIL fontFamily.getStringValue() should be Times. Threw exception TypeError: Can not call method 'getStringValue' of undefined 51 FAIL fontFamily.getStringValue() should be Times. Threw exception TypeError: Can not call method 'getStringValue' of undefined
52 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception TypeError: Cannot call method 'setStringValue' of undefined. 52 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception TypeError: Cannot call method 'setStringValue' of undefined.
53 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw excep tion TypeError: Cannot call method 'setStringValue' of undefined. 53 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw excep tion TypeError: Cannot call method 'setStringValue' of undefined.
54 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception TypeError: Cannot call method 'setStringValue' of undefined. 54 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception TypeError: Cannot call method 'setStringValue' of undefined.
55 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception TypeError: Cannot call method 'setStringValue' of undefined. 55 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception TypeError: Cannot call method 'setStringValue' of undefined.
56 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') t hrew exception TypeError: Cannot call method 'setStringValue' of undefined. 56 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') t hrew exception TypeError: Cannot call method 'setStringValue' of undefined.
57 PASS fontFamily.getFloatValue() threw exception TypeError: Cannot call method 'g etFloatValue' of undefined. 57 PASS fontFamily.getFloatValue() threw exception TypeError: Cannot call method 'g etFloatValue' of undefined.
58 PASS fontFamily.getCounterValue() threw exception TypeError: Cannot call method 'getCounterValue' of undefined. 58 PASS fontFamily.getCounterValue() threw exception TypeError: Cannot call method 'getCounterValue' of undefined.
59 PASS fontFamily.getRectValue() threw exception TypeError: Cannot call method 'ge tRectValue' of undefined. 59 PASS fontFamily.getRectValue() threw exception TypeError: Cannot call method 'ge tRectValue' of undefined.
60 PASS fontFamily.getRGBColorValue() threw exception TypeError: Cannot call method 'getRGBColorValue' of undefined. 60 PASS fontFamily.getRGBColorValue() threw exception TypeError: Cannot call method 'getRGBColorValue' of undefined.
61 FAIL fontFamily.getStringValue() should be Times. Threw exception TypeError: Can not call method 'getStringValue' of undefined 61 FAIL fontFamily.getStringValue() should be Times. Threw exception TypeError: Can not call method 'getStringValue' of undefined
62 PASS successfullyParsed is true 62 PASS successfullyParsed is true
63 63
64 TEST COMPLETE 64 TEST COMPLETE
65 65
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/custom-constructors-expected.txt ('k') | LayoutTests/fast/dom/setPrimitiveValue-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698