Adds more info regarding bug 15776 (#16315)

Related to github issue #15776
This commit is contained in:
Ricardo Quesada 2016-08-04 23:04:39 -07:00 committed by minggo
parent a5f36e70a5
commit a58323a388
2 changed files with 20 additions and 0 deletions

View File

@ -11,6 +11,13 @@
USING_NS_CC;
//
// IMPORTANT:
// THIS TEST WILL CRASH ON TextureCache::addImage()
// THIS IS NOT A BUG
// It is expected to crash there
//
bool Bug15776Layer::init()
{
if (BugsTestBase::init())
@ -24,3 +31,13 @@ bool Bug15776Layer::init()
return false;
}
std::string Bug15776Layer::title() const
{
return "Testing Issue #15776";
}
std::string Bug15776Layer::subtitle() const
{
return "It should crash on TextureCache::addImage()";
}

View File

@ -17,6 +17,9 @@ public:
CREATE_FUNC(Bug15776Layer);
virtual bool init() override;
virtual std::string title() const override;
virtual std::string subtitle() const override;
};