[Issue#] WGL-572
[Problem] Valid <tizen:box-icon /> element should occur as 0 or 1 time.
[Cause] Missing proper routine to check this condition.
[Solution] Add routine to check the previous occurrence.
[Verification]
* Install widget attached to issue: https://bugs.tizendev.org/jira/browse/WGL-572
* Installation should fail at parsing config.xml.
Change-Id: I9fccb31f77974cfe379d697622d57b4766d49398
ThrowMsg(Exception::ParseError,
"src attribute of box-icon element is mandatory - ignoring");
}
+ if (!m_data.m_icon.empty()) {
+ ThrowMsg(Exception::ParseError,
+ "<tizen:box-icon /> element should occur as 0 or 1 time");
+ }
m_data.m_icon = m_icon;
}