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

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

Issue 1549001: Merge 56663 - CSSPrimitiveValue::setFloatValue/setStringValue should throw an... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/WebKit/249/
Patch Set: Created 10 years, 9 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
(Empty)
1 This test ensures that setting primitive values to an inappropriate unit type wi ll throw an exception.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 25
7 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 25
8 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error : INVALID_ACCESS_ERR: DOM Exception 15.
9 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
10 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: IN VALID_ACCESS_ERR: DOM Exception 15.
11 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INV ALID_ACCESS_ERR: DOM Exception 15.
12 PASS left.getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Except ion 15.
13 PASS left.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Excep tion 15.
14 PASS left.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exceptio n 15.
15 PASS left.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exce ption 15.
16 PASS fontFamily.getStringValue() is "Hi there!"
17 PASS fontFamily.getStringValue() is "G'day!"
18 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
19 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
20 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') t hrew exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
21 PASS fontFamily.getFloatValue() threw exception Error: INVALID_ACCESS_ERR: DOM E xception 15.
22 PASS fontFamily.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
23 PASS fontFamily.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Ex ception 15.
24 PASS fontFamily.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DO M Exception 15.
25 PASS successfullyParsed is true
26
27 TEST COMPLETE
28
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/setPrimitiveValue-exceptions.html ('k') | WebCore/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698