!! test
<graph>
!! input
<graph>
{}
</graph>
<graph>
{
	"width": 100,
	"height": 200
}
</graph>
!! result
<div class="mw-graph mw-graph-always" data-graph-id="cb66159a7f0070f4faaef2f353cb67c0d178d678"></div>
<div class="mw-graph mw-graph-always" style="min-width:100px;min-height:200px" data-graph-id="35d4ad35da17b39e7e4464fd7af741dadda01a91"></div>

!! end

!! test
<graph> - error handling
!! input
<graph/>
<graph></graph>
<graph>
{fail
</graph>
<graph>
[ "foo", "bar" ]
</graph>
!! result
<p><span class="error">Empty graph data, nothing to show</span>
<span class="error">Empty graph data, nothing to show</span>
<span class="error">Syntax error</span>
<span class="error">The JSON provided is not a valid Vega JSON</span>
</p>

 !! end

!! test
<graph>
!! input
<graph>
{}
</graph>
<graph>
{
	"width": 100,
	"height": 200
}
</graph>
!! result
<div class="mw-graph mw-graph-always" data-graph-id="cb66159a7f0070f4faaef2f353cb67c0d178d678"></div>
<div class="mw-graph mw-graph-always" style="min-width:100px;min-height:200px" data-graph-id="35d4ad35da17b39e7e4464fd7af741dadda01a91"></div>
!! end

!! test
<graph> - error handling
!! input
<graph/>
<graph></graph>
<graph>
{fail
</graph>
<graph>
[ "foo", "bar" ]
</graph>
!! result
<p><span class="error">Empty graph data, nothing to show</span>
<span class="error">Empty graph data, nothing to show</span>
<span class="error">Syntax error</span>
<span class="error">The JSON provided is not a valid Vega JSON</span>
</p>

 !! end

Update tests to match parser changes
Update tests to match parser changes

Bug: T208070
Bug: T218702
Change-Id: I4d83a9851d347d7d3d650cb713739710359cf242
