Searched refs:scriptTests (Results 1 - 8 of 8) sorted by relevance

/external/skia/legacy/src/animator/
H A DSkAnimatorScript2.cpp553 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 DSkScript.cpp1667 static const SkScriptNAnswer scriptTests[] = {
1881 #define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests)
1885 SkScriptEngine engine(SkScriptEngine::ToOpType(scriptTests[index].fType));
1887 const char* script = scriptTests[index].fScript;
1889 SkASSERT(value.fType == scriptTests[index].fType);
1893 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer);
1896 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer);
1900 SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[index].fStringAnswer) == 0);
H A DSkAnimatorScript.cpp516 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 DSkScriptTokenizer.cpp1290 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...]
/external/skia/src/animator/
H A DSkAnimatorScript2.cpp553 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 DSkScript.cpp1663 static const SkScriptNAnswer scriptTests[] = {
1869 #define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests)
1873 SkScriptEngine engine(SkScriptEngine::ToOpType(scriptTests[index].fType));
1875 const char* script = scriptTests[index].fScript;
1877 SkASSERT(value.fType == scriptTests[index].fType);
1881 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer);
1884 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer);
1888 SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[index].fStringAnswer) == 0);
H A DSkAnimatorScript.cpp516 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 DSkScriptTokenizer.cpp1288 static const SkScriptNAnswer2 scriptTests[] = { variable
1477 #define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests)
1483 SkScriptEngine2 engine(scriptTests[index].fType);
1485 const char* script = scriptTests[index].fScript;
1488 SkASSERT(value.fType == scriptTests[index].fType);
1492 if (value.fOperand.fS32 != scriptTests[index].fIntAnswer)
1493 SkDEBUGF(("script '%s' == value %d != expected answer %d\n", script, value.fOperand.fS32, scriptTests[index].fIntAnswer));
1494 SkASSERT(value.fOperand.fS32 == scriptTests[index].fIntAnswer);
1497 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer);
1499 SkDEBUGF(("script '%s' == value %g != expected answer %g\n", script, value.fOperand.fScalar / (1.0f * SK_Scalar1), scriptTests[inde
[all...]

Completed in 128 milliseconds