<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscript/type/conversion/1" class="A" scope="wmlscript" testtype="application" type="auto" source="wmls11#6.8.1" device="both">
  <assertion>The 'typeof' operator does not perform any type conversion and returns the exact type of a variable or expression.
</assertion>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go href="<script1>#main('test','card1')"/>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<resulturl>">
<postfield name="test" value="$test"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[extern function main(myvar,next) {
	var result = 'fail';
	var type0 = 1;
	var type2 = "string";
	var type3 = true;
	var type4 = (1/0);

	if (typeof(type0) == 0 && typeof(type2) == 2 &&
	typeof(type3) == 3 && typeof(type4) == 4)
	{
		if (Lang.float())
		{
			var type1 = 1.1;
			if (typeof(type1) == 1)
			{
				result = 'pass';
			}
		}
		else
		{
			result = 'pass';
		}
	}
	WMLBrowser.setVar(myvar, result);
	WMLBrowser.go('#' + next);
	return 1;
}
]]>
    </script>
  </scripts>
</test>

