Home | History | Annotate | Download | only in tests

Lines Matching refs:REPORTER_ASSERT

59     REPORTER_ASSERT(reporter, picture->willPlayBackBitmaps());
71 REPORTER_ASSERT(reporter, !picture->willPlayBackBitmaps());
85 REPORTER_ASSERT(reporter, shader->isABitmap());
90 REPORTER_ASSERT(reporter, picture->willPlayBackBitmaps());
163 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(nullptr, &reason));
164 REPORTER_ASSERT(reporter, reason);
176 REPORTER_ASSERT(reporter, !path.isConvex());
186 REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(nullptr));
198 REPORTER_ASSERT(reporter, !path.isConvex());
208 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(nullptr));
220 REPORTER_ASSERT(reporter, !path.isConvex());
232 REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(nullptr));
249 REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(nullptr));
264 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(nullptr));
272 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(nullptr));
378 REPORTER_ASSERT(reporter, bp);
381 REPORTER_ASSERT(reporter, data);
384 REPORTER_ASSERT(reporter, 8 == gpuData->numBlocks());
401 REPORTER_ASSERT(reporter, nullptr == info0.fPicture);
402 REPORTER_ASSERT(reporter, kWidth == info0.fBounds.width() &&
404 REPORTER_ASSERT(reporter, info0.fLocalMat.isIdentity());
405 REPORTER_ASSERT(reporter, info0.fPreMat.isIdentity());
406 REPORTER_ASSERT(reporter, 0 == info0.fBounds.fLeft && 0 == info0.fBounds.fTop);
407 REPORTER_ASSERT(reporter, nullptr != info0.fPaint);
408 REPORTER_ASSERT(reporter, !info0.fIsNested && !info0.fHasNestedLayers);
410 REPORTER_ASSERT(reporter, nullptr == info1.fPicture);
411 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.width() &&
413 REPORTER_ASSERT(reporter, info1.fLocalMat.isIdentity());
414 REPORTER_ASSERT(reporter, info1.fPreMat.isIdentity());
415 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.fLeft &&
417 REPORTER_ASSERT(reporter, nullptr == info1.fPaint);
418 REPORTER_ASSERT(reporter, !info1.fIsNested &&
421 REPORTER_ASSERT(reporter, nullptr == info2.fPicture);
422 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.width() &&
424 REPORTER_ASSERT(reporter, !info2.fLocalMat.isIdentity());
425 REPORTER_ASSERT(reporter, info2.fPreMat.isIdentity());
426 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.fLeft && // translated
428 REPORTER_ASSERT(reporter, nullptr != info2.fPaint);
429 REPORTER_ASSERT(reporter, info2.fIsNested && !info2.fHasNestedLayers); // is nested
431 REPORTER_ASSERT(reporter, nullptr == info3.fPicture);
432 REPORTER_ASSERT(reporter, kWidth == info3.fBounds.width() &&
434 REPORTER_ASSERT(reporter, info3.fLocalMat.isIdentity());
435 REPORTER_ASSERT(reporter, info3.fPreMat.isIdentity());
436 REPORTER_ASSERT(reporter, 0 == info3.fBounds.fLeft && 0 == info3.fBounds.fTop);
437 REPORTER_ASSERT(reporter, info3.fPaint);
438 REPORTER_ASSERT(reporter, !info3.fIsNested && !info3.fHasNestedLayers);
440 REPORTER_ASSERT(reporter, nullptr == info4.fPicture);
441 REPORTER_ASSERT(reporter, kWidth == info4.fBounds.width() &&
443 REPORTER_ASSERT(reporter, 0 == info4.fBounds.fLeft && 0 == info4.fBounds.fTop);
444 REPORTER_ASSERT(reporter, info4.fLocalMat.isIdentity());
445 REPORTER_ASSERT(reporter, info4.fPreMat.isIdentity());
446 REPORTER_ASSERT(reporter, info4.fPaint);
447 REPORTER_ASSERT(reporter, !info4.fIsNested &&
450 REPORTER_ASSERT(reporter, child == info5.fPicture); // in a child picture
451 REPORTER_ASSERT(reporter, kWidth == info5.fBounds.width() &&
453 REPORTER_ASSERT(reporter, 0 == info5.fBounds.fLeft && 0 == info5.fBounds.fTop);
454 REPORTER_ASSERT
455 REPORTER_ASSERT(reporter, info5.fPreMat.isIdentity());
456 REPORTER_ASSERT(reporter, nullptr != info5.fPaint);
457 REPORTER_ASSERT(reporter, info5.fIsNested && !info5.fHasNestedLayers); // is nested
459 REPORTER_ASSERT(reporter, nullptr == info6.fPicture);
460 REPORTER_ASSERT(reporter, kWidth-10 == info6.fBounds.width() &&
462 REPORTER_ASSERT(reporter, 10 == info6.fBounds.fLeft && 10 == info6.fBounds.fTop);
463 REPORTER_ASSERT(reporter, info6.fLocalMat.isIdentity());
464 REPORTER_ASSERT(reporter, info6.fPreMat.isIdentity());
465 REPORTER_ASSERT(reporter, info6.fPaint);
466 REPORTER_ASSERT(reporter, !info6.fIsNested &&
469 REPORTER_ASSERT(reporter, child == info7.fPicture); // in a child picture
470 REPORTER_ASSERT(reporter, kWidth == info7.fBounds.width() &&
472 REPORTER_ASSERT(reporter, 0 == info7.fBounds.fLeft && 0 == info7.fBounds.fTop);
473 REPORTER_ASSERT(reporter, info7.fLocalMat.isIdentity());
474 REPORTER_ASSERT(reporter, info7.fPreMat.isIdentity());
475 REPORTER_ASSERT(reporter, nullptr != info7.fPaint);
476 REPORTER_ASSERT(reporter, info7.fIsNested && !info7.fHasNestedLayers); // is nested
488 REPORTER_ASSERT(reporter, !picture->hasText());
496 REPORTER_ASSERT(reporter, picture->hasText());
503 REPORTER_ASSERT(reporter, picture->hasText());
510 REPORTER_ASSERT(reporter, picture->hasText());
521 REPORTER_ASSERT(reporter, picture->hasText());
532 REPORTER_ASSERT(reporter, picture->hasText());
540 REPORTER_ASSERT(reporter, picture->hasText());
599 REPORTER_ASSERT(reporter, numSaves >= canvas.getSaveCount());
600 REPORTER_ASSERT(reporter, numSaveLayers >= canvas.getSaveLayerCount());
601 REPORTER_ASSERT(reporter, numRestores >= canvas.getRestoreCount());
648 REPORTER_ASSERT(reporter, beforeSaveCount == canvas.getSaveCount());
649 REPORTER_ASSERT(reporter, beforeMatrix == canvas.getTotalMatrix());
655 REPORTER_ASSERT(reporter, afterClip == beforeClip);
696 REPORTER_ASSERT(reporter, !copy->willPlayBackBitmaps());
705 REPORTER_ASSERT(reporter, final->willPlayBackBitmaps());
707 REPORTER_ASSERT(reporter, copy->uniqueID() != final->uniqueID());
710 REPORTER_ASSERT(reporter, !copy->willPlayBackBitmaps());
725 REPORTER_ASSERT(reporter, expectedSaveCount = canvas->getSaveCount());
737 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount());
756 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount());
777 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount());
789 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount());
790 REPORTER_ASSERT(reporter, testCanvas.getTotalMatrix().isIdentity());
898 REPORTER_ASSERT(reporter, installSuccess);
905 REPORTER_ASSERT(reporter, picture1->equals(picture2));
916 REPORTER_ASSERT(reporter, pictureFromStream.get() != nullptr);
936 REPORTER_ASSERT(reporter, referenceDigest == digest2);
963 REPORTER_ASSERT(reporter, true == nonEmpty);
964 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft);
965 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop);
966 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom);
967 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight);
974 REPORTER_ASSERT(reporter, true == nonEmpty);
975 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft);
976 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop);
977 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom);
978 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight);
985 REPORTER_ASSERT(reporter, true == nonEmpty);
986 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft);
987 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop);
988 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom);
989 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight);
995 REPORTER_ASSERT(reporter, true == nonEmpty);
996 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft);
997 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop);
998 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom);
999 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight);
1008 REPORTER_ASSERT(reporter, true == nonEmpty);
1009 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft);
1010 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop);
1011 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom);
1012 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight);
1019 REPORTER_ASSERT(reporter, true == nonEmpty);
1020 REPORTER_ASSERT(reporter, 6 == clipBounds.fLeft);
1021 REPORTER_ASSERT(reporter, 6 == clipBounds.fTop);
1022 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom);
1023 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight);
1038 REPORTER_ASSERT(reporter, picture);
1041 REPORTER_ASSERT(reporter, 0 == finalCullRect.fLeft);
1042 REPORTER_ASSERT(reporter, 0 == finalCullRect.fTop);
1043 REPORTER_ASSERT(reporter, 100 == finalCullRect.fBottom);
1044 REPORTER_ASSERT(reporter, 100 == finalCullRect.fRight);
1048 REPORTER_ASSERT(reporter, 0 == bbhCullRect.fLeft);
1049 REPORTER_ASSERT(reporter, 0 == bbhCullRect.fTop);
1050 REPORTER_ASSERT(reporter, 100 == bbhCullRect.fBottom);
1051 REPORTER_ASSERT(reporter, 100 == bbhCullRect.fRight);
1116 REPORTER_ASSERT(reporter, testCanvas.getClipCount() == 2);
1127 REPORTER_ASSERT(reporter, !childPlain->willPlayBackBitmaps()); // 0
1131 REPORTER_ASSERT(reporter, childWithBitmap->willPlayBackBitmaps()); // 1
1137 REPORTER_ASSERT(reporter, !parentPP->willPlayBackBitmaps()); // 0
1143 REPORTER_ASSERT(reporter, parentPWB->willPlayBackBitmaps()); // 1
1150 REPORTER_ASSERT(reporter, parentWBP->willPlayBackBitmaps()); // 1
1157 REPORTER_ASSERT(reporter, parentWBWB->willPlayBackBitmaps()); // 2
1168 REPORTER_ASSERT(reporter, empty->uniqueID() != SK_InvalidGenID);
1174 REPORTER_ASSERT(reporter, hasData->uniqueID() != SK_InvalidGenID);
1177 REPORTER_ASSERT(reporter, hasData->uniqueID() != empty->uniqueID());
1187 REPORTER_ASSERT(reporter, picture->hasText());
1293 REPORTER_ASSERT(reporter, replayBM.getColor(30, 30) == 0xff000080);
1294 REPORTER_ASSERT(reporter, replayBM.getColor(55, 55) == 0xff800000);
1338 REPORTER_ASSERT(r, bbh.searchCalls == 0);
1341 REPORTER_ASSERT(r, bbh.searchCalls == 1);
1353 REPORTER_ASSERT(r, mut.pixelRef()->unique());
1354 REPORTER_ASSERT(r, immut.pixelRef()->unique());
1368 REPORTER_ASSERT(r, mut.pixelRef()->unique());
1369 REPORTER_ASSERT(r, !immut.pixelRef()->unique());
1373 REPORTER_ASSERT(r, mut.pixelRef()->unique());
1374 REPORTER_ASSERT(r, immut.pixelRef()->unique());
1380 REPORTER_ASSERT(r, !rec.getRecordingCanvas());
1383 REPORTER_ASSERT(r, rec.getRecordingCanvas());
1385 REPORTER_ASSERT(r, !rec.getRecordingCanvas());
1395 REPORTER_ASSERT(r, rec.drawRect(SkRect::MakeWH(20,30), paint));
1412 REPORTER_ASSERT(r, SkToBool(deserializedPicture));
1413 REPORTER_ASSERT(r, deserializedPicture->cullRect().left() == 1);
1414 REPORTER_ASSERT(r, deserializedPicture->cullRect().top() == 2);
1415 REPORTER_ASSERT(r, deserializedPicture->cullRect().right() == 3);
1416 REPORTER_ASSERT(r, deserializedPicture->cullRect().bottom() == 4);