Some conditions have been added to testcases for Canvas Mode

Some conditions have been added to testcases for Canvas Mode