Searched defs:scriptTests (Results 1 - 3 of 3) sorted by relevance
/external/skia/src/animator/ |
H A D | SkAnimatorScript.cpp | 516 static const SkScriptNAnswer scriptTests[] = { variable 553 #define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests) 565 SkAnimatorScript engine(*animator.fMaker, NULL, scriptTests[index].fType); 567 const char* script = scriptTests[index].fScript; 570 SkDebugf("script failed: %s\n", scriptTests[index].fScript); 571 SkASSERT(scriptTests[index].fType == SkType_Unknown); 574 SkASSERT(value.fType == scriptTests[index].fType); 578 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer); 581 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); 585 SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[inde [all...] |
H A D | SkAnimatorScript2.cpp | 553 static const SkScriptNAnswer scriptTests[] = { variable 582 #define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests) 594 SkAnimatorScript2 engine(*animator.fMaker, NULL, scriptTests[index].fType); 596 const char* script = scriptTests[index].fScript; 599 SkASSERT(scriptTests[index].fType == SkType_Unknown); 602 SkASSERT(value.fType == ToOpType(scriptTests[index].fType)); 606 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer); 609 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); 613 SkASSERT(value.fOperand.fString->equals(scriptTests[index].fStringAnswer));
|
H A D | SkScriptTokenizer.cpp | 1290 static const SkScriptNAnswer2 scriptTests[] = { variable 1489 #define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests) 1495 SkScriptEngine2 engine(scriptTests[index].fType); 1497 const char* script = scriptTests[index].fScript; 1500 SkASSERT(value.fType == scriptTests[index].fType); 1504 if (value.fOperand.fS32 != scriptTests[index].fIntAnswer) 1505 SkDEBUGF(("script '%s' == value %d != expected answer %d\n", script, value.fOperand.fS32, scriptTests[index].fIntAnswer)); 1506 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer); 1509 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); 1512 SkDEBUGF(("script '%s' == value %g != expected answer %g\n", script, value.fOperand.fScalar / (1.0f * SK_Scalar1), scriptTests[inde [all...] |
Completed in 69 milliseconds