Fixed TTS-1829 by moving all manual TCs in tct(webapi part) into one test suite
authorwanmingx.lin <wanmingx.lin@intel.com>
Wed, 31 Jul 2013 02:25:22 +0000 (10:25 +0800)
committerwanmingx.lin <wanmingx.lin@intel.com>
Wed, 31 Jul 2013 02:25:22 +0000 (10:25 +0800)
Signed-off-by: wanmingx.lin <wanmingx.lin@intel.com>
471 files changed:
tct-manual-w3c-tests/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/Changelog [new file with mode: 0644]
tct-manual-w3c-tests/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/README [new file with mode: 0644]
tct-manual-w3c-tests/audio/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/audio/media/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/audio/media/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/audio/media/sound_5.mp3 [new file with mode: 0644]
tct-manual-w3c-tests/audio/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/audio/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/audio/w3c/audio_loop_current_media_controller.html [new file with mode: 0644]
tct-manual-w3c-tests/autogen [new file with mode: 0755]
tct-manual-w3c-tests/canvas/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/canvas/common/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/canvas/common/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/canvas/common/canvas-tests.css [new file with mode: 0644]
tct-manual-w3c-tests/canvas/common/canvas-tests.js [new file with mode: 0644]
tct-manual-w3c-tests/canvas/images/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/canvas/images/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/canvas/images/background.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.scaled.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.scaled.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.small.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.zero.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.kern.consistent.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.html [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_colorsandstyles_createlineargradient_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_arcto_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_beziercurveto_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_compositing_globalcompositeoperation_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_linestyles_linecap_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_shadows_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_state_restore_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_text_font_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/canvas_transformations_scale_001.htm [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/green-100x50.png [new file with mode: 0644]
tct-manual-w3c-tests/canvas/w3c/yellow.png [new file with mode: 0644]
tct-manual-w3c-tests/colors/CSS3Colors_color_pseudo-classes.html [new file with mode: 0644]
tct-manual-w3c-tests/colors/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/LICENSE [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a0.0-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a1.0-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t422-rgba-clip-outside-device-gamut-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t422-rgba-func-int-a.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t422-rgba-func-no-mixed-f.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t422-rgba-func-whitespace-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t423-transparent-1-a.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t423-transparent-2-a.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t424-hsl-basic-a.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t424-hsl-clip-outside-gamut-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t424-hsl-h-rotating-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t424-hsl-parsing-f.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t424-hsl-values-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t425-hsla-clip-outside-device-gamut-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t425-hsla-h-rotating-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t425-hsla-parsing-f.xht [new file with mode: 0644]
tct-manual-w3c-tests/colors/csswg/t425-hsla-values-b.xht [new file with mode: 0644]
tct-manual-w3c-tests/common/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/common/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/common/domtestcase.js [new file with mode: 0644]
tct-manual-w3c-tests/common/media.js [new file with mode: 0644]
tct-manual-w3c-tests/config.xml.crx [new file with mode: 0644]
tct-manual-w3c-tests/config.xml.wgt [new file with mode: 0644]
tct-manual-w3c-tests/configure.ac [new file with mode: 0644]
tct-manual-w3c-tests/csp/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_one.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_two.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_font_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_font_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_frame_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_frame_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_img_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_img_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_object_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_default-src_self_object_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_cross-origin_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_cross-origin_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_one.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_two.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_none_blocked_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_none_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_self_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_font-src_self_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_one.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_two.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_self_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_frame-src_self_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_cross-origin_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_one.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_two.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_none_blocked_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_none_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_self_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_img-src_self_blocked.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_object-src_cross-origin_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_one.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_two.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_object-src_self_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_sandbox_empty_event.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_sandbox_empty_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_sandbox_empty_inline.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_sandbox_empty_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_cross-origin.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_cross-origin_block_inline.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_none.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_event.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_iframe.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_ext.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_int.php [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/CanvasTest.ttf [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/blue-100x100.png [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/canvas-index.css [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/csp.js [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/green-100x100.png [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/red-100x100.png [new file with mode: 0644]
tct-manual-w3c-tests/csp/support/test.js [new file with mode: 0644]
tct-manual-w3c-tests/custom.png [new file with mode: 0644]
tct-manual-w3c-tests/extra/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/attributes/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/attributes/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/extra/attributes/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm [new file with mode: 0644]
tct-manual-w3c-tests/extra/browsers/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/browsers/the-window-object/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_alert_base.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_confirm_base.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_prompt_base.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/dom/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/dom/documents/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/dom/documents/the-document-object/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_onchange_event.html [new file with mode: 0755]
tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_oninput_event.html [new file with mode: 0755]
tct-manual-w3c-tests/extra/semantics/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/forms/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element/textarea_element_maxLength.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/grouping-content/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element/figcaption_element.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element/figure_element.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/text-level-semantics/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element/mark_element_base_usage.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/editing/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute/hidden-1a.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/semantics/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element/reversed-1a.html [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/images/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/images/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/images/blue-area.png [new file with mode: 0755]
tct-manual-w3c-tests/extra/xhtml5/images/blue-border.png [new file with mode: 0755]
tct-manual-w3c-tests/extra/xhtml5/images/blue.png [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.bmp [new file with mode: 0755]
tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.gif [new file with mode: 0755]
tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.jpg [new file with mode: 0755]
tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.png [new file with mode: 0755]
tct-manual-w3c-tests/extra/xhtml5/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/area_noref.xhtml [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/body_link.xhtml [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/body_text_00ffff.xhtml [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/html_style_in_comment.xhtml [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/img_border_percent.xhtml [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_perc.xhtml [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_pixel.xhtml [new file with mode: 0644]
tct-manual-w3c-tests/extra/xhtml5/w3c/test-area.xhtml [new file with mode: 0755]
tct-manual-w3c-tests/extra/xhtml5/w3c/test-body.xhtml [new file with mode: 0755]
tct-manual-w3c-tests/fileapi/Blob_size_type.html [new file with mode: 0644]
tct-manual-w3c-tests/fileapi/Blob_type_normal.html [new file with mode: 0644]
tct-manual-w3c-tests/fileapi/Blob_type_type.html [new file with mode: 0644]
tct-manual-w3c-tests/fileapi/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/fileapi/filesupport.js [new file with mode: 0644]
tct-manual-w3c-tests/manifest.json [new file with mode: 0644]
tct-manual-w3c-tests/pack.sh [new file with mode: 0755]
tct-manual-w3c-tests/pagevisibility/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/support/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/support/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/support/blank_page_green.htm [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/support/featuredetection.js [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/support/pagevistestharness.js [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/support/testharness.css [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/support/testharness.js [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/test_api_exists.htm [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm [new file with mode: 0644]
tct-manual-w3c-tests/pagevisibility/w3c/test_read_only_conformance.htm [new file with mode: 0644]
tct-manual-w3c-tests/resources/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/resources/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/resources/blacklist.clamshell [new file with mode: 0644]
tct-manual-w3c-tests/resources/blacklist.default [new file with mode: 0644]
tct-manual-w3c-tests/resources/blacklist.js [new file with mode: 0644]
tct-manual-w3c-tests/resources/testharness.css [new file with mode: 0644]
tct-manual-w3c-tests/resources/testharness.js [new file with mode: 0644]
tct-manual-w3c-tests/resources/testharnessreport.js [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/sandbox_007.htm [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/support/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/support/iframe_sandbox_007.htm [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/support/sandbox_helper.js [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/support/standalone-fail.htm [new file with mode: 0644]
tct-manual-w3c-tests/sandbox/w3c/support/standalone-iframe-content.htm [new file with mode: 0644]
tct-manual-w3c-tests/sessionhistory/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/sessionhistory/history_forward_basic.html [new file with mode: 0644]
tct-manual-w3c-tests/sessionhistory/support/001.html [new file with mode: 0644]
tct-manual-w3c-tests/sessionhistory/support/002.html [new file with mode: 0644]
tct-manual-w3c-tests/sessionhistory/support/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/sessionhistory/support/support.js [new file with mode: 0644]
tct-manual-w3c-tests/svg/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/svg/svg_label_inline.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_001.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_003.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_004.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_005.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_006.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_008.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_011.html [new file with mode: 0644]
tct-manual-w3c-tests/svg/w3c/foreign_content_013.html [new file with mode: 0644]
tct-manual-w3c-tests/tct-manual-w3c-tests.spec [new file with mode: 0644]
tct-manual-w3c-tests/testcase.xsl [new file with mode: 0644]
tct-manual-w3c-tests/testkit/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/testkit/web/index.html [new file with mode: 0644]
tct-manual-w3c-tests/testkit/web/jquery.js [new file with mode: 0644]
tct-manual-w3c-tests/testkit/web/manual_harness.html [new file with mode: 0644]
tct-manual-w3c-tests/testkit/web/manualharness.html [new file with mode: 0644]
tct-manual-w3c-tests/testresult.xsl [new file with mode: 0644]
tct-manual-w3c-tests/tests.css [new file with mode: 0644]
tct-manual-w3c-tests/tests.xml [new file with mode: 0644]
tct-manual-w3c-tests/text/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/text/webkit/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/text/webkit/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/text/webkit/nowrap-clear-float.html [new file with mode: 0644]
tct-manual-w3c-tests/text/webkit/pre-wrap-line-test.html [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/TouchEvent_altKey_exist.html [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/TouchEvent_ctrlKey_exist.html [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/TouchEvent_metaKey_exist.html [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/TouchEvent_shiftKey_exist.html [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/touchevent/w3c/multi-touch.html [new file with mode: 0644]
tct-manual-w3c-tests/transitions/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/delay.html [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/resources/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/resources/gradient.gif [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/resources/transition-test-helpers.js [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/shorthand-border-transitions.html [new file with mode: 0644]
tct-manual-w3c-tests/transitions/webkit/shorthand-transitions.html [new file with mode: 0644]
tct-manual-w3c-tests/ui/CSS3UI_pseudo-classes_required.html [new file with mode: 0644]
tct-manual-w3c-tests/ui/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/video/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/video/media/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/video/media/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/video/media/movie_300.mp4 [new file with mode: 0644]
tct-manual-w3c-tests/video/media/movie_300_frame_0.png [new file with mode: 0644]
tct-manual-w3c-tests/video/media/movie_5.mp4 [new file with mode: 0644]
tct-manual-w3c-tests/video/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/video/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/video/w3c/video_000.htm [new file with mode: 0644]
tct-manual-w3c-tests/video/w3c/video_007.htm [new file with mode: 0644]
tct-manual-w3c-tests/video/w3c/video_011.htm [new file with mode: 0644]
tct-manual-w3c-tests/video/w3c/video_loop_current_media_controller.html [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/ai.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/au.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/clear-fires-event.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro01.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro02.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro06.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro10.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro14.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro15.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro19.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro20.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro21.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro22.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nlro44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nltr06.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nltr10.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nltr20.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nltr21.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nltr22.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nltr44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo10.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo19.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo20.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo21.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo22.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl06.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl10.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl20.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl21.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/removeItem-fires-event.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/return-emtpy-strings.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetinterface/w3c/setItem-fires-event.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/COPYING [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/Makefile.am [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/ad.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/ae.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/am.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/ao.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/as.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/aw.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/bj.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/bk.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/bl.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/bo.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/bq.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/cc.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/d1.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/d2.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/d3.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/d7.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/d8.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/dc.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/ga.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/gb.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i1.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro01.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro23.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro26.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro27.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro28.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr23.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr26.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr27.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr28.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo23.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo26.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo27.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo28.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl23.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl26.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl27.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl28.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl43.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl44.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/i9.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/oa.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-000.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-001.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-002.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-003.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-004.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpackaging/w3c/viewb.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/viewf.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/viewg.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/viewi.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/xx.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/za.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/zc.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpackaging/w3c/zz.wgt [new file with mode: 0755]
tct-manual-w3c-tests/widgetpolicy/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/COPYING [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/HTTP_compare_hosts_in_a_case-insensitive_manner.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/Makefile.am [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_iframe.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain1.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain2.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_2.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_lro.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_ltr.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rlo.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rtl.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_any_element.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_foo.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_iframe.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_443.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_80.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_83.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain2.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_image_using_toASCII.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_script.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_ignore_whitespace.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_plus_access_element.wgt [new file with mode: 0644]
tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt [new file with mode: 0644]

diff --git a/tct-manual-w3c-tests/COPYING b/tct-manual-w3c-tests/COPYING
new file mode 100644 (file)
index 0000000..68870ce
--- /dev/null
@@ -0,0 +1,25 @@
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/tct-manual-w3c-tests/Changelog b/tct-manual-w3c-tests/Changelog
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tct-manual-w3c-tests/Makefile.am b/tct-manual-w3c-tests/Makefile.am
new file mode 100644 (file)
index 0000000..e0ef40d
--- /dev/null
@@ -0,0 +1,6 @@
+commondir = common resources testkit
+SUBDIRS = audio canvas colors csp extra fileapi pagevisibility sandbox sessionhistory svg text touchevent transitions widgetpolicy widgetinterface widgetpackaging ui video $(commondir)
+testdefdir = $(datadir)/tct-manual-w3c-tests
+dist_testdef_DATA = tests.xml
+docdir = /opt/tct-manual-w3c-tests
+dist_doc_DATA = Changelog README COPYING
diff --git a/tct-manual-w3c-tests/README b/tct-manual-w3c-tests/README
new file mode 100644 (file)
index 0000000..41f425e
--- /dev/null
@@ -0,0 +1,111 @@
+----------------------------------------------
+License
+----------------------------------------------
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Lin, Wanming <wanmingx.lin@intel.com>
+
+
+----------------------------------------------
+Introduction
+----------------------------------------------
+This test suite is for W3C manual tests.
+
+----------------------------------------------
+Test Environment
+----------------------------------------------
+For test TCs in csp(tct-manual-w3c-tests/csp/):
+
+1. Pre-install Testkit-Lite package on Host(ubuntu12.04 and ubuntu12.10).
+   sudo apt-get install python-pip
+   sudo pip install requests
+   sudo dpkg -i testkit-lite-<version>.deb
+2. Push "httpserver" into test machine.
+   sdb root on
+   sdb push httpserver /usr/bin
+   sdb shell chmod +x /usr/bin/httpserver
+3. Build the tinyweb server environment:
+   a. copy tinyweb.arm to /usr/bin
+   b. case copy to /opt/home/app/:
+      cp -a /opt/tct-manual-w3c-tests/csp /opt/home/app/opt/tct-manual-w3c-tests/csp
+      cp -a /opt/tct-manual-w3c-tests/resources /opt/home/app/opt/tct-manual-w3c-tests/resources
+   c. publish tinyweb server, port 8080 for TCs, port 8081,8082,8083 for cross-origin server:
+      tinyweb.arm -document_root /opt/home/app -listening_ports 8080&
+      tinyweb.arm -document_root /opt/home/app -listening_ports 8081&
+      tinyweb.arm -document_root /opt/home/app -listening_ports 8082&
+      tinyweb.arm -document_root /opt/home/app -listening_ports 8083&
+   d. chmod a+x cgi files:
+      find /opt/home/app/opt/tct-manual-w3c-tests/csp -name "*.php" | xargs -I {} chmod a+x {}
+4. Run the cases as "normal" user.
+
+----------------------------------------------
+Installation
+----------------------------------------------
+./autogen
+./configure prefix=/usr
+make && make install
+
+
+----------------------------------------------
+Build and Run
+----------------------------------------------
+(Suppose you only get the source code and Testkit-Lite has been set up on your test machine.
+ If you have obtained tct-manual-w3c-tests RPM packages, you can directly go to step 3 on the test machine;
+ if you have not installed Testkit-Lite, you need to install the latest version.)
+
+Steps:
+1. Prepare for building by running the following command:
+   cd tct-manual-w3c-tests
+2. Build RPM packages by running the following command:
+   pack.sh -t all
+3. Install RPM on the test machine as "root" user by running the following command:
+   rpm -ivh tct-manual-w3c-tests-<version>-<release>.<arch>.rpm
+4. Run test cases as "normal" user with the following command:
+   testkit-lite -e "WRTLauncher tct-manual-w3c-tests" -f device:"/usr/share/tct-manual-w3c-tests/tests.xml"
+
+For test TCs in widgetinterface(tct-manual-w3c-tests/widgetinterface), widgetpackaging(tct-manual-w3c-tests/widgetpackaging) and widgetpolicy(tct-manual-w3c-tests/widgetpolicy) need to do following extra steps:
+
+1. Prepare to install widget application by running the following command:
+   cd /opt/tct-manual-w3c-tests/suite_name/w3c (suite_name should be "widgetinterface", "widgetpackaging" or "widgetpolicy")
+2. Install WGT on the test machine as "root" user by running the following command:
+   wrt-installer -i <wgt>
+3. Run test cases as "normal" user with the following command:
+   wrt-launcher -s <wgt.id>
+4. Uninstall WGT from the test machine as "root" user by running the following command:
+   wrt-installer -un <wgt.id>
+
+----------------------------------------------
+Known Issues
+----------------------------------------------
+Note: If there is any defects in this test suite, please do not hesitate to contact us by the email wanmingx.lin@intel.com.
+
+----------------------------------------------
+Todo
+----------------------------------------------
+1. To fix bugs.
+2. To enable more auto cases.
+
diff --git a/tct-manual-w3c-tests/audio/Makefile.am b/tct-manual-w3c-tests/audio/Makefile.am
new file mode 100644 (file)
index 0000000..bc24e86
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c media
+audio_SCRIPTS = *
+audiodir = /opt/tct-manual-w3c-tests/audio
+EXTRA_DIST = $(audio_SCRIPTS)
diff --git a/tct-manual-w3c-tests/audio/media/COPYING b/tct-manual-w3c-tests/audio/media/COPYING
new file mode 100644 (file)
index 0000000..4efa61b
--- /dev/null
@@ -0,0 +1,15 @@
+The below media file come from: https://github.com/w3c/web-platform-tests
+sound_5.mp3
+
+
+These files are copyright by W3C and/or the author listed in the test
+file. The files are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
+
+
+
diff --git a/tct-manual-w3c-tests/audio/media/Makefile.am b/tct-manual-w3c-tests/audio/media/Makefile.am
new file mode 100644 (file)
index 0000000..1a5e83c
--- /dev/null
@@ -0,0 +1,3 @@
+audiomedia_SCRIPTS = *
+audiomediadir = /opt/tct-manual-w3c-tests/audio/media
+EXTRA_DIST = $(audiomedia_SCRIPTS)
diff --git a/tct-manual-w3c-tests/audio/media/sound_5.mp3 b/tct-manual-w3c-tests/audio/media/sound_5.mp3
new file mode 100644 (file)
index 0000000..bd20291
Binary files /dev/null and b/tct-manual-w3c-tests/audio/media/sound_5.mp3 differ
diff --git a/tct-manual-w3c-tests/audio/w3c/COPYING b/tct-manual-w3c-tests/audio/w3c/COPYING
new file mode 100644 (file)
index 0000000..6232633
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without any modification except necessary adjustment on reference path
+to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/audio/w3c/Makefile.am b/tct-manual-w3c-tests/audio/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..66f8a36
--- /dev/null
@@ -0,0 +1,3 @@
+audiow3c_SCRIPTS = *
+audiow3cdir = /opt/tct-manual-w3c-tests/audio/w3c
+EXTRA_DIST = $(audiow3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/audio/w3c/audio_loop_current_media_controller.html b/tct-manual-w3c-tests/audio/w3c/audio_loop_current_media_controller.html
new file mode 100644 (file)
index 0000000..6bbded7
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Audio Test: audio_loop_current_media_controller</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://dev.w3.org/html5/spec/single-page.html#dom-media-loop" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the audio element has a current media controller that expecting the loop attribute has no effect" />
+    <script src="../../common/media.js"></script>
+  </head>
+  <body>
+    <p>Test passes if the audio doesn't repeatly play and the text 'The user agent doesn't support media element.' does not appear anywhere on this page</p>
+    <audio id="m" controls loop mediagroup="movie">The user agent doesn't support media element.</audio>
+    <script type="text/javascript">
+        var media = document.getElementById("m");
+        var controller = new MediaController();
+        
+        media.controller = controller;
+        media.src = getAudioURI("../media/sound_5") + "?" + new Date() + Math.random();
+        media.play();
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/autogen b/tct-manual-w3c-tests/autogen
new file mode 100755 (executable)
index 0000000..62cfc6e
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# Authors:
+#         Fan, Yugang <yugang.fan@intel.com>
+#
+
+autoreconf --install
diff --git a/tct-manual-w3c-tests/canvas/Makefile.am b/tct-manual-w3c-tests/canvas/Makefile.am
new file mode 100644 (file)
index 0000000..e4d2870
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = common w3c images
+Canvas_SCRIPTS = *
+Canvasdir = /opt/tct-manual-w3c-tests/canvas
+EXTRA_DIST = $(Canvas_SCRIPTS)
diff --git a/tct-manual-w3c-tests/canvas/common/COPYING b/tct-manual-w3c-tests/canvas/common/COPYING
new file mode 100644 (file)
index 0000000..724a8f5
--- /dev/null
@@ -0,0 +1,11 @@
+These files come from
+https://github.com/w3c/web-platform-tests
+without any modification.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/canvas/common/Makefile.am b/tct-manual-w3c-tests/canvas/common/Makefile.am
new file mode 100644 (file)
index 0000000..1280f38
--- /dev/null
@@ -0,0 +1,3 @@
+common_SCRIPTS = *
+commondir = /opt/tct-manual-w3c-tests/canvas/common
+EXTRA_DIST = $(common_SCRIPTS)
diff --git a/tct-manual-w3c-tests/canvas/common/canvas-tests.css b/tct-manual-w3c-tests/canvas/common/canvas-tests.css
new file mode 100644 (file)
index 0000000..e006e81
--- /dev/null
@@ -0,0 +1,134 @@
+html.fail {
+    background: #f66;
+}
+html.pass {
+    background: #6f6;
+}
+html.needs_check {
+    background: #99f;
+}
+
+body {
+    font-size: small;
+    font-family: sans-serif;
+    color: black;
+}
+
+a:link {
+    color: #00c;
+}
+a:visited {
+    color: #808;
+}
+
+body.framed {
+    font-size: x-small;
+}
+
+h1 {
+    font-size: larger;
+    margin: 0;
+    padding-left: 0.5em;
+    text-indent: -0.5em;
+}
+
+p {
+    margin: 0;
+}
+
+p.notes {
+    margin-bottom: 0.5em;
+    font-style: italic;
+}
+
+ul {
+    margin: 0;
+    margin-bottom: 0.5em;
+    padding: 0;
+    padding-left: 1em;
+}
+
+.refs {
+    font-style: italic;
+    margin-bottom: 0.5em;
+}
+
+.refs ul {
+    display: inline;
+    margin: 0;
+    padding: 0;
+}
+
+.refs li {
+    display: inline;
+    list-style-type: none;
+    margin: 0;
+    padding: 0;
+}
+
+canvas {
+    display: none;
+    visibility: hidden;
+    border: 2px #f0f solid;
+    background: url(../images/background.png);
+}
+
+img.expected {
+    display: none;
+    border: 2px #f0f solid;
+    background: url(../images/background.png);
+}
+
+iframe {
+    border: 2px #f0f solid;
+}
+
+.output {
+    display: none;
+}
+
+.show_output .output, .needs_check .output  {
+    display: block !important;
+    visibility: visible !important;
+}
+
+.show_output #show_output {
+    display: none;
+}
+
+.resource {
+    visibility: hidden;
+    height: 0;
+}
+
+.fallback {
+    font-size: 2em;
+    font-weight: bold;
+    color: #a00;
+}
+
+
+html.minimal body {
+    color: white;
+}
+html.fail.minimal {
+    background: #f00;
+}
+html.pass.minimal {
+    background: #080;
+}
+html.needs_check.minimal {
+    background: #008;
+}
+.minimal #d {
+    display: none !important;
+}
+.minimal .expectedtext {
+    visibility: hidden !important;
+}
+#passtext, #failtext {
+    display: none;
+}
+.minimal.pass #passtext, .minimal.fail #failtext {
+    display: block;
+}
diff --git a/tct-manual-w3c-tests/canvas/common/canvas-tests.js b/tct-manual-w3c-tests/canvas/common/canvas-tests.js
new file mode 100644 (file)
index 0000000..cfdacba
--- /dev/null
@@ -0,0 +1,170 @@
+function _valToString(val)
+{
+    if (val === undefined || val === null)
+        return '[' + typeof(val) + ']';
+    return val.toString() + '[' + typeof(val) + ']';
+}
+
+var _failed = false;
+var _asserted = false;
+
+function _warn(text)
+{
+    document.getElementById('d').appendChild(document.createElement('li')).appendChild(document.createTextNode(text));
+}
+
+function _fail(text)
+{
+    _warn(text);
+    _failed = true;
+}
+
+function _assert(cond, text)
+{
+    _asserted = true;
+    if (! cond)
+        _fail('Failed assertion: ' + text);
+}
+
+function _assertSame(a, b, text_a, text_b)
+{
+    _asserted = true;
+    if (a !== b)
+        _fail('Failed assertion ' + text_a + ' === ' + text_b +
+                ' (got ' + _valToString(a) + ', expected ' + _valToString(b) + ')');
+}
+
+function _assertDifferent(a, b, text_a, text_b)
+{
+    _asserted = true;
+    if (a === b)
+        _fail('Failed assertion ' + text_a + ' !== ' + text_b +
+                ' (got ' + _valToString(a) + ', expected not ' + _valToString(b) + ')');
+}
+
+function _assertEqual(a, b, text_a, text_b)
+{
+    _asserted = true;
+    if (a != b)
+        _fail('Failed assertion ' + text_a + ' == ' + text_b +
+                ' (got ' + _valToString(a) + ', expected ' + _valToString(b) + ')');
+}
+
+function _assertMatch(a, b, text_a, text_b)
+{
+    _asserted = true;
+    if (! a.match(b))
+        _fail('Failed assertion ' + text_a + ' matches ' + text_b +
+                ' (got ' + _valToString(a) + ')');
+}
+
+
+var _manual_check = false;
+
+function _requireManualCheck()
+{
+    _manual_check = true;
+}
+
+function _crash()
+{
+    _fail('Aborted due to predicted crash');
+}
+
+function _getPixel(canvas, x,y)
+{
+    try
+    {
+        var ctx = canvas.getContext('2d');
+        var imgdata = ctx.getImageData(x, y, 1, 1);
+        return [ imgdata.data[0], imgdata.data[1], imgdata.data[2], imgdata.data[3] ];
+    }
+    catch (e)
+    {
+        // probably a security exception caused by having drawn
+        // data: URLs onto the canvas
+        _manual_check = true;
+        return undefined;
+    }
+}
+
+function _assertPixel(canvas, x,y, r,g,b,a, pos, colour)
+{
+    _asserted = true;
+    var c = _getPixel(canvas, x,y);
+    if (c && ! (c[0] == r && c[1] == g && c[2] == b && c[3] == a))
+        _fail('Failed assertion: got pixel [' + c + '] at ('+x+','+y+'), expected ['+r+','+g+','+b+','+a+']');
+}
+
+function _assertPixelApprox(canvas, x,y, r,g,b,a, pos, colour, tolerance)
+{
+    _asserted = true;
+    var c = _getPixel(canvas, x,y);
+    if (c)
+    {
+        var diff = Math.max(Math.abs(c[0]-r), Math.abs(c[1]-g), Math.abs(c[2]-b), Math.abs(c[3]-a));
+        if (diff > tolerance)
+            _fail('Failed assertion: got pixel [' + c + '] at ('+x+','+y+'), expected ['+r+','+g+','+b+','+a+'] +/- '+tolerance);
+    }
+}
+
+function _addTest(test)
+{
+    var deferred = false;
+    window.deferTest = function () { deferred = true; };
+    function endTest()
+    {
+        if (_failed) // test failed
+        {
+            document.documentElement.className += ' fail';
+            window._testStatus = ['fail', document.getElementById('d').innerHTML];
+        }
+        else if (_manual_check || !_asserted)
+        { // test case explicitly asked for a manual check, or no automatic assertions were performed
+            document.getElementById('d').innerHTML += '<li>Cannot automatically verify result';
+            document.documentElement.className += ' needs_check';
+            window._testStatus = ['check', document.getElementById('d').innerHTML];
+        }
+        else // test succeeded
+        {
+            document.getElementById('d').innerHTML += '<li>Passed';
+            document.documentElement.className += ' pass';
+            window._testStatus = ['pass', document.getElementById('d').innerHTML];
+        }
+    };
+    window.endTest = endTest;
+    window.wrapFunction = function (f)
+    {
+        return function()
+        {
+            try
+            {
+                f.apply(null, arguments);
+            }
+            catch (e)
+            {
+                _fail('Aborted with exception: ' + e.message);
+            }
+            endTest();
+        };
+    };
+
+    window.onload = function ()
+    {
+        try
+        {
+            var canvas = document.getElementById('c');
+            var ctx = canvas.getContext('2d');
+            test(canvas, ctx);
+        }
+        catch (e)
+        {
+            _fail('Aborted with exception: ' + e.message);
+            deferred = false; // cancel any deference
+        }
+
+        if (! deferred)
+            endTest();
+    };
+}
+
diff --git a/tct-manual-w3c-tests/canvas/images/COPYING b/tct-manual-w3c-tests/canvas/images/COPYING
new file mode 100644 (file)
index 0000000..5c9606a
--- /dev/null
@@ -0,0 +1,12 @@
+All test files except this COPYING and Makefile.am under this folder come from
+http://w3c-test.org/html/tests/approved/images/
+without any modification except necessary ajustment on reference path to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/canvas/images/Makefile.am b/tct-manual-w3c-tests/canvas/images/Makefile.am
new file mode 100644 (file)
index 0000000..9bf865f
--- /dev/null
@@ -0,0 +1,3 @@
+images_SCRIPTS = *
+imagesdir = /opt/tct-manual-w3c-tests/canvas/images
+EXTRA_DIST = $(images_SCRIPTS)
diff --git a/tct-manual-w3c-tests/canvas/images/background.png b/tct-manual-w3c-tests/canvas/images/background.png
new file mode 100644 (file)
index 0000000..6db6c6b
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/images/background.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.html b/tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.html
new file mode 100644 (file)
index 0000000..7330bee
--- /dev/null
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.coordinatespace</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.coordinatespace</h1>
+<p class="desc">Coordinate space goes from top-left to bottom-right</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.coordinatespace">2d.coordinatespace</a>
+</ul>
+</div>
+<p class="notes">This should not be upside down.
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="2d.coordinatespace.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#00f';
+ctx.fillRect(0, 0, 100, 50);
+ctx.fillStyle = '#0ff';
+ctx.fillRect(0, 0, 50, 25);
+_assertPixel(canvas, 25,12, 0,255,255,255, "25,12", "0,255,255,255");
+_assertPixel(canvas, 75,12, 0,0,255,255, "75,12", "0,0,255,255");
+_assertPixel(canvas, 25,37, 0,0,255,255, "25,37", "0,0,255,255");
+_assertPixel(canvas, 75,37, 0,0,255,255, "75,37", "0,0,255,255");
+_requireManualCheck(); // because we can't tell that getPixelData isn't using the wrong coordinate space too
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.png b/tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.png
new file mode 100644 (file)
index 0000000..242be92
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.scaled.html b/tct-manual-w3c-tests/canvas/w3c/2d.scaled.html
new file mode 100644 (file)
index 0000000..75757e9
--- /dev/null
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.scaled</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.scaled</h1>
+<p class="desc">CSS-scaled canvases get drawn correctly</p>
+
+<div class="refs">Spec references:
+<ul>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="50" height="25" style="width: 100px; height: 50px"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="2d.scaled.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#00f';
+ctx.fillRect(0, 0, 50, 25);
+ctx.fillStyle = '#0ff';
+ctx.fillRect(0, 0, 25, 10);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.scaled.png b/tct-manual-w3c-tests/canvas/w3c/2d.scaled.png
new file mode 100644 (file)
index 0000000..85ccb32
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/2d.scaled.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.html b/tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.html
new file mode 100644 (file)
index 0000000..8e2d7f3
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.shadow.blur.high</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.shadow.html">shadow</a>.<a href="index.2d.shadow.blur.html">blur</a>.high</h1>
+<p class="desc">Shadows look correct for large blurs</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.shadow.render">2d.shadow.render</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="2d.shadow.blur.high.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#ff0';
+ctx.fillRect(0, 0, 100, 50);
+ctx.shadowColor = '#00f';
+ctx.shadowOffsetY = 0;
+ctx.shadowBlur = 100;
+ctx.fillRect(-200, -200, 200, 400);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.png b/tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.png
new file mode 100644 (file)
index 0000000..9b4ec67
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.html b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.html
new file mode 100644 (file)
index 0000000..1534740
--- /dev/null
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.text.draw.fill.basic</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.text.html">text</a>.<a href="index.2d.text.draw.html">draw</a>.<a href="index.2d.text.draw.fill.html">fill</a>.basic</h1>
+<p class="desc">fillText draws filled text</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw">2d.text.draw</a>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw.fill">2d.text.draw.fill</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="2d.text.draw.fill.basic.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#000';
+ctx.fillRect(0, 0, 100, 50);
+ctx.fillStyle = '#0f0';
+ctx.strokeStyle = '#f00';
+ctx.font = '35px Arial, sans-serif';
+ctx.fillText('PASS', 5, 35);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.png b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.png
new file mode 100644 (file)
index 0000000..2c2b557
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.html b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.html
new file mode 100644 (file)
index 0000000..0f48693
--- /dev/null
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.text.draw.fill.maxWidth.large</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.text.html">text</a>.<a href="index.2d.text.draw.html">draw</a>.<a href="index.2d.text.draw.fill.html">fill</a>.<a href="index.2d.text.draw.fill.maxWidth.html">maxWidth</a>.large</h1>
+<p class="desc">fillText handles maxWidth correctly</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw.maxwidth">2d.text.draw.maxwidth</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="2d.text.draw.fill.maxWidth.large.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#000';
+ctx.fillRect(0, 0, 100, 50);
+ctx.fillStyle = '#0f0';
+ctx.font = '35px Arial, sans-serif';
+ctx.fillText('PASS', 5, 35, 200);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.png b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.png
new file mode 100644 (file)
index 0000000..2c2b557
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.small.html b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.small.html
new file mode 100644 (file)
index 0000000..2a3f863
--- /dev/null
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.text.draw.fill.maxWidth.small</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.text.html">text</a>.<a href="index.2d.text.draw.html">draw</a>.<a href="index.2d.text.draw.fill.html">fill</a>.<a href="index.2d.text.draw.fill.maxWidth.html">maxWidth</a>.small</h1>
+<p class="desc">fillText handles maxWidth correctly</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw.maxwidth">2d.text.draw.maxwidth</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#0f0';
+ctx.fillRect(0, 0, 100, 50);
+ctx.fillStyle = '#f00';
+ctx.font = '35px Arial, sans-serif';
+ctx.fillText('fail fail fail fail fail', -100, 35, 90);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.zero.html b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.zero.html
new file mode 100644 (file)
index 0000000..42ded11
--- /dev/null
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.text.draw.fill.maxWidth.zero</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.text.html">text</a>.<a href="index.2d.text.draw.html">draw</a>.<a href="index.2d.text.draw.fill.html">fill</a>.<a href="index.2d.text.draw.fill.maxWidth.html">maxWidth</a>.zero</h1>
+<p class="desc">fillText handles maxWidth correctly</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw.maxwidth">2d.text.draw.maxwidth</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#0f0';
+ctx.fillRect(0, 0, 100, 50);
+ctx.fillStyle = '#f00';
+ctx.font = '35px Arial, sans-serif';
+ctx.fillText('fail fail fail fail fail', 5, 35, 0);
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.html b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.html
new file mode 100644 (file)
index 0000000..885c4c8
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.text.draw.fill.rtl</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.text.html">text</a>.<a href="index.2d.text.draw.html">draw</a>.<a href="index.2d.text.draw.fill.html">fill</a>.rtl</h1>
+<p class="desc">fillText respects Right-To-Left Override characters</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw">2d.text.draw</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="2d.text.draw.fill.rtl.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#000';
+ctx.fillRect(0, 0, 100, 50);
+ctx.fillStyle = '#0f0';
+ctx.strokeStyle = '#f00';
+ctx.font = '35px Arial, sans-serif';
+ctx.fillText('\u202eFAIL \xa0 \xa0 SSAP', 5, 35);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.png b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.png
new file mode 100644 (file)
index 0000000..2c2b557
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.kern.consistent.html b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.kern.consistent.html
new file mode 100644 (file)
index 0000000..26f2237
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.text.draw.kern.consistent</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.text.html">text</a>.<a href="index.2d.text.draw.html">draw</a>.<a href="index.2d.text.draw.kern.html">kern</a>.consistent</h1>
+<p class="desc">Stroked and filled text should have exactly the same kerning so it overlaps</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw">2d.text.draw</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#0f0';
+ctx.fillRect(0, 0, 100, 50);
+ctx.fillStyle = '#f00';
+ctx.strokeStyle = '#0f0';
+ctx.lineWidth = 3;
+ctx.font = '20px Arial, sans-serif';
+ctx.fillText('VAVAVAVAVAVAVA', -50, 25);
+ctx.fillText('ToToToToToToTo', -50, 45);
+ctx.strokeText('VAVAVAVAVAVAVA', -50, 25);
+ctx.strokeText('ToToToToToToTo', -50, 45);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.html b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.html
new file mode 100644 (file)
index 0000000..e5dde18
--- /dev/null
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>Canvas test: 2d.text.draw.stroke.basic</title>
+<meta name="author" content="Philip Taylor">
+<script src="../common/canvas-tests.js"></script>
+<link rel="stylesheet" href="../common/canvas-tests.css">
+<body class="show_output">
+
+<h1><a href="index.2d.html">2d</a>.<a href="index.2d.text.html">text</a>.<a href="index.2d.text.draw.html">draw</a>.<a href="index.2d.text.draw.stroke.html">stroke</a>.basic</h1>
+<p class="desc">strokeText draws stroked text</p>
+
+<div class="refs">Spec references:
+<ul>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw">2d.text.draw</a>
+<li><a href="../annotated-spec/canvas.html#testrefs.2d.text.draw.stroke">2d.text.draw.stroke</a>
+</ul>
+</div>
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+<p class="output expectedtext">Expected output:<p><img src="2d.text.draw.stroke.basic.png" class="output expected" id="expected" alt="">
+<ul id="d"></ul>
+<script>
+_addTest(function(canvas, ctx) {
+
+ctx.fillStyle = '#000';
+ctx.fillRect(0, 0, 100, 50);
+ctx.strokeStyle = '#0f0';
+ctx.fillStyle = '#f00';
+ctx.lineWidth = 1;
+ctx.font = '35px Arial, sans-serif';
+ctx.strokeText('PASS', 5, 35);
+_requireManualCheck();
+
+
+});
+</script>
+
diff --git a/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.png b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.png
new file mode 100644 (file)
index 0000000..59e6835
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/COPYING b/tct-manual-w3c-tests/canvas/w3c/COPYING
new file mode 100644 (file)
index 0000000..3a73228
--- /dev/null
@@ -0,0 +1,11 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without modification except necessary ajustment on reference path to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/canvas/w3c/Makefile.am b/tct-manual-w3c-tests/canvas/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..370bade
--- /dev/null
@@ -0,0 +1,3 @@
+w3c_SCRIPTS = *
+w3cdir = /opt/tct-manual-w3c-tests/canvas/w3c
+EXTRA_DIST = $(w3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_colorsandstyles_createlineargradient_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_colorsandstyles_createlineargradient_001.htm
new file mode 100644 (file)
index 0000000..801f832
--- /dev/null
@@ -0,0 +1,35 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test:  createlinearGradient() with two points same</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-createlineargradient" />
+        <meta name="assert" content="If the two points in a linear gradient have identical x,y coordinates, the canvas must paint nothing." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+
+                // Start by drawing a left to right, green-to-blue linear gradient.
+                var lingrad = ctx.createLinearGradient(0, 50, 100, 50);
+                lingrad.addColorStop(0, "rgba(0, 255, 0, 1.0)");
+                lingrad.addColorStop(1, "rgba(0, 0, 255, 1.0)");
+                ctx.fillStyle = lingrad;
+                ctx.fillRect(0, 0, 100, 50);
+
+                // Nothing must be drawn if the two points in the linear gradient are the same.
+                lingrad = ctx.createLinearGradient(100, 100, 100, 100);
+                lingrad.addColorStop(0, "rgba(255, 0, 0, 1.0)");
+                lingrad.addColorStop(1, "rgba(255, 0, 0, 1.0)");
+                ctx.fillStyle = lingrad;
+                ctx.fillRect(0, 0, 300, 150);
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: If the two points in a linear gradient have identical x,y coordinates, the canvas must paint nothing.</p>
+        <p>Test passes if there is one left-to-right, green-to-blue linear gradient seen on the page and no red is seen on the page.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_arcto_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_arcto_001.htm
new file mode 100644 (file)
index 0000000..ca21a51
--- /dev/null
@@ -0,0 +1,26 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test:  arcTo() adds to subpath if same point</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-arcto" />
+        <meta name="assert" content="If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+                ctx.moveTo(0, 50);
+
+                // Since (x1, y1) and (x2, y2) are the same point, (x1, y1) must be added to the subpath, thus creating a line.
+                ctx.arcTo(100, 50, 100, 50, 10);
+                ctx.stroke();
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line.</p>
+        <p>Test passes if there is a straight, horizontal line seen on the page.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_beziercurveto_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_beziercurveto_001.htm
new file mode 100644 (file)
index 0000000..b384119
--- /dev/null
@@ -0,0 +1,35 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test:  bezierCurveTo() must ensure subpaths</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-beziercurveto" />
+        <meta name="assert" content="bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y)." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+
+                // Since the canvas has no subpaths, a virtual moveTo must be performed to (65,25) before creating the bezier.
+                ctx.bezierCurveTo(65, 25, 65, 25, 65, 65);
+                ctx.stroke();
+                ctx.beginPath();
+
+                // Since the canvas has no subpaths, a virtual moveTo must be performed to (35,25) before creating the bezier.
+                ctx.bezierCurveTo(35, 25, 35, 25, 35, 65);
+                ctx.stroke();
+                ctx.beginPath();
+
+                // Since the canvas has no subpaths, a virtual moveTo must be performed to (0,75) before creating the bezier.
+                ctx.bezierCurveTo(0, 75, 50, 150, 100, 75);
+                ctx.stroke();
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y).</p>
+        <p>Test passes if two vertical lines and one curved line are seen below in the shape of a smiley face.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_compositing_globalcompositeoperation_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_compositing_globalcompositeoperation_001.htm
new file mode 100644 (file)
index 0000000..57cd90a
--- /dev/null
@@ -0,0 +1,32 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test:  globalCompositeOperation "destination-over"</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-globalcompositeoperation" />
+        <meta name="assert" content="If the globalCompositeOperation is set to 'destination-over', display the destination image wherever the destination image is opaque." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+
+                // Source image.
+                ctx.fillStyle = "rgba(0, 0, 0, 1.0)";
+                ctx.fillRect(0, 0, 100, 50);
+
+                // Assign the globalCompositeOperation.
+                ctx.globalCompositeOperation = "destination-over";
+
+                // Destination image.
+                ctx.fillStyle = "rgba(255, 0, 0, 1.0)";
+                ctx.fillRect(0, 0, 100, 50);
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: If the globalCompositeOperation is set to "destination-over", display the destination image wherever the destination image is opaque.</p>
+        <p>Test passes if a black rectangle is seen on the page and no red is visible on the page.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_linestyles_linecap_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_linestyles_linecap_001.htm
new file mode 100644 (file)
index 0000000..1892140
--- /dev/null
@@ -0,0 +1,37 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test: "square" lineCap</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-linecap" />
+        <meta name="assert" content="The square value of lineCap means that a rectangle with the length of the line width and the width of half the line width, placed flat against the edge perpendicular to the direction of the line, must be added at the end of each line." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+
+                // Draw the first red rectangle.
+                ctx.fillStyle ="rgba(255, 0, 0, 1.0)";
+                ctx.fillRect(75, 0, 25, 50);
+
+                // Draw second red rectangle.
+                ctx.fillRect(0, 0, 25, 50);
+
+                // Draw a line with square lineCap.
+                ctx.strokeStyle = "rgba(0, 0, 0, 1.0)";
+                ctx.lineWidth = 50;
+                ctx.lineCap = "square";
+                ctx.beginPath();
+                ctx.moveTo(25, 25);
+                ctx.lineTo(75, 25);
+                ctx.stroke();
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: The square value of lineCap means that a rectangle with the length of the line width and the width of half the line width, placed flat against the edge perpendicular to the direction of the line, must be added at the end of each line.</p>
+        <p>Test passes if there is no red visible on the page and a black rectangle is seen on the page.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_shadows_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_shadows_001.htm
new file mode 100644 (file)
index 0000000..4afd93b
--- /dev/null
@@ -0,0 +1,36 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test: Shadows for linear gradients</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#shadows" />
+        <meta name="assert" content="Shadows must be drawn for linear gradients." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+
+                // Draw a red rectangle.
+                ctx.fillStyle = "rgba(255, 0, 0, 1.0)";
+                ctx.fillRect(150, 0, 100, 50);
+
+                // Set shadow styles to draw a black shadow to overlap the red rectangle.
+                ctx.shadowOffsetX = 150;
+                ctx.shadowColor = "rgba(0, 0, 0, 1.0)";
+
+                // Draw a left to right, green-to-blue linear gradient.
+                var lingrad = ctx.createLinearGradient(0, 50, 100, 50);
+                lingrad.addColorStop(0, "rgba(0, 255, 0, 1.0)");
+                lingrad.addColorStop(1, "rgba(0, 0, 255, 1.0)");
+                ctx.fillStyle = lingrad;
+                ctx.fillRect(0, 0, 100, 50);
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: Shadows must be drawn for linear gradients.</p>
+        <p>Test passes if there is one gradient filled rectangle and one black rectangle, and no red seen on the page.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_state_restore_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_state_restore_001.htm
new file mode 100644 (file)
index 0000000..e5df48f
--- /dev/null
@@ -0,0 +1,42 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test: restore() pops top entry in drawing state stack</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#the-canvas-state" />
+        <meta name="assert" content="restore() pops the top entry in the drawing state stack." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+                ctx.fillStyle = "rgba(255, 0, 0, 1.0)";
+                ctx.fillRect(0, 0, 99, 50); 
+
+                // Save colors to the stack as separate drawing states.
+                ctx.fillStyle = "rgba(255, 255, 0, 1.0)";
+                ctx.save(); 
+                ctx.fillStyle = "rgba(0, 0, 255, 1.0)";
+                ctx.save();
+                ctx.fillStyle = "rgba(0, 255, 0, 1.0)";
+                ctx.save(); 
+
+                // Modify the current fillStyle.
+                ctx.fillStyle = "rgba(255, 0, 0, 1.0)";
+
+                // Restore the drawing states previously saved and draw with them.
+                ctx.restore(); 
+                ctx.fillRect(66, 0, 33, 50); 
+                ctx.restore(); 
+                ctx.fillRect(33, 0, 33, 50);
+                ctx.restore(); 
+                ctx.fillRect(0, 0, 33, 50); 
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: restore() pops the top entry in the drawing state stack.</p>
+        <p>Test passes if a rectangle is seen on the page with three colors - ordered from left to right:  yellow, blue, green.  The test fails if this order is not shown or if any red is seen.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_text_font_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_text_font_001.htm
new file mode 100644 (file)
index 0000000..0d3c156
--- /dev/null
@@ -0,0 +1,32 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test:  Ignore property-independent style sheet syntax "inherit" in Text</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-font" />
+        <meta name="assert" content=":  Ignore 'inherit' property-independent style sheet syntax without assigning a new font value." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+
+                // Assign a valid font.
+                ctx.font = "40px Times New Roman";
+
+                // Assign property-independent style sheet syntax 'inherit' as font.
+                ctx.font = "20px inherit";
+                ctx.fillText("Test String", 5, 50);
+
+                // Assign a valid font which was used earlier.
+                ctx.font = "40px Times New Roman";
+                ctx.fillText("Test String", 5, 100);  
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description:  Ignore "inherit" property-independent style sheet syntax without assigning a new font value.</p>
+        <p>Test passes if both strings are identical in both size, style, and text.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/canvas_transformations_scale_001.htm b/tct-manual-w3c-tests/canvas/w3c/canvas_transformations_scale_001.htm
new file mode 100644 (file)
index 0000000..44fdf3a
--- /dev/null
@@ -0,0 +1,30 @@
+<!doctype HTML> 
+<html>
+    <head>
+        <title>HTML5 Canvas Test: scale() transformation</title>
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
+        <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-scale" />
+        <meta name="assert" content="The scale(x, y) method must add the scaling transformation described by the arguments to the transformation matrix." />
+        <script type="text/javascript">
+            function runTest() 
+            {
+                var canvas = document.getElementById("canvas1");
+                var ctx = canvas.getContext("2d");
+
+                // Draw a red rectangle.
+                ctx.fillStyle = "rgba(255, 0, 0, 1.0)";
+                ctx.fillRect(0, 0, 100, 50);
+
+                // Draw a black rectangle with scaling.
+                ctx.fillStyle = "rgba(0, 0, 0, 1.0)";
+                ctx.scale(2, 2);
+                ctx.fillRect(0, 0, 50, 25);
+            }
+        </script>
+    </head>
+    <body onload="runTest()">
+        <p>Description: The scale(x, y) method must add the scaling transformation described by the arguments to the transformation matrix.</p>
+        <p>Test passes if there is no red visible on the page and a black rectangle is seen on the page.</p>
+        <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/canvas/w3c/green-100x50.png b/tct-manual-w3c-tests/canvas/w3c/green-100x50.png
new file mode 100644 (file)
index 0000000..2b7577d
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/green-100x50.png differ
diff --git a/tct-manual-w3c-tests/canvas/w3c/yellow.png b/tct-manual-w3c-tests/canvas/w3c/yellow.png
new file mode 100644 (file)
index 0000000..51e8aaf
Binary files /dev/null and b/tct-manual-w3c-tests/canvas/w3c/yellow.png differ
diff --git a/tct-manual-w3c-tests/colors/CSS3Colors_color_pseudo-classes.html b/tct-manual-w3c-tests/colors/CSS3Colors_color_pseudo-classes.html
new file mode 100644 (file)
index 0000000..9fe4426
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        haox.li <haox.li@intel.com>
+        Cui, Jieqiong <jieqiongx.cui@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSS3 Colors Test: CSS3Colors_color_pseudo-classes</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2011/REC-css3-color-20110607/#sample" />
+    <meta name="flags" content="interact" />
+    <meta name="assert" content="Check the color effect in Pseudo-classes on test div" />
+    <style>
+        #testDiv a {
+            font-size: 2em;
+        }
+        #testDiv a:link {
+            color: black;
+        }
+        #testDiv a:visited {
+            color: blue;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if "Click Me" is black color before click, and become blue after click</p>
+    <div id="testDiv"><a href="#">Click Me</a></div>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/Makefile.am b/tct-manual-w3c-tests/colors/Makefile.am
new file mode 100644 (file)
index 0000000..d55ad6b
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = csswg
+colors_SCRIPTS = *
+colorsdir = /opt/tct-manual-w3c-tests/colors
+EXTRA_DIST = $(colors_SCRIPTS)
diff --git a/tct-manual-w3c-tests/colors/csswg/COPYING b/tct-manual-w3c-tests/colors/csswg/COPYING
new file mode 100644 (file)
index 0000000..fd686d0
--- /dev/null
@@ -0,0 +1,11 @@
+This test suite comes from
+https://github.com/w3c/csswg-test
+without any modification except necessary adjustment on reference path to test harness
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/colors/csswg/LICENSE b/tct-manual-w3c-tests/colors/csswg/LICENSE
new file mode 100644 (file)
index 0000000..d47f50c
--- /dev/null
@@ -0,0 +1,41 @@
+The tests in this directory are Copyright (c) 2007-2008, The
+Mozilla Foundation.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or
+without modification, are permitted provided that the following
+conditions are met:
+
+    * Redistributions of source code must retain the above
+      copyright notice, this list of conditions and the following
+      disclaimer.
+
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials
+      provided with the distribution.
+
+    * Neither the name of the The Mozilla Foundation nor the
+      names of its contributors may be used to endorse or promote
+      products derived from this software without specific prior
+      written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+
+Alternatively, these tests may be used under the terms of the W3C
+Document License at
+http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231
+in which case the provisions of the W3C Document License are
+applicable instead of those above.
diff --git a/tct-manual-w3c-tests/colors/csswg/Makefile.am b/tct-manual-w3c-tests/colors/csswg/Makefile.am
new file mode 100644 (file)
index 0000000..f68f9c8
--- /dev/null
@@ -0,0 +1,3 @@
+colorsw3c_SCRIPTS = *.xht
+colorsw3cdir = /opt/tct-manual-w3c-tests/colors/csswg
+EXTRA_DIST = $(colorsw3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a0.0-b.xht b/tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a0.0-b.xht
new file mode 100644 (file)
index 0000000..331a598
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: rgba() colors</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#rgba-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Alpha components of rgba() colors less than 0 are clamped to 0." />
+               <style type="text/css"><![CDATA[
+                       html, body { background: white; }
+                       #one { color: rgb(0, 0, 0); }
+                       #two { color: rgba(0, 0, 0, -0.0); }
+                       #three { color: rgba(0, 0, 0, -0.1); }
+                       #four { color: rgba(0, 0, 0, -0.9); }
+                       #five { color: rgba(0, 0, 0, -30); }
+                       #six { color: rgba(0, 0, 0, -7439.79); }
+               ]]></style>
+       </head>
+       <body>
+               <p id="one">This should be the only text visible on this page.</p>
+               <p id="two">This text should NOT be visible.</p>
+               <p id="three">This text should NOT be visible.</p>
+               <p id="four">This text should NOT be visible.</p>
+               <p id="five">This text should NOT be visible.</p>
+               <p id="six">This text should NOT be visible.</p>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a1.0-b.xht b/tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a1.0-b.xht
new file mode 100644 (file)
index 0000000..4ad5240
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: rgba() colors</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#rgba-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Alpha components of rgba() colors greater than 1 are clamped to 1." />
+               <style type="text/css"><![CDATA[
+                       html, body { background: white; }
+                       #two, #three, #four, #five, #six { color: rgba(0, 0, 0, 0); }
+
+                       #two { color: rgba(0, 0, 0, 1.0); }
+                       #three { color: rgba(0, 0, 0, 1.1); }
+                       #four { color: rgba(0, 0, 0, 1.9); }
+                       #five { color: rgba(0, 0, 0, 30); }
+                       #six { color: rgba(0, 0, 0, 7439.79); }
+               ]]></style>
+       </head>
+       <body>
+               <p id="one">There should be six lines of text on this page, all the same color. [1 of 6]</p>
+               <p id="two">There should be six lines of text on this page, all the same color. [2 of 6]</p>
+               <p id="three">There should be six lines of text on this page, all the same color. [3 of 6]</p>
+               <p id="four">There should be six lines of text on this page, all the same color. [4 of 6]</p>
+               <p id="five">There should be six lines of text on this page, all the same color. [5 of 6]</p>
+               <p id="six">There should be six lines of text on this page, all the same color. [6 of 6]</p>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t422-rgba-clip-outside-device-gamut-b.xht b/tct-manual-w3c-tests/colors/csswg/t422-rgba-clip-outside-device-gamut-b.xht
new file mode 100644 (file)
index 0000000..61cb3e6
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: rgba() clipping outside device gamut</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#rgba-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Test clipping of rgba() values outside the device gamut." />
+               <style type="text/css"><![CDATA[
+
+               body { background: white; color: black; }
+               table { border-spacing: 0 2px; padding: 0; border: none; }
+               td { border: none; padding: 0; height: 1.2em; }
+
+               ]]></style>
+       </head>
+       <body>
+
+       <p><strong>WARNING: This test assumes that the device gamut is sRGB
+       (as it will be for many CRT monitors).</strong></p>
+
+       <p>Every row in this table should have both columns the same color:</p>
+
+       <table>
+               <tr>
+                       <th style="background:white; color: black">Column 1</th>
+                       <th style="background:black; color: white">Column 2</th>
+               </tr>
+               <tr>
+                       <td style="background: rgba(-30, 500, -1, 0.6)">&nbsp;</td>
+                       <td style="background: rgb(102, 255, 102)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: rgba(-260, -254, 300, 0.4)">&nbsp;</td>
+                       <td style="background: rgb(153, 153, 255)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: rgba(-254, 256, 0, 0.6)">&nbsp;</td>
+                       <td style="background: rgb(102, 255, 102)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: rgba(-10%, 200%, -1%, 0.4)">&nbsp;</td>
+                       <td style="background: rgb(153, 255, 153)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: rgba(-110%, 130%, -99%, 0.6)">&nbsp;</td>
+                       <td style="background: rgb(102, 255, 102)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: rgba(-99%, 101%, 0%, 0.4)">&nbsp;</td>
+                       <td style="background: rgb(153, 255, 153)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: rgba(50, -30, 255, 0.6)">&nbsp;</td>
+                       <td style="background: rgb(132, 102, 255)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: rgba(0, 50, 350, 0.4)">&nbsp;</td>
+                       <td style="background: rgb(153, 173, 255)">&nbsp;</td>
+               </tr>
+       </table>
+
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-int-a.xht b/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-int-a.xht
new file mode 100644 (file)
index 0000000..bb1907b
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: rgba() colors</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#rgba-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Test that rgba() values produce correct colors." />
+               <style type="text/css"><![CDATA[
+               #one { color: rgba(0, 0, 0, 1.0); background: rgba(255, 255, 255, 1.0); }
+               #two { color: rgba(255, 255, 255, 1.0); background: rgba(0, 0, 0, 1.0); }
+               #three { color: rgba(255, 0, 0, 1.0); }
+               #four { color: rgba(0, 255, 0, 1.0); }
+               #five { color: rgba(0, 0, 255, 1.0); }
+               ]]></style>
+       </head>
+       <body>
+               <p id="one">This should be black text on a white background.</p>
+               <p id="two">This should be white text on a black background.</p>
+               <p id="three">This text should be red.</p>
+               <p id="four">This text should be green.</p>
+               <p id="five">This text should be blue.</p>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-no-mixed-f.xht b/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-no-mixed-f.xht
new file mode 100644 (file)
index 0000000..b5bc893
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: no mixed rgba() values</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#rgba-color" />
+               <meta name="flags" content="invalid" />
+               <meta name="assert" content="Test that rgba() values are only accepted when all integers or all percentages." />
+               <style type="text/css"><![CDATA[
+                       p { color: green; }
+                       p { color: rgba(255, 0, 0%, 1.0); }
+                       p { color: rgba(100%, 0%, 0, 1.0); }
+                       p { color: rgba(100%, 1, 0, 1.0); }
+                       p { color: rgba(255, 1%, 0%, 1.0); }
+                       p { color: rgba(99%, 0%, 0, 1.0); }
+                       p { color: rgba(0%, 0, 0%, 1.0); }
+                       p { color: rgba(0, 0%, 0%, 1.0); }
+                       p { color: rgba(254, 255%, 0, 1.0); }
+               ]]></style>
+       </head>
+       <body>
+               <p>This text should be green.</p>
+
+               <div>Note: the rules tested by this test may be changed in
+               future levels of the CSS Color Module.</div>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-whitespace-b.xht b/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-whitespace-b.xht
new file mode 100644 (file)
index 0000000..f9cc602
--- /dev/null
@@ -0,0 +1,38 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: whitespace in rgba() values</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#rgba-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Test that whitespace is allowed within rgba() functions." />
+               <style type="text/css"><![CDATA[
+               html, body { background: black; }
+               #one { color: rgba(  0,
+255            ,0          ,1.0   ); }
+               #two { color: rgba(0
+,255           
+,0
+,          1.0); }
+               #three { color: rgba(     0   ,   255             ,                     0 ,              1.0); }
+
+               #four { color: rgba(  0%,
+100%           ,0%                   ,1.0    ); }
+               #five { color: rgba(0%
+,100%          
+,0%
+,          1.0); }
+               #six { color: rgba(     0%   ,   100%             ,                     0% ,
+     1.0); }
+               ]]></style>
+       </head>
+       <body>
+               <p id="one">This text should be green.</p>
+               <p id="two">This text should be green.</p>
+               <p id="three">This text should be green.</p>
+               <p id="four">This text should be green.</p>
+               <p id="five">This text should be green.</p>
+               <p id="six">This text should be green.</p>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t423-transparent-1-a.xht b/tct-manual-w3c-tests/colors/csswg/t423-transparent-1-a.xht
new file mode 100644 (file)
index 0000000..ee9b5a5
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: transparent</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#transparent" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="That the 'transparent' color keyword makes colors transparent." />
+               <style type="text/css"><![CDATA[
+               html, body { background: white; }
+               p { color: black; }
+               #two { color: transparent; }
+               ]]></style>
+       </head>
+       <body>
+               <p id="one">This should be the only text visible on this page.</p>
+               <p id="two">This text should NOT be visible.</p>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t423-transparent-2-a.xht b/tct-manual-w3c-tests/colors/csswg/t423-transparent-2-a.xht
new file mode 100644 (file)
index 0000000..5d7602b
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: transparent</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#transparent" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="That the 'transparent' color keyword makes colors transparent." />
+               <style type="text/css"><![CDATA[
+               html, body { background: black; }
+               p { color: white; }
+               #two { color: transparent; }
+               ]]></style>
+       </head>
+       <body>
+               <p id="one">This should be the only text visible on this page.</p>
+               <p id="two">This text should NOT be visible.</p>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t424-hsl-basic-a.xht b/tct-manual-w3c-tests/colors/csswg/t424-hsl-basic-a.xht
new file mode 100644 (file)
index 0000000..54ed5c1
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: hsl()</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsl-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Test basic functioning of hsl() colors." />
+               <style type="text/css"><![CDATA[
+               html, body { background: white; }
+               p { color: hsl(120, 100%, 25%); }
+               ]]></style>
+       </head>
+       <body>
+               <p>This text should be dark green.</p>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t424-hsl-clip-outside-gamut-b.xht b/tct-manual-w3c-tests/colors/csswg/t424-hsl-clip-outside-gamut-b.xht
new file mode 100644 (file)
index 0000000..9ffee34
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: hsl() clipping outside device gamut</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsl-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Test clipping of hsl() values outside the device gamut." />
+               <style type="text/css"><![CDATA[
+
+               table { border-spacing: 0 2px; padding: 0; border: none; }
+               td { border: none; padding: 0; height: 1.2em; }
+
+               ]]></style>
+       </head>
+       <body>
+
+       <p><strong>WARNING: This test assumes that the device gamut is sRGB
+       (as it will be for many CRT monitors).</strong></p>
+
+       <p>Every row in this table should have both columns the same color:</p>
+
+       <table>
+               <tr>
+                       <th style="background:white; color: black">Column 1</th>
+                       <th style="background:black; color: white">Column 2</th>
+               </tr>
+               <tr>
+                       <td style="background: hsl(240, 100%, -100%)">&nbsp;</td>
+                       <td style="background: black">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsl(240, 75%, -20%)">&nbsp;</td>
+                       <td style="background: black">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsl(240, 75%, 120%)">&nbsp;</td>
+                       <td style="background: white">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsl(240, 130%, 50%)">&nbsp;</td>
+                       <td style="background: rgb(0, 0, 255)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsl(264, 130%, 50%)">&nbsp;</td>
+                       <td style="background: rgb(102, 0, 255)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsl(0, -50%, 40%)">&nbsp;</td>
+                       <td style="background: rgb(102, 102, 102)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsl(30, -50%, 60%)">&nbsp;</td>
+                       <td style="background: rgb(153, 153, 153)">&nbsp;</td>
+               </tr>
+       </table>
+
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t424-hsl-h-rotating-b.xht b/tct-manual-w3c-tests/colors/csswg/t424-hsl-h-rotating-b.xht
new file mode 100644 (file)
index 0000000..86f37ff
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: modding of H values in hsl() colors</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsl-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="H values in hsl() colors should be treated like angles, even when outside [0,360)" />
+               <style type="text/css"><![CDATA[
+               table { border-spacing: 0; padding: 0; border: none; }
+               td { border: none; padding: 0; }
+               td { width: 1.2em; height: 1.2em; }
+               ]]></style>
+       </head>
+       <body>
+               <p>Each column in the following table should have every cell the
+               same color, except for the checkerboard pattern at the right and
+               left used to indicate the row positions.</p>
+
+               <table>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 50%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(-360, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-300, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-240, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-180, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-120, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-60, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsl(360, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(420, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(480, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(540, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(600, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(660, 100%, 50%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(6120, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-9660, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(99840, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-900, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(-104880, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(2820, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t424-hsl-parsing-f.xht b/tct-manual-w3c-tests/colors/csswg/t424-hsl-parsing-f.xht
new file mode 100644 (file)
index 0000000..438804c
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: hsl()</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsl-color" />
+               <meta name="flags" content="invalid" />
+               <meta name="assert" content="Test rules for parsing of hsl() colors." />
+               <style type="text/css"><![CDATA[
+               html, body { background: white; }
+               p { color: hsl(120, 100%, 25%); }
+               p { color: hsl(0, 255, 128); }
+               p { color: hsl(0%, 100%, 50%); }
+               p { color: hsl(0, 100%, 50%, 1); }
+               p { color: hsl(0deg, 100%, 50%); }
+               p { color: hsl(0px, 100%, 50%); }
+               ]]></style>
+       </head>
+       <body>
+               <p>This text should be dark green.</p>
+
+               <div>Note: the rules tested by this test may be changed in
+               future levels of the CSS Color Module.</div>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t424-hsl-values-b.xht b/tct-manual-w3c-tests/colors/csswg/t424-hsl-values-b.xht
new file mode 100644 (file)
index 0000000..e611842
--- /dev/null
@@ -0,0 +1,449 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: hsl() values</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsl-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Implementation of algorithm for converting hsl() colors to rgb() colors." />
+               <style type="text/css"><![CDATA[
+                       table { border-spacing: 0; padding: 0; border: none; }
+                       td { border: none; padding: 0; }
+                       td { width: 1.2em; height: 1.2em; }
+               ]]></style>
+       </head>
+       <body>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change gradually from red at the left to green at the right (through yellow in the middle).</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(12, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(24, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(36, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(48, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(72, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(84, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(96, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(108, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 51, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 102, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 153, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 204, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(204, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(153, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(102, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(51, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change gradually from green at the left to blue at the right (through aqua in the middle).</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(132, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(144, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(156, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(168, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(192, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(204, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(216, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(228, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 51)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 102)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 153)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 204)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 255)">&nbsp;</td>
+                               <td style="background: rgb(0, 204, 255)">&nbsp;</td>
+                               <td style="background: rgb(0, 153, 255)">&nbsp;</td>
+                               <td style="background: rgb(0, 102, 255)">&nbsp;</td>
+                               <td style="background: rgb(0, 51, 255)">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change gradually from blue at the left to red at the right (through fuchsia in the middle).</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(252, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(264, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(276, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(288, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(312, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(324, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(336, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(348, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(360, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(51, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(102, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(153, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(204, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 204)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 153)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 102)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 51)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in two steps from nearly gray at the left to red at the right.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(0, 20%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(0, 60%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(153, 102, 102)">&nbsp;</td>
+                               <td style="background: rgb(204, 51, 51)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in two steps from nearly gray at the left to yellow at the right.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(60, 20%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(60, 60%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(153, 153, 102)">&nbsp;</td>
+                               <td style="background: rgb(204, 204, 51)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in two steps from nearly gray at the left to green at the right.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(120, 20%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(120, 60%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(102, 153, 102)">&nbsp;</td>
+                               <td style="background: rgb(51, 204, 51)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in two steps from nearly gray at the left to aqua at the right.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(180, 20%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(180, 60%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(102, 153, 153)">&nbsp;</td>
+                               <td style="background: rgb(51, 204, 204)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in two steps from nearly gray at the left to blue at the right.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(240, 20%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(240, 60%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(102, 102, 153)">&nbsp;</td>
+                               <td style="background: rgb(51, 51, 204)">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in two steps from nearly gray at the left to fuchsia at the right.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(300, 20%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(300, 60%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 50%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(153, 102, 153)">&nbsp;</td>
+                               <td style="background: rgb(204, 51, 204)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in ten steps from black at the left to white at the right with red at the middle.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 0%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 10%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 20%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 30%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 40%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 60%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 70%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 80%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 90%)">&nbsp;</td>
+                               <td style="background: hsl(0, 100%, 100%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(51, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(102, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(153, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(204, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 51, 51)">&nbsp;</td>
+                               <td style="background: rgb(255, 102, 102)">&nbsp;</td>
+                               <td style="background: rgb(255, 153, 153)">&nbsp;</td>
+                               <td style="background: rgb(255, 204, 204)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in ten steps from black at the left to white at the right with yellow at the middle.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 0%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 10%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 20%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 30%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 40%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 60%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 70%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 80%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 90%)">&nbsp;</td>
+                               <td style="background: hsl(60, 100%, 100%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(51, 51, 0)">&nbsp;</td>
+                               <td style="background: rgb(102, 102, 0)">&nbsp;</td>
+                               <td style="background: rgb(153, 153, 0)">&nbsp;</td>
+                               <td style="background: rgb(204, 204, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 51)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 102)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 153)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 204)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in ten steps from black at the left to white at the right with green at the middle.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 0%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 10%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 20%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 30%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 40%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 60%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 70%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 80%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 90%)">&nbsp;</td>
+                               <td style="background: hsl(120, 100%, 100%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 51, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 102, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 153, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 204, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 0)">&nbsp;</td>
+                               <td style="background: rgb(51, 255, 51)">&nbsp;</td>
+                               <td style="background: rgb(102, 255, 102)">&nbsp;</td>
+                               <td style="background: rgb(153, 255, 153)">&nbsp;</td>
+                               <td style="background: rgb(204, 255, 204)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in ten steps from black at the left to white at the right with aqua at the middle.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 0%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 10%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 20%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 30%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 40%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 60%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 70%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 80%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 90%)">&nbsp;</td>
+                               <td style="background: hsl(180, 100%, 100%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 51, 51)">&nbsp;</td>
+                               <td style="background: rgb(0, 102, 102)">&nbsp;</td>
+                               <td style="background: rgb(0, 153, 153)">&nbsp;</td>
+                               <td style="background: rgb(0, 204, 204)">&nbsp;</td>
+                               <td style="background: rgb(0, 255, 255)">&nbsp;</td>
+                               <td style="background: rgb(51, 255, 255)">&nbsp;</td>
+                               <td style="background: rgb(102, 255, 255)">&nbsp;</td>
+                               <td style="background: rgb(153, 255, 255)">&nbsp;</td>
+                               <td style="background: rgb(204, 255, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in ten steps from black at the left to white at the right with blue at the middle.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 0%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 10%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 20%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 30%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 40%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 60%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 70%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 80%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 90%)">&nbsp;</td>
+                               <td style="background: hsl(240, 100%, 100%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 51)">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 102)">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 153)">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 204)">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(51, 51, 255)">&nbsp;</td>
+                               <td style="background: rgb(102, 102, 255)">&nbsp;</td>
+                               <td style="background: rgb(153, 153, 255)">&nbsp;</td>
+                               <td style="background: rgb(204, 204, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+               <p>The following two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change in ten steps from black at the left to white at the right with fuchsia at the middle.</p>
+
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 0%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 10%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 20%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 30%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 40%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 50%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 60%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 70%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 80%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 90%)">&nbsp;</td>
+                               <td style="background: hsl(300, 100%, 100%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0, 0, 0)">&nbsp;</td>
+                               <td style="background: rgb(51, 0, 51)">&nbsp;</td>
+                               <td style="background: rgb(102, 0, 102)">&nbsp;</td>
+                               <td style="background: rgb(153, 0, 153)">&nbsp;</td>
+                               <td style="background: rgb(204, 0, 204)">&nbsp;</td>
+                               <td style="background: rgb(255, 0, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 51, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 102, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 153, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 204, 255)">&nbsp;</td>
+                               <td style="background: rgb(255, 255, 255)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t425-hsla-clip-outside-device-gamut-b.xht b/tct-manual-w3c-tests/colors/csswg/t425-hsla-clip-outside-device-gamut-b.xht
new file mode 100644 (file)
index 0000000..9e5a057
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: hsla() clipping outside device gamut</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsla-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Test clipping of hsla() values outside the device gamut." />
+               <style type="text/css"><![CDATA[
+
+               body { background: white; color: black; }
+               table { border-spacing: 0 2px; padding: 0; border: none; }
+               td { border: none; padding: 0; height: 1.2em; }
+
+               ]]></style>
+       </head>
+       <body>
+
+       <p><strong>WARNING: This test assumes that the device gamut is sRGB
+       (as it will be for many CRT monitors).</strong></p>
+
+       <p>Every row in this table should have both columns the same color:</p>
+
+       <table>
+               <tr>
+                       <th style="background:white; color: black">Column 1</th>
+                       <th style="background:black; color: white">Column 2</th>
+               </tr>
+               <tr>
+                       <td style="background: hsla(240, 100%, -100%, 0.6)">&nbsp;</td>
+                       <td style="background: rgb(102, 102, 102)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsla(240, 75%, -20%, 0.4)">&nbsp;</td>
+                       <td style="background: rgb(153, 153, 153)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsla(240, 75%, 120%, 0.6)">&nbsp;</td>
+                       <td style="background: white">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsla(240, 130%, 50%, 0.4)">&nbsp;</td>
+                       <td style="background: rgb(153, 153, 255)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsla(264, 130%, 50%, 0.6)">&nbsp;</td>
+                       <td style="background: rgb(163, 102, 255)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsla(0, -50%, 40%, 0.4)">&nbsp;</td>
+                       <td style="background: rgb(194, 194, 194)">&nbsp;</td>
+               </tr>
+               <tr>
+                       <td style="background: hsla(30, -50%, 60%, 0.6)">&nbsp;</td>
+                       <td style="background: rgb(194, 194, 194)">&nbsp;</td>
+               </tr>
+       </table>
+
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t425-hsla-h-rotating-b.xht b/tct-manual-w3c-tests/colors/csswg/t425-hsla-h-rotating-b.xht
new file mode 100644 (file)
index 0000000..3643786
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: modding of H values in hsla() colors</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsl-color" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsla-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="H values in hsla() colors should be treated like angles, even when outside [0,360)" />
+               <style type="text/css"><![CDATA[
+               table { border-spacing: 0; padding: 0; border: none; }
+               td { border: none; padding: 0; }
+               td { width: 1.2em; height: 1.2em; }
+               ]]></style>
+       </head>
+       <body>
+               <p>Each column in the following table should have every cell the
+               same color, except for the checkerboard pattern at the right and
+               left used to indicate the row positions.</p>
+
+               <table>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(-360, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(-300, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(-240, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(-180, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(-120, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(-60, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(360, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(420, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(480, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(540, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(600, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(660, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(6120, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(-9660, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(99840, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(-900, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(-104880, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(2820, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t425-hsla-parsing-f.xht b/tct-manual-w3c-tests/colors/csswg/t425-hsla-parsing-f.xht
new file mode 100644 (file)
index 0000000..a3e2866
--- /dev/null
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: hsla()</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsla-color" />
+               <meta name="flags" content="invalid" />
+               <meta name="assert" content="Test rules for parsing of hsla() colors." />
+               <style type="text/css"><![CDATA[
+               html, body { background: white; }
+               p { color: hsla(120, 100%, 25%, 1.0); }
+               p { color: hsla(0, 100%, 25%); }
+               p { color: hsla(0, 100%, 25%, 1.0, 1.0); }
+               p { color: hsla(0, 100%, 25%, 1.0,); }
+               p { color: hsla(0, 255, 128, 1.0); }
+               p { color: hsla(0%, 100%, 50%, 1.0); }
+               p { color: hsla(0, 100%, 50%, 1%); }
+               p { color: hsla(0, 100%, 50%, 0%); }
+               p { color: hsla(0deg, 100%, 50%, 1.0); }
+               p { color: hsla(0px, 100%, 50%, 1.0); }
+               ]]></style>
+       </head>
+       <body>
+               <p>This text should be dark green.</p>
+
+               <div>Note: the rules tested by this test may be changed in
+               future levels of the CSS Color Module.</div>
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/colors/csswg/t425-hsla-values-b.xht b/tct-manual-w3c-tests/colors/csswg/t425-hsla-values-b.xht
new file mode 100644 (file)
index 0000000..d57b9b6
--- /dev/null
@@ -0,0 +1,544 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <title>CSS Test: hsla() values</title>
+               <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
+               <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+               <link rel="help" href="http://www.w3.org/TR/css3-color/#hsla-color" />
+               <meta name="flags" content="" />
+               <meta name="assert" content="Implementation of algorithm for converting hsla() colors to rgba() colors." />
+               <style type="text/css"><![CDATA[
+                       table { border-spacing: 0; padding: 0; border: none; }
+                       td { border: none; padding: 0; }
+                       td { width: 1.2em; height: 1.2em; }
+               ]]></style>
+       </head>
+       <body>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from red at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: black">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 40%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 30%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 20%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 10%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 0%, 1.0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: rgb(100%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from red at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: white">
+               <table border="border">
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 60%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 70%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 80%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 90%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 100%, 1.0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(100%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 20%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 40%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 60%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 80%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from yellow at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: black">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 40%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 30%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 20%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 10%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 0%, 1.0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 80%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 60%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 40%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 20%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from yellow at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: white">
+               <table border="border">
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 60%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 70%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 80%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 90%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(60, 100%, 100%, 1.0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from green at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: black">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 40%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 30%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 20%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 10%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 0%, 1.0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: rgb(0%, 100%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 80%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 60%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 40%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 20%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from green at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: white">
+               <table border="border">
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 60%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 70%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 80%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 90%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 100%, 1.0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0%, 100%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 100%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 100%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 100%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 100%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from aqua at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: black">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 40%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 30%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 20%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 10%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 0%, 1.0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: rgb(0%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 80%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 60%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 40%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 20%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from aqua at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: white">
+               <table border="border">
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 60%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 70%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 80%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 90%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(180, 100%, 100%, 1.0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from blue at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: black">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 40%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 30%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 20%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 10%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 0%, 1.0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from blue at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: white">
+               <table border="border">
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 60%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 70%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 80%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 90%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 100%, 1.0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 20%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 40%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 60%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 80%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from fuchsia at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: black">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 40%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 30%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 20%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 10%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 0%, 1.0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: rgb(100%, 0%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 0%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 0%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 0%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 0%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have three matching rows changing (in 5 steps) from fuchsia at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: white">
+               <table border="border">
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 50%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 60%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 70%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 80%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 90%, 1.0)">&nbsp;</td>
+                               <td style="background: hsla(300, 100%, 100%, 1.0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(100%, 0%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 20%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 40%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 60%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 80%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 100%, 100%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have two matching rows changing (in 5 steps) from red at the left to green at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: lime">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(0, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(100%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 20%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 40%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 60%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 80%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 100%, 0%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have two matching rows changing (in 5 steps) from green at the left to blue at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: blue">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(120, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0%, 100%, 0%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 80%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 60%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 40%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 20%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 100%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+               <p>The following table should have two matching rows changing (in 5 steps) from blue at the left to red at the right (plus a checkerboard at both ends to show where the rows are):</p>
+
+               <div style="background: red">
+               <table border="border">
+                       <tr>
+                               <td style="background: black">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 1)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.8)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.6)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.4)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0.2)">&nbsp;</td>
+                               <td style="background: hsla(240, 100%, 50%, 0)">&nbsp;</td>
+                               <td style="background: white">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td style="background: white">&nbsp;</td>
+                               <td style="background: rgb(0%, 0%, 100%)">&nbsp;</td>
+                               <td style="background: rgb(20%, 0%, 80%)">&nbsp;</td>
+                               <td style="background: rgb(40%, 0%, 60%)">&nbsp;</td>
+                               <td style="background: rgb(60%, 0%, 40%)">&nbsp;</td>
+                               <td style="background: rgb(80%, 0%, 20%)">&nbsp;</td>
+                               <td style="background: rgb(100%, 0%, 0%)">&nbsp;</td>
+                               <td style="background: black">&nbsp;</td>
+                       </tr>
+               </table>
+               </div>
+
+       </body>
+</html>
diff --git a/tct-manual-w3c-tests/common/COPYING b/tct-manual-w3c-tests/common/COPYING
new file mode 100644 (file)
index 0000000..480f4a4
--- /dev/null
@@ -0,0 +1,49 @@
+All test files except this COPYING and Makefile.am under this folder come from
+http://w3c-test.org/html/tests/approved/common/
+with modification below:
+media.js
+
+ function getVideoURI(base)
+ {
+-    var extension = '.mp4';
++    var extension = '.ogv';
+     var videotag = document.createElement("video");
+     if ( videotag.canPlayType  &&
+-         videotag.canPlayType('video/ogg; codecs="theora, vorbis"') )
++         videotag.canPlayType('video/mp4') )
+     {
+-        extension = '.ogv';
++        extension = '.mp4';
+     }
+     return base + extension;
+ }
+
+ function getAudioURI(base)
+ {
+-    var extension = '.mp3';
++    var extension = '.oga';
+     var audiotag = document.createElement("audio");
+     if ( audiotag.canPlayType &&
+-         audiotag.canPlayType('audio/ogg') )
++        audiotag.canPlayType('audio/mpeg') )
+     {
+-        extension = '.oga';
++        extension = '.mp3';
+     }
+     return base + extension;
+ }
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/common/Makefile.am b/tct-manual-w3c-tests/common/Makefile.am
new file mode 100644 (file)
index 0000000..6194637
--- /dev/null
@@ -0,0 +1,3 @@
+w3ccommon_SCRIPTS = *
+w3ccommondir = /opt/tct-manual-w3c-tests/common
+EXTRA_DIST = $(w3ccommon_SCRIPTS)
diff --git a/tct-manual-w3c-tests/common/domtestcase.js b/tct-manual-w3c-tests/common/domtestcase.js
new file mode 100644 (file)
index 0000000..49ad747
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+Copyright (c) 2001-2004 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University). All
+Rights Reserved. This program is distributed under the W3C's Software
+Intellectual Property License. This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+*/
+  
+//
+// Log to console wrapper, use this so one doesn't create script errors on
+// user agents that don't support console.log
+function consoleLog(description)
+{
+    try
+       {
+           console.log(description);
+       }
+       catch(e)
+       {
+           alert(description);
+       }
+       
+}
+
+function assertEquals(description, expected, actual)
+{
+    var szError = description + " assertEquals failure: \r\n";
+
+    if ( !(expected === actual))
+    {
+        szError = szError + "expected=" + expected + " \r\n";
+        szError = szError + "actual=" + actual + " \r\n";
+
+        throw szError;
+    }
+}
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/common/media.js b/tct-manual-w3c-tests/common/media.js
new file mode 100644 (file)
index 0000000..620508f
--- /dev/null
@@ -0,0 +1,282 @@
+//
+// Returns whether the 'relative' parameter, resolved to an absolute URI,
+// is a match for the 'absolute' parameter
+//
+function isResolvedURI(absolute, relative)
+{
+    // This regex matches if the target starts with the current protocol,
+    // contains the current host, and ends with 'relative'
+    var regex = new RegExp('^' + location.protocol + '\/\/' + '.*' +
+        location.hostname + '.*' + relative + '$', 'i');
+    
+    return absolute.match(regex);
+}
+
+//
+// Returns whether the given variable is a valid value for a 'preload' property
+//
+function isValidPreloadValue(preload)
+{
+    preload = preload.toLowerCase();
+       return preload == "" || preload == "none" || preload == "metadata" ||
+               preload == "auto";
+}
+
+//
+// Returns the URI of a supported video source based on the user agent
+//
+function getVideoURI(base)
+{
+    var extension = '.ogv';
+
+    var videotag = document.createElement("video");
+
+    if ( videotag.canPlayType  &&
+         videotag.canPlayType('video/mp4') )
+    {
+        extension = '.mp4';
+    }
+
+    return base + extension;
+}
+
+//
+// Returns the URI of a supported audio source based on the user agent
+//
+function getAudioURI(base)
+{
+    var extension = '.oga';
+
+    var audiotag = document.createElement("audio");
+
+    if ( audiotag.canPlayType &&
+        audiotag.canPlayType('audio/mpeg') )
+    {
+        extension = '.mp3';
+    }
+
+    return base + extension;
+}
+
+//
+// Returns the mime type (and codecs parameter) of a supported video source
+// based on the user agent
+//
+function getVideoType(codecs)
+{
+    var mime = 'video/mp4';
+    var codecs_param = 'avc1.42E01E, mp4a.40.2';
+
+    var videotag = document.createElement("video");
+    
+    if ( videotag.canPlayType  &&
+         videotag.canPlayType('video/ogg; codecs="theora, vorbis"') )
+    {
+        mime = 'video/ogg';
+        codecs_param = 'theora, vorbis';
+    }
+
+    if ( codecs )
+    {
+        return mime + '; codecs="' + codecs_param + '"';
+    }
+    else
+    {
+        return mime;
+    }
+}
+
+var result_timeout = 0;
+
+//
+// Clear the result timeout so that the test will not automatically pass/fail
+//
+function clearResultTimeout()
+{
+    if (result_timeout != 0)
+    {
+        window.clearTimeout(result_timeout);
+        result_timeout = 0;
+    }
+}
+
+//
+// Passes the test
+//
+function passTest()
+{
+    document.getElementById("test_0_result").innerHTML = "PASS";
+    clearResultTimeout();
+}
+
+//
+// Fails the test
+//
+function failTest()
+{
+    document.getElementById("test_0_result").innerHTML = "FAIL";
+    clearResultTimeout();
+}
+
+//
+// Signals that the pass condition in this test should be manually verified
+//
+function manualTest()
+{
+    document.getElementById("test_0_result").innerHTML = "Manual";
+    clearResultTimeout();
+}
+
+//
+// Set the test to automatically fail after a timeout is reached
+//
+function setFailTimeout(milliseconds)
+{
+    clearResultTimeout();
+    result_timeout = window.setTimeout("failTest();", milliseconds);
+}
+
+//
+// Set the test to automatically pass after a timeout is reached
+//
+function setPassTimeout(milliseconds)
+{
+    clearResultTimeout();
+    result_timeout = window.setTimeout("passTest();", milliseconds);
+}
+
+//
+// Find an unbuffered time in the media resource
+//
+function findUnbufferedTime(media)
+{
+    var max = 0;
+        
+    for (var i=0; i < media.buffered.length; i++)
+    {
+        if (media.buffered.end(i) > max)
+        {
+            max = media.buffered.end(i);
+        }
+    }
+
+    if (max < media.duration)
+    {
+        return (max + media.duration) / 2;
+    }
+    else
+    {
+        return -1;
+    }
+}
+
+//
+// Returns whether the actual time is approximately the expected time (within a
+// tolerance)
+//
+function isApprox(actual, expected, tolerance)
+{
+    return ((expected - tolerance) < actual) && (actual < (expected + tolerance));
+}
+
+var checkPlaybackRate_media = null;
+var checkPlaybackRate_tolerance = -1;
+var checkPlaybackRate_callback = function(result){};
+var checkPlaybackRate_time = -1;
+var checkPlaybackRate_timeout = 0;
+var checkPlaybackRate_seconds = -1;
+var checkPlaybackRate_playbackRate = 0;
+
+function checkPlaybackRate_check()
+{
+    var rate = (checkPlaybackRate_media.currentTime - checkPlaybackRate_time) / checkPlaybackRate_seconds;
+
+    checkPlaybackRate_callback(
+        isApprox(
+            rate, 
+            checkPlaybackRate_playbackRate, 
+            checkPlaybackRate_tolerance
+            )
+        );
+}
+
+//
+// Checks that the playback rate is a given value by estimating the actual rate
+// over time
+//
+function checkPlaybackRate(media, playbackRate, seconds, tolerance, callback)
+{
+    if (checkPlaybackRate_timeout != 0)
+    {
+        window.clearTimeout(checkPlaybackRate_timeout);
+        checkPlaybackRate_timeout = 0;
+    }
+
+    checkPlaybackRate_media = media;
+    checkPlaybackRate_playbackRate = playbackRate;
+    checkPlaybackRate_seconds = seconds;
+    checkPlaybackRate_tolerance = tolerance;
+    checkPlaybackRate_callback = callback;
+    checkPlaybackRate_time = media.currentTime;
+    checkPlaybackRate_timeout = window.setTimeout("checkPlaybackRate_check();", 1000 * seconds);
+}
+
+//
+// Returns whether the given time has been buffered
+//
+function isTimeBuffered(media, time)
+{
+    for (var i=0; i < media.buffered.length; i++)
+    {
+        if (media.buffered.start(i) <= time && time <= media.buffered.end(i))
+        {
+            return true;
+        }
+    }
+
+    return false;
+}
+
+var waitForTimeBuffered_media = null;
+var waitForTimeBuffered_time = -1;
+var waitForTimeBuffered_callback = function(){};
+var waitForTimeBuffered_interval = 0;
+
+function waitForTimeBuffered_check()
+{
+    if (isTimeBuffered(waitForTimeBuffered_media, waitForTimeBuffered_time))
+    {
+        window.clearInterval(waitForTimeBuffered_interval);
+        waitForTimeBuffered_interval = 0;
+        waitForTimeBuffered_callback();
+    }
+}
+
+//
+// Waits for a time to be buffered by polling
+//
+function waitForTimeBuffered(media, time, callback)
+{
+    waitForTimeBuffered_media = media;
+    waitForTimeBuffered_time = time;
+    waitForTimeBuffered_callback = callback;
+
+    if (waitForTimeBuffered_interval != 0)
+    {
+        window.clearInterval(waitForTimeBuffered_interval);
+        waitForTimeBuffered_interval = 0;
+    }
+
+    waitForTimeBuffered_interval = setInterval("waitForTimeBuffered_check();", 250);
+}
+
+//
+// Makes sure that the media element is audible.  This is necessary because
+// user agents may remember volume settings for media elements, on a per-domain
+// basis or otherwise
+//
+function ensureAudible(media)
+{
+    media.muted = false;
+    media.volume = 1.0;
+}
diff --git a/tct-manual-w3c-tests/config.xml.crx b/tct-manual-w3c-tests/config.xml.crx
new file mode 100644 (file)
index 0000000..5e12b7c
--- /dev/null
@@ -0,0 +1,2 @@
+<widget xmlns="http://www.w3.org/ns/widgets">
+</widget>
diff --git a/tct-manual-w3c-tests/config.xml.wgt b/tct-manual-w3c-tests/config.xml.wgt
new file mode 100644 (file)
index 0000000..3926c65
--- /dev/null
@@ -0,0 +1,7 @@
+<widget id='http://tizen.org/test/tct-manual-w3c-tests' xmlns='http://www.w3.org/ns/widgets' xmlns:tizen='http://tizen.org/ns/widgets'>
+  <access origin="*"/>
+  <icon src="custom.png" height="123" width="123"/>
+  <name>tct-manual-w3c-tests</name> 
+  <tizen:application id="w3cmanual0.WebAPIW3CManualTests" package="w3cmanual0" required_version="2.1"/>
+  <tizen:setting screen-orientation="landscape"/>
+</widget>
diff --git a/tct-manual-w3c-tests/configure.ac b/tct-manual-w3c-tests/configure.ac
new file mode 100644 (file)
index 0000000..6b1e67d
--- /dev/null
@@ -0,0 +1,71 @@
+AC_INIT([tct-manual-w3c-tests], [2.3.3], [zhiqiang.zhang@intel.com])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+
+AC_CONFIG_FILES([Makefile \
+audio/Makefile \
+audio/media/Makefile \
+audio/w3c/Makefile \
+canvas/w3c/Makefile \
+canvas/common/Makefile \
+canvas/images/Makefile \
+canvas/Makefile \
+colors/Makefile \
+colors/csswg/Makefile \
+csp/Makefile \
+csp/support/Makefile \
+extra/attributes/Makefile \
+extra/attributes/w3c/Makefile \
+extra/browsers/Makefile \
+extra/browsers/the-window-object/Makefile \
+extra/browsers/the-window-object/the-window-object/Makefile \
+extra/dom/documents/Makefile \
+extra/dom/documents/the-document-object/Makefile \
+extra/dom/Makefile \
+extra/Makefile \
+extra/semantics/forms/Makefile \
+extra/semantics/forms/the-textarea-element/Makefile \
+extra/semantics/grouping-content/Makefile \
+extra/semantics/grouping-content/the-figcaption-element/Makefile \
+extra/semantics/grouping-content/the-figure-element/Makefile \
+extra/semantics/Makefile \
+extra/semantics/text-level-semantics/Makefile \
+extra/semantics/text-level-semantics/the-mark-element/Makefile \
+extra/w3c/editing/Makefile \
+extra/w3c/editing/the-hidden-attribute/Makefile \
+extra/w3c/Makefile \
+extra/w3c/semantics/grouping-content/Makefile \
+extra/w3c/semantics/grouping-content/the-ol-element/Makefile \
+extra/w3c/semantics/Makefile \
+extra/xhtml5/images/Makefile \
+extra/xhtml5/Makefile \
+extra/xhtml5/w3c/Makefile \
+fileapi/Makefile \
+pagevisibility/Makefile \
+pagevisibility/w3c/Makefile \
+pagevisibility/w3c/support/Makefile \
+sandbox/Makefile \
+sandbox/w3c/Makefile \
+sandbox/w3c/support/Makefile \
+sessionhistory/Makefile \
+sessionhistory/support/Makefile \
+svg/Makefile \
+svg/w3c/Makefile \
+text/Makefile \
+text/webkit/Makefile \
+touchevent/Makefile \
+touchevent/w3c/Makefile \
+transitions/Makefile \
+transitions/webkit/Makefile \
+transitions/webkit/resources/Makefile \
+ui/Makefile \
+video/Makefile \
+video/media/Makefile \
+video/w3c/Makefile \
+widgetinterface/Makefile \
+widgetinterface/w3c/Makefile \
+widgetpackaging/Makefile \
+widgetpackaging/w3c/Makefile \
+widgetpolicy/Makefile \
+widgetpolicy/w3c/Makefile \
+common/Makefile resources/Makefile testkit/Makefile])
+AC_OUTPUT
diff --git a/tct-manual-w3c-tests/csp/Makefile.am b/tct-manual-w3c-tests/csp/Makefile.am
new file mode 100644 (file)
index 0000000..a083e10
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = support
+csp_SCRIPTS = *
+cspdir = /opt/tct-manual-w3c-tests/csp
+EXTRA_DIST = $(csp_SCRIPTS)
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_allowed.php b/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_allowed.php
new file mode 100644 (file)
index 0000000..662caa4
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src http://127.0.0.1:8081; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src http://127.0.0.1:8081; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src http://127.0.0.1:8081; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_cross-origin_font_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src http://127.0.0.1:8081; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_blocked.php b/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_blocked.php
new file mode 100644 (file)
index 0000000..7a36164
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: http://default-src 127.0.0.1:8081; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: http://default-src 127.0.0.1:8081; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src http://127.0.0.1:8081; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_cross-origin_font_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src http://127.0.0.1:8081; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are the same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_one.php b/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_one.php
new file mode 100644 (file)
index 0000000..bd9caec
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_cross-origin_multi_font_allowed_one</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_two.php b/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_two.php
new file mode 100644 (file)
index 0000000..b52f5bf
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_cross-origin_multi_font_allowed_two</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked.php b/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked.php
new file mode 100644 (file)
index 0000000..73882b1
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_cross-origin_multi_font_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked_int.php b/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked_int.php
new file mode 100644 (file)
index 0000000..a156854
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_cross-origin_multi_font_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_ext.php b/tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_ext.php
new file mode 100644 (file)
index 0000000..5b4cfde
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src 'none'; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_none_font_blocked_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'none'; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_int.php b/tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_int.php
new file mode 100644 (file)
index 0000000..1c7b30a
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src 'none'; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_none_font_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 127.0.0.1:8081; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are the same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_font_allowed.php b/tct-manual-w3c-tests/csp/csp_default-src_self_font_allowed.php
new file mode 100644 (file)
index 0000000..e15a2de
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src 'self'; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src 'self'; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src 'self'; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_font_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_font_blocked.php b/tct-manual-w3c-tests/csp/csp_default-src_self_font_blocked.php
new file mode 100644 (file)
index 0000000..2bce74e
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: default-src 'self'; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: default-src 'self'; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: default-src 'self'; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_font_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are the same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_frame_allowed.php b/tct-manual-w3c-tests/csp/csp_default-src_self_frame_allowed.php
new file mode 100644 (file)
index 0000000..812124e
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:default-src 'self'"
+echo "X-Content-Security-Policy:default-src 'self'"
+echo "X-WebKit-CSP:default-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_frame_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <iframe src="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_frame_blocked.php b/tct-manual-w3c-tests/csp/csp_default-src_self_frame_blocked.php
new file mode 100644 (file)
index 0000000..4c5faa3
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:default-src 'self'"
+echo "X-Content-Security-Policy:default-src 'self'"
+echo "X-WebKit-CSP:default-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_frame_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_img_allowed.php b/tct-manual-w3c-tests/csp/csp_default-src_self_img_allowed.php
new file mode 100644 (file)
index 0000000..8033e8a
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:default-src 'self'"
+echo "X-Content-Security-Policy:default-src 'self'"
+echo "X-WebKit-CSP:default-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_img_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <img src="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_img_blocked.php b/tct-manual-w3c-tests/csp/csp_default-src_self_img_blocked.php
new file mode 100644 (file)
index 0000000..e8f7196
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:default-src 'self'"
+echo "X-Content-Security-Policy:default-src 'self'"
+echo "X-WebKit-CSP:default-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_img_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_object_allowed.php b/tct-manual-w3c-tests/csp/csp_default-src_self_object_allowed.php
new file mode 100644 (file)
index 0000000..8516927
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:default-src 'self'"
+echo "X-Content-Security-Policy:default-src 'self'"
+echo "X-WebKit-CSP:default-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_object_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <object data="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_default-src_self_object_blocked.php b/tct-manual-w3c-tests/csp/csp_default-src_self_object_blocked.php
new file mode 100644 (file)
index 0000000..ae2af4a
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:default-src 'self'"
+echo "X-Content-Security-Policy:default-src 'self'"
+echo "X-WebKit-CSP:default-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_default-src_self_object_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="default-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <object data="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_ext.php b/tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_ext.php
new file mode 100644 (file)
index 0000000..9f116f0
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src *"
+echo "X-Content-Security-Policy: font-src *"
+echo "X-WebKit-CSP: font-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_asterisk_allowed_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src *"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_int.php b/tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_int.php
new file mode 100644 (file)
index 0000000..c746682
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src *"
+echo "X-Content-Security-Policy: font-src *"
+echo "X-WebKit-CSP: font-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_asterisk_allowed_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src *"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_allowed.php b/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_allowed.php
new file mode 100644 (file)
index 0000000..cab7ea6
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy: font-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP: font-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_cross-origin_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_blocked.php b/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_blocked.php
new file mode 100644 (file)
index 0000000..bd6e769
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy: font-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP: font-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_cross-origin_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are the same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_one.php b/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_one.php
new file mode 100644 (file)
index 0000000..8c9be47
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_cross-origin_multi_allowed_one</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_two.php b/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_two.php
new file mode 100644 (file)
index 0000000..86e84b3
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_cross-origin_multi_allowed_two</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src http://127.0.0.1:8081 http://127.0.0.1:8082; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked.php b/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked.php
new file mode 100644 (file)
index 0000000..d17c915
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_cross-origin_multi_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked_int.php b/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked_int.php
new file mode 100644 (file)
index 0000000..649931c
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-Content-Security-Policy: font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo "X-WebKit-CSP: font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_cross-origin_multi_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src http://127.0.0.1:8081 http://tizen.org; style-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_none_blocked_ext.php b/tct-manual-w3c-tests/csp/csp_font-src_none_blocked_ext.php
new file mode 100644 (file)
index 0000000..2bdcc77
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src 'none'"
+echo "X-Content-Security-Policy: font-src 'none'"
+echo "X-WebKit-CSP: font-src 'none'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_none_blocked_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src 'none'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are the same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_none_blocked_int.php b/tct-manual-w3c-tests/csp/csp_font-src_none_blocked_int.php
new file mode 100644 (file)
index 0000000..68a96fe
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src 'none'"
+echo "X-Content-Security-Policy: font-src 'none'"
+echo "X-WebKit-CSP: font-src 'none'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_none_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src 'none'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are the same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_self_allowed.php b/tct-manual-w3c-tests/csp/csp_font-src_self_allowed.php
new file mode 100644 (file)
index 0000000..8a3b9d7
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src 'self'"
+echo "X-Content-Security-Policy: font-src 'self'"
+echo "X-WebKit-CSP: font-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_self_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src 'self'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_font-src_self_blocked.php b/tct-manual-w3c-tests/csp/csp_font-src_self_blocked.php
new file mode 100644 (file)
index 0000000..0434c45
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy: font-src 'self'"
+echo "X-Content-Security-Policy: font-src 'self'"
+echo "X-WebKit-CSP: font-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_font-src_self_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src 'self'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are the same in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_ext.php b/tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_ext.php
new file mode 100644 (file)
index 0000000..fdef477
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src *"
+echo "X-Content-Security-Policy:frame-src *"
+echo "X-WebKit-CSP:frame-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_asterisk_allowed_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src *"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <iframe src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_int.php b/tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_int.php
new file mode 100644 (file)
index 0000000..30ea9e1
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src *"
+echo "X-Content-Security-Policy:frame-src *"
+echo "X-WebKit-CSP:frame-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_asterisk_allowed_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src *"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <iframe src="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_allowed.php b/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_allowed.php
new file mode 100644 (file)
index 0000000..e620fee
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:frame-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:frame-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_cross-origin_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <iframe src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked.php b/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked.php
new file mode 100644 (file)
index 0000000..ba422b4
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:frame-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:frame-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_cross-origin_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked_int.php b/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked_int.php
new file mode 100644 (file)
index 0000000..72813cf
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:frame-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:frame-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_cross-origin_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_one.php b/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_one.php
new file mode 100644 (file)
index 0000000..842ee36
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo "X-Content-Security-Policy:frame-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo "X-WebKit-CSP:frame-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_cross-origin_allowed_one</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src http://127.0.0.1:8081 http://127.0.0.1:8082/"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <iframe src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_two.php b/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_two.php
new file mode 100644 (file)
index 0000000..3d49b61
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo "X-Content-Security-Policy:frame-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo "X-WebKit-CSP:frame-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_cross-origin_allowed_two</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src http://127.0.0.1:8081 http://127.0.0.1:8083"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <iframe src="http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked.php b/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked.php
new file mode 100644 (file)
index 0000000..433a4e9
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-Content-Security-Policy:frame-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-WebKit-CSP:frame-src http://127.0.0.1:8081 https://tizen.org"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_cross-origin_multi_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src http://127.0.0.1:8081 https://tizen.org"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked_int.php b/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked_int.php
new file mode 100644 (file)
index 0000000..74f458b
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-Content-Security-Policy:frame-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-WebKit-CSP:frame-src http://127.0.0.1:8081 https://tizen.org"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_cross-origin_multi_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src http://127.0.0.1:8081 https://tizen.org"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_ext.php b/tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_ext.php
new file mode 100644 (file)
index 0000000..06a6107
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src 'none'"
+echo "X-Content-Security-Policy:frame-src 'none'"
+echo "X-WebKit-CSP:frame-src 'none'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_none_blocked_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src 'none'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_int.php b/tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_int.php
new file mode 100644 (file)
index 0000000..2716911
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src 'none'"
+echo "X-Content-Security-Policy:frame-src 'none'"
+echo "X-WebKit-CSP:frame-src 'none'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_none_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src 'none'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_self_allowed.php b/tct-manual-w3c-tests/csp/csp_frame-src_self_allowed.php
new file mode 100644 (file)
index 0000000..fa16763
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src 'self'"
+echo "X-Content-Security-Policy:frame-src 'self'"
+echo "X-WebKit-CSP:frame-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_self_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <iframe src="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_frame-src_self_blocked.php b/tct-manual-w3c-tests/csp/csp_frame-src_self_blocked.php
new file mode 100644 (file)
index 0000000..c810539
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:frame-src 'self'"
+echo "X-Content-Security-Policy:frame-src 'self'"
+echo "X-WebKit-CSP:frame-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_frame-src_self_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="frame-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <iframe src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_ext.php b/tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_ext.php
new file mode 100644 (file)
index 0000000..d5f9cec
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src *"
+echo "X-Content-Security-Policy:img-src *"
+echo "X-WebKit-CSP:img-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_asterisk_allowed_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src *"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <img src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_int.php b/tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_int.php
new file mode 100644 (file)
index 0000000..73387eb
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src *"
+echo "X-Content-Security-Policy:img-src *"
+echo "X-WebKit-CSP:img-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_asterisk_allowed_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src *"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <img src="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_allowed.php b/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_allowed.php
new file mode 100644 (file)
index 0000000..5ed8a58
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:img-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:img-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_cross-origin_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <img src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked.php b/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked.php
new file mode 100644 (file)
index 0000000..13131cd
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:img-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:img-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_cross-origin_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked_int.php b/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked_int.php
new file mode 100644 (file)
index 0000000..8bd7de0
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:img-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:img-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_cross-origin_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_one.php b/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_one.php
new file mode 100644 (file)
index 0000000..5228c4a
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo "X-Content-Security-Policy:img-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo "X-WebKit-CSP:img-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_cross-origin_allowed_one</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src http://127.0.0.1:8081 http://127.0.0.1:8082/"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <img src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_two.php b/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_two.php
new file mode 100644 (file)
index 0000000..105da95
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo "X-Content-Security-Policy:img-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo "X-WebKit-CSP:img-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_cross-origin_allowed_two</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src http://127.0.0.1:8081 http://127.0.0.1:8083"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <img src="http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked.php b/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked.php
new file mode 100644 (file)
index 0000000..0da893e
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-Content-Security-Policy:img-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-WebKit-CSP:img-src http://127.0.0.1:8081 https://tizen.org"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_cross-origin_multi_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src http://127.0.0.1:8081 https://tizen.org"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked_int.php b/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked_int.php
new file mode 100644 (file)
index 0000000..7801c82
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-Content-Security-Policy:img-src http://127.0.0.1:8081 https://tizen.org"
+echo "X-WebKit-CSP:img-src http://127.0.0.1:8081 https://tizen.org"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_cross-origin_multi_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src http://127.0.0.1:8081 https://tizen.org"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_none_blocked_ext.php b/tct-manual-w3c-tests/csp/csp_img-src_none_blocked_ext.php
new file mode 100644 (file)
index 0000000..e21db78
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src 'none'"
+echo "X-Content-Security-Policy:img-src 'none'"
+echo "X-WebKit-CSP:img-src 'none'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_none_blocked_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src 'none'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_none_blocked_int.php b/tct-manual-w3c-tests/csp/csp_img-src_none_blocked_int.php
new file mode 100644 (file)
index 0000000..60b71bd
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src 'none'"
+echo "X-Content-Security-Policy:img-src 'none'"
+echo "X-WebKit-CSP:img-src 'none'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_none_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src 'none'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_self_allowed.php b/tct-manual-w3c-tests/csp/csp_img-src_self_allowed.php
new file mode 100644 (file)
index 0000000..9eec8e2
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src 'self'"
+echo "X-Content-Security-Policy:img-src 'self'"
+echo "X-WebKit-CSP:img-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_self_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <img src="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_img-src_self_blocked.php b/tct-manual-w3c-tests/csp/csp_img-src_self_blocked.php
new file mode 100644 (file)
index 0000000..a03ca58
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:img-src 'self'"
+echo "X-Content-Security-Policy:img-src 'self'"
+echo "X-WebKit-CSP:img-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_img-src_self_blocked</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no red</strong>.</p>
+    <img src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/red-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_ext.php b/tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_ext.php
new file mode 100644 (file)
index 0000000..0b9ff86
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:object-src *"
+echo "X-Content-Security-Policy:object-src *"
+echo "X-WebKit-CSP:object-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_object-src_asterisk_allowed_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src *"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <object data="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_int.php b/tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_int.php
new file mode 100644 (file)
index 0000000..6f449a6
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:object-src *"
+echo "X-Content-Security-Policy:object-src *"
+echo "X-WebKit-CSP:object-src *"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_object-src_asterisk_allowed_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src *"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <object data="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_allowed.php b/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_allowed.php
new file mode 100644 (file)
index 0000000..f8d8d07
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:object-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:object-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:object-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_object-src_cross-origin_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src http://127.0.0.1:8081"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <object data="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_one.php b/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_one.php
new file mode 100644 (file)
index 0000000..5b35662
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:object-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo "X-Content-Security-Policy:object-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo "X-WebKit-CSP:object-src http://127.0.0.1:8081 http://127.0.0.1:8082/"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_object-src_cross-origin_allowed_one</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src http://127.0.0.1:8081 http://127.0.0.1:8082/"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <object data="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_two.php b/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_two.php
new file mode 100644 (file)
index 0000000..56b0458
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:object-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo "X-Content-Security-Policy:object-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo "X-WebKit-CSP:object-src http://127.0.0.1:8081 http://127.0.0.1:8082"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_object-src_cross-origin_allowed_two</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src http://127.0.0.1:8081 http://127.0.0.1:8083"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <object data="http://127.0.0.1:8082/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_object-src_self_allowed.php b/tct-manual-w3c-tests/csp/csp_object-src_self_allowed.php
new file mode 100644 (file)
index 0000000..f893cf7
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy:object-src 'self'"
+echo "X-Content-Security-Policy:object-src 'self'"
+echo "X-WebKit-CSP:object-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_object-src_self_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <object data="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_ext.php b/tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_ext.php
new file mode 100644 (file)
index 0000000..7a73a07
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy-Report-Only: font-src 'self'"
+echo "X-Content-Security-Policy-Report-Only: font-src 'self'"
+echo "X-WebKit-CSP-Report-Only: font-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_ro_font-src_self_allowed_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src 'self'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_int.php b/tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_int.php
new file mode 100644 (file)
index 0000000..604f631
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+echo "Content-Security-Policy-Report-Only: font-src 'self'"
+echo "X-Content-Security-Policy-Report-Only: font-src 'self'"
+echo "X-WebKit-CSP-Report-Only: font-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_ro_font-src_self_allowed_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="font-src 'self'"/>
+    <meta charset="utf-8"/>
+    <style>
+        @font-face {
+            font-family: Canvas;
+            src: url("support/CanvasTest.ttf");
+        }
+        #test {
+            font-family: Canvas;
+        }
+    </style>
+  </head>
+  <body>
+    <p>Test passes if the two lines are different in font</p>
+    <div id="test">1234 ABCD</div>
+    <div>1234 ABCD</div>
+ </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_ext.php b/tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_ext.php
new file mode 100644 (file)
index 0000000..4097b43
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy-Report-Only:img-src 'self'"
+echo "X-Content-Security-Policy-Report-Only:img-src 'self'"
+echo "X-WebKit-CSP-Report-Only:img-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_ro_img-src_self_allowed_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <img src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_int.php b/tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_int.php
new file mode 100644 (file)
index 0000000..3a547be
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy-Report-Only:img-src 'self'"
+echo "X-Content-Security-Policy-Report-Only:img-src 'self'"
+echo "X-WebKit-CSP-Report-Only:img-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_ro_img-src_self_allowed_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="img-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <img src="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_ext.php b/tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_ext.php
new file mode 100644 (file)
index 0000000..1b41459
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy-Report-Only:object-src 'self'"
+echo "X-Content-Security-Policy-Report-Only:object-src 'self'"
+echo "X-WebKit-CSP-Report-Only:object-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_ro_object-src_self_allowed_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled green square.</p>
+    <object data="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/green-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_int.php b/tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_int.php
new file mode 100644 (file)
index 0000000..9917fa2
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+echo "Content-Security-Policy-Report-Only:object-src 'self'"
+echo "X-Content-Security-Policy-Report-Only:object-src 'self'"
+echo "X-WebKit-CSP-Report-Only:object-src 'self'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_ro_object-src_self_allowed_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="object-src 'self'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a filled blue square.</p>
+    <object data="support/blue-100x100.png"/>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_sandbox_empty_event.php b/tct-manual-w3c-tests/csp/csp_sandbox_empty_event.php
new file mode 100644 (file)
index 0000000..4fc484e
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/sh
+echo "Content-Security-Policy: sandbox "
+echo "X-Content-Security-Policy: sandbox "
+echo "X-WebKit-CSP: sandbox "
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.sandbox
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_sandbox_empty_event</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="sandbox"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no</strong> text "FAIL" below.</p>
+    <div id="test" style="display:red"></div>
+    <img style="display:none"
+        onerror="javascript:document.getElementById('test').innerHTML='FAIL'"
+        src="about:blank">
+    </img>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/csp_sandbox_empty_ext.php b/tct-manual-w3c-tests/csp/csp_sandbox_empty_ext.php
new file mode 100644 (file)
index 0000000..6d31914
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+echo "Content-Security-Policy: sandbox "
+echo "X-Content-Security-Policy: sandbox "
+echo "X-WebKit-CSP: sandbox "
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.sandbox
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_sandbox_empty_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="sandbox allow-scripts"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no</strong> text "FAIL" below.</p>
+    <div id="test" style="display:red"></div>
+    <script src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/test.js"></script>
+    <script>
+        if (getVideoURI) {
+            document.getElementById("test").innerHTML = "FAIL";
+        }
+    </script>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/csp_sandbox_empty_inline.php b/tct-manual-w3c-tests/csp/csp_sandbox_empty_inline.php
new file mode 100644 (file)
index 0000000..c1712a1
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/sh
+echo "Content-Security-Policy: sandbox "
+echo "X-Content-Security-Policy: sandbox "
+echo "X-WebKit-CSP: sandbox "
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.sandbox
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_sandbox_empty_inline</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="sandbox"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no</strong> text "FAIL" below.</p>
+    <div id="test" style="display:red"></div>
+    <script>
+        document.getElementById("test").innerHTML = "FAIL";
+    </script>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_sandbox_empty_int.php b/tct-manual-w3c-tests/csp/csp_sandbox_empty_int.php
new file mode 100644 (file)
index 0000000..b0f97ed
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+echo "Content-Security-Policy: sandbox "
+echo "X-Content-Security-Policy: sandbox "
+echo "X-WebKit-CSP: sandbox "
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.sandbox
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_sandbox_empty_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="sandbox allow-scripts"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is <strong>no</strong> text "FAIL" below.</p>
+    <div id="test" style="display:red"></div>
+    <script src="support/csp.js"></script>
+    <script>
+        if (X) {
+            document.getElementById("test").innerHTML = "FAIL";
+        }
+    </script>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_cross-origin.php b/tct-manual-w3c-tests/csp/csp_script-src_cross-origin.php
new file mode 100644 (file)
index 0000000..b387b12
--- /dev/null
@@ -0,0 +1,54 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:script-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:script-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_cross-origin</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src http://127.0.0.1:8081 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a text "PASS" and <strong>no</strong> "FAIL" below.</p>
+    <div id="log">PASS</div>
+    <script>
+        document.getElementById("log").innerHTML = "FAIL";
+    </script>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_cross-origin_block_inline.php b/tct-manual-w3c-tests/csp/csp_script-src_cross-origin_block_inline.php
new file mode 100644 (file)
index 0000000..914e916
--- /dev/null
@@ -0,0 +1,54 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src http://127.0.0.1:8081"
+echo "X-Content-Security-Policy:script-src http://127.0.0.1:8081"
+echo "X-WebKit-CSP:script-src http://127.0.0.1:8081"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_cross-origin_block_inline</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src http://w3c-test.org 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a "PASS" display below</p>
+    <div id="log">PASS</div>
+    <script>
+        document.getElementById("log").innerHTML = "FAIL";
+    </script>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_none.php b/tct-manual-w3c-tests/csp/csp_script-src_none.php
new file mode 100644 (file)
index 0000000..3ba94e1
--- /dev/null
@@ -0,0 +1,56 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src 'none'"
+echo "X-Content-Security-Policy:script-src 'none'"
+echo "X-WebKit-CSP:script-src 'none'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_none</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src 'none'"/>
+    <meta charset="utf-8"/>
+    <script>
+        function show_fail() {
+            document.getElementById("log").innerHTML = "FAIL";
+        }
+    </script>
+  </head>
+  <body onload="show_fail()">
+    <p>Test passes if text "PASS" appears below.</p>
+    <div id="log">PASS</div>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed.php b/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed.php
new file mode 100644 (file)
index 0000000..319eea6
--- /dev/null
@@ -0,0 +1,54 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-WebKit-CSP:script-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_unsafe-inline_allowed</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a text "PASS" and <strong>no</strong> "FAIL" below.</p>
+    <div id="log">FAIL</div>
+    <script>
+        document.getElementById("log").innerHTML = "PASS";
+    </script>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_event.php b/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_event.php
new file mode 100644 (file)
index 0000000..836bf4b
--- /dev/null
@@ -0,0 +1,56 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-WebKit-CSP:script-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_unsafe-inline_allowed_event</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <script>
+        function test() {
+            document.getElementById("log").innerHTML = "PASS";
+        }
+    </script>
+  </head>
+  <body onload="test()">
+    <p>Test passes if there is a text "PASS" and <strong>no</strong> "FAIL" below.</p>
+    <div id="log">FAIL</div>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_iframe.php b/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_iframe.php
new file mode 100644 (file)
index 0000000..886f524
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-WebKit-CSP:script-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_unsafe-inline_allowed_iframe</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+    <script>
+        function test() {
+            document.getElementById("log").innerHTML = "PASS";
+        }
+    </script>
+  </head>
+  <body>
+    <p>Test passes if there is a text "PASS" and <strong>no</strong> "FAIL" below.</p>
+    <div id="log">FAIL</div>
+    <iframe src="javascript:parent.test()"></iframe>
+  </body>
+</html> '
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_ext.php b/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_ext.php
new file mode 100644 (file)
index 0000000..33c1aa0
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-WebKit-CSP:script-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_unsafe-inline_blocked_ext</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a text "PASS" and <strong>no</strong> "FAIL" below.</p>
+    <div id="log">PASS</div>
+    <script src="http://127.0.0.1:8081/opt/tct-manual-w3c-tests/csp/support/test.js"></script>
+    <script>
+        if (typeof getVideoURI == "function") {
+            document.getElementById("log").innerHTML = "FAIL";
+        }
+    </script>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_int.php b/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_int.php
new file mode 100644 (file)
index 0000000..d98cb64
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+echo "Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-Content-Security-Policy:script-src 'unsafe-inline'"
+echo "X-WebKit-CSP:script-src 'unsafe-inline'"
+echo
+echo '<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSP Test: csp_script-src_unsafe-inline_blocked_int</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="script-src 'unsafe-inline'"/>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+    <p>Test passes if there is a text "PASS" and <strong>no</strong> "FAIL" below.</p>
+    <div id="log">PASS</div>
+    <script src="support/csp.js"></script>
+    <script>
+        if (typeof X == "number") {
+            document.getElementById("log").innerHTML = "FAIL";
+        }
+    </script>
+  </body>
+</html> '
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/support/COPYING b/tct-manual-w3c-tests/csp/support/COPYING
new file mode 100644 (file)
index 0000000..2374845
--- /dev/null
@@ -0,0 +1,53 @@
+CanvasTest.ttf comes from
+http://w3c-test.org/html/tests/approved/fonts/CanvasTest.ttf
+without any modification.
+
+csstest-basic-bold.ttf comes from
+http://test.csswg.org/source/approved/fonts/CSSTest/csstest-basic-bold.ttf
+without any modification.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
+
+-------------------------------
+blue-100x100.png
+green-100x100.png
+red-100x100.png
+
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+
+-------------------------------
diff --git a/tct-manual-w3c-tests/csp/support/CanvasTest.ttf b/tct-manual-w3c-tests/csp/support/CanvasTest.ttf
new file mode 100644 (file)
index 0000000..9023592
Binary files /dev/null and b/tct-manual-w3c-tests/csp/support/CanvasTest.ttf differ
diff --git a/tct-manual-w3c-tests/csp/support/Makefile.am b/tct-manual-w3c-tests/csp/support/Makefile.am
new file mode 100644 (file)
index 0000000..bca7fcb
--- /dev/null
@@ -0,0 +1,3 @@
+cspsupport_SCRIPTS = *
+cspsupportdir = /opt/tct-manual-w3c-tests/csp/support
+EXTRA_DIST = $(cspsupport_SCRIPTS)
diff --git a/tct-manual-w3c-tests/csp/support/blue-100x100.png b/tct-manual-w3c-tests/csp/support/blue-100x100.png
new file mode 100644 (file)
index 0000000..584f9c3
Binary files /dev/null and b/tct-manual-w3c-tests/csp/support/blue-100x100.png differ
diff --git a/tct-manual-w3c-tests/csp/support/canvas-index.css b/tct-manual-w3c-tests/csp/support/canvas-index.css
new file mode 100644 (file)
index 0000000..3e09ffb
--- /dev/null
@@ -0,0 +1,31 @@
+body {
+    font-size: small;
+    font-family: sans-serif;
+}
+
+a {
+    text-decoration: none;
+}
+
+a:hover {
+    text-decoration: underline;
+}
+
+h3 {
+    display: inline;
+    font-size: medium;
+}
+
+h3 + p {
+    display: inline;
+    margin-left: 0.5em;
+}
+
+li {
+    list-style-type: none;
+}
+
+ul {
+    padding-left: 2em;
+    margin-left: 0;
+}
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/support/csp.js b/tct-manual-w3c-tests/csp/support/csp.js
new file mode 100644 (file)
index 0000000..de46ff6
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
+
+*/
+
+var X = 10;
+var Y = eval(X + 17);
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf b/tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf
new file mode 100644 (file)
index 0000000..8c53e6f
Binary files /dev/null and b/tct-manual-w3c-tests/csp/support/csstest-basic-bold.ttf differ
diff --git a/tct-manual-w3c-tests/csp/support/green-100x100.png b/tct-manual-w3c-tests/csp/support/green-100x100.png
new file mode 100644 (file)
index 0000000..d3aea5d
Binary files /dev/null and b/tct-manual-w3c-tests/csp/support/green-100x100.png differ
diff --git a/tct-manual-w3c-tests/csp/support/red-100x100.png b/tct-manual-w3c-tests/csp/support/red-100x100.png
new file mode 100644 (file)
index 0000000..d13fc80
Binary files /dev/null and b/tct-manual-w3c-tests/csp/support/red-100x100.png differ
diff --git a/tct-manual-w3c-tests/csp/support/test.js b/tct-manual-w3c-tests/csp/support/test.js
new file mode 100644 (file)
index 0000000..5198e76
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+*/
+
+var q = null;
+function getVideoURI (){
+
+}
diff --git a/tct-manual-w3c-tests/custom.png b/tct-manual-w3c-tests/custom.png
new file mode 100644 (file)
index 0000000..6bdebd1
Binary files /dev/null and b/tct-manual-w3c-tests/custom.png differ
diff --git a/tct-manual-w3c-tests/extra/Makefile.am b/tct-manual-w3c-tests/extra/Makefile.am
new file mode 100644 (file)
index 0000000..f87aa2a
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = attributes browsers dom semantics w3c xhtml5
diff --git a/tct-manual-w3c-tests/extra/attributes/Makefile.am b/tct-manual-w3c-tests/extra/attributes/Makefile.am
new file mode 100644 (file)
index 0000000..eb05558
--- /dev/null
@@ -0,0 +1,5 @@
+SUBDIRS = w3c
+attributes_SCRIPTS = *
+attributesdir = /opt/tct-manual-w3c-tests/extra/attributes
+EXTRA_DIST = $(attributes_SCRIPTS)
+
diff --git a/tct-manual-w3c-tests/extra/attributes/w3c/COPYING b/tct-manual-w3c-tests/extra/attributes/w3c/COPYING
new file mode 100644 (file)
index 0000000..6232633
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without any modification except necessary adjustment on reference path
+to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/extra/attributes/w3c/Makefile.am b/tct-manual-w3c-tests/extra/attributes/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..e0b66f9
--- /dev/null
@@ -0,0 +1,3 @@
+attributesw3c_SCRIPTS = *
+attributesw3cdir = /opt/tct-manual-w3c-tests/extra/attributes/w3c
+EXTRA_DIST = $(attributesw3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm b/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm
new file mode 100644 (file)
index 0000000..2e55e46
--- /dev/null
@@ -0,0 +1,149 @@
+<!DOCTYPE HTML>
+<head>
+<title>HTMLAnchorElement href Attribute Test</title>
+<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+<link rel="help" href="http://dev.w3.org/html5/spec/text-level-semantics.html#the-a-element" />
+</head>
+<body onload='runTests()'>
+<script src="../../../common/domtestcase.js" type="text/javascript" ></script>
+<script type="text/javascript">
+
+// The anchor tags used for the test are at the bottom of the page
+// The table below contains the tests
+// For each row in the test, test_href is called, which maps to the tag, description and value
+// Failures details show up as console.log events
+
+function test_href(testnumber, value)
+{
+    try
+    {
+        oAnchor     = document.getElementById('anchor_' + testnumber);
+
+        description = document.getElementById('test_' + testnumber + '_description').innerHTML;
+        value       = document.getElementById('test_' + testnumber + '_value').innerHTML;
+
+               // null needs to be special cased, same with an empty string
+        if( value == 'null')
+        {
+            value = null;
+        }
+        else if( value == 'empty string')
+        {
+            value = '';
+        }
+
+        assertEquals(description, value, oAnchor.getAttribute('href'));
+
+        oAnchor.setAttribute('href', '');
+        assertEquals(description, '', oAnchor.getAttribute('href'));
+
+               // remove the attribute for null
+        if (value == null)
+        {
+            oAnchor.removeAttribute('href');
+        }
+        else
+        {
+            oAnchor.setAttribute('href', value);
+        }
+        assertEquals(description, value, oAnchor.getAttribute('href'));
+
+        document.getElementById('test_'+ testnumber +'_result').innerHTML = 'Pass';
+    }
+    catch(e)
+    {
+        console.log(e);
+        document.getElementById('test_' + testnumber + '_result').innerHTML = 'Fail';
+    }
+}
+
+function runTests()
+{
+    var iTests = document.getElementById('testtable').rows.length;
+
+    for (var iTest=1;iTest<iTests;iTest++)
+    {
+        test_href(iTest);
+    }
+}
+</script>
+<pre>
+HTMLAnchorElement Tests For The 'href' attribute
+</pre>
+<table id='testtable' border='1'>
+<tr>
+ <td>Test Result</td><td>Test Description</td><td>Test Value</td>
+</tr>
+<tr>
+ <td id='test_1_result'></td>
+ <td id='test_1_description'>Test get/set on a relative href attribute</td>
+ <td id='test_1_value'>anchor.htm</td>
+</tr>
+<tr>
+ <td id='test_2_result'></td>
+ <td id='test_2_description'>Test get/set on a absolute href attribute</td>
+ <td id='test_2_value'>http://somesite.com/anchor.htm</td>
+</tr>
+<tr>
+ <td id='test_3_result'></td>
+ <td id='test_3_description'>Test href attribute is an empty string</td>
+ <td id='test_3_value'>empty string</td>
+</tr>
+<tr>
+ <td id='test_4_result'></td>
+ <td id='test_4_description'>Test for non-existent href attribute</td>
+ <td id='test_4_value'>null</td>
+</tr>
+<tr>
+ <td id='test_5_result'></td>
+ <td id='test_5_description'>Test that a href attribute contains search string</td>
+ <td id='test_5_value'>http://www.anothersite.com/path/page.htm?parameter=this%20is%a%20parameter</td>
+</tr>
+<tr>
+ <td id='test_6_result'></td>
+ <td id='test_6_description'>Test that a href attribute contains the username/password and the search string</td>
+ <td id='test_6_value'>http://username:password@www.anothersite.com/path/page.htm?parameter=this%20is%a%20parameter</td>
+</tr>
+<tr>
+ <td id='test_7_result'></td>
+ <td id='test_7_description'>Test that a href attribute has not been lowercased</td>
+ <td id='test_7_value'>http://WWW.SomeSite.com/INDEX.html</td>
+</tr>
+</table>
+<pre>
+http://dev.w3.org/html5/spec/text-level-semantics.html#the-a-element
+
+interface HTMLAnchorElement : HTMLElement {
+  stringifier attribute DOMString href;
+           attribute DOMString target;
+           attribute DOMString rel;
+  readonly attribute DOMTokenList relList;
+           attribute DOMString media;
+           attribute DOMString hreflang;
+           attribute DOMString type;
+           attribute DOMString text;
+
+  // URL decomposition IDL attributes
+           attribute DOMString protocol;
+           attribute DOMString host;
+           attribute DOMString hostname;
+           attribute DOMString port;
+           attribute DOMString pathname;
+           attribute DOMString search;
+           attribute DOMString hash;
+};
+</pre>
+
+<hr>
+<div id='tags'>Tags Used For Testing</div>
+<a id='anchor_1' href='anchor.htm'>Simple Anchor Relative Path</a><br>
+<a id='anchor_2' href='http://somesite.com/anchor.htm'>Simple Anchor Non-Relative Path</a><br>
+<a id='anchor_3' href=''>Empty String Anchor</a><br>
+<a id='anchor_4'>Anchor with no attributes</a><br>
+<a id='anchor_5' href='http://www.anothersite.com/path/page.htm?parameter=this%20is%a%20parameter'>href with a search string that is urlencoded</a><br>
+<a id='anchor_6' href='http://username:password@www.anothersite.com/path/page.htm?parameter=this%20is%a%20parameter'>href with a username, password and search string that is urlencoded</a><br>
+<a id='anchor_7' href='http://WWW.SomeSite.com/INDEX.html'>Simple Anchor with some uppercase letters</a><br>
+<hr>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/browsers/Makefile.am b/tct-manual-w3c-tests/extra/browsers/Makefile.am
new file mode 100644 (file)
index 0000000..c0e9d82
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = the-window-object
diff --git a/tct-manual-w3c-tests/extra/browsers/the-window-object/Makefile.am b/tct-manual-w3c-tests/extra/browsers/the-window-object/Makefile.am
new file mode 100644 (file)
index 0000000..c0e9d82
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = the-window-object
diff --git a/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/Makefile.am b/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/Makefile.am
new file mode 100644 (file)
index 0000000..dd49a11
--- /dev/null
@@ -0,0 +1,3 @@
+object_SCRIPTS = *
+objectdir = /opt/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object
+EXTRA_DIST = $(object_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_alert_base.html b/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_alert_base.html
new file mode 100644 (file)
index 0000000..0eec143
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Tan, Shiyou <shiyoux.tan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+<html>
+  <head>
+    <title>the-window-object Test: window_alert_base</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/">
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#window">
+    <meta name="flags" content="interact">
+    <meta name="assert" content="Check if alert method displays a modal alert with the given message">
+  </head>
+  <body>
+    <p><strong>Test steps:</strong></p>
+    <pre>
+        1. Click on alert button.
+        Test passes if the page displays a modal alert with the message 'PASS'.
+    </pre>
+    <button id="btn">alert</button>
+    <script type="text/javascript">
+        document.getElementById('btn').onclick = function () {
+            window.alert('PASS');
+        };
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_confirm_base.html b/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_confirm_base.html
new file mode 100644 (file)
index 0000000..d332c10
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Tan, Shiyou <shiyoux.tan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+<html>
+  <head>
+    <title>the-window-object Test: window_confirm_base</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/">
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#window">
+    <meta name="flags" content="interact">
+    <meta name="assert" content="Check if the confirm method displays a modal OK/Cancel prompt with the given message">
+  </head>
+  <body>
+    <p><strong>Test steps:</strong></p>
+    <pre>
+        1. Click on Confirm button.
+        Test passes if the page displays a modal OK/Cancel prompt with the message 'Are you ok?'.
+    </pre>
+    <button id="btn">Confirm</button>
+    <script type="text/javascript">
+        document.getElementById('btn').onclick = function () {
+            window.confirm('Are you ok?');
+        };
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_prompt_base.html b/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_prompt_base.html
new file mode 100644 (file)
index 0000000..402585b
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Tan, Shiyou <shiyoux.tan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+<html>
+  <head>
+    <title>the-window-object Test: window_prompt_base</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/">
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#window">
+    <meta name="flags" content="interact">
+    <meta name="assert" content="Check if the prompt displays a modal text field prompt with the given message">
+  </head>
+  <body>
+    <p><strong>Test steps:</strong></p>
+    <pre>
+        1. Click on Prompt button.
+        Test passes if the page displays a modal text field prompt with the given message '1 + 1 = ?'.
+    </pre>
+    <button id="btn">Prompt</button>
+    <script type="text/javascript">
+        document.getElementById('btn').onclick = function () {
+            window.prompt("1 + 1 = ?");
+        };
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/dom/Makefile.am b/tct-manual-w3c-tests/extra/dom/Makefile.am
new file mode 100644 (file)
index 0000000..2826ba8
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = documents
+dom_SCRIPTS = *
+domdir = /opt/tct-manual-w3c-tests/extra/dom
+EXTRA_DIST = $(dom_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/dom/documents/Makefile.am b/tct-manual-w3c-tests/extra/dom/documents/Makefile.am
new file mode 100644 (file)
index 0000000..cc3d8b1
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = the-document-object
+documents_SCRIPTS = *
+documentsdir = /opt/tct-manual-w3c-tests/extra/dom/documents
+EXTRA_DIST = $(documents_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/dom/documents/the-document-object/Makefile.am b/tct-manual-w3c-tests/extra/dom/documents/the-document-object/Makefile.am
new file mode 100644 (file)
index 0000000..5ca1d0d
--- /dev/null
@@ -0,0 +1,3 @@
+document_object_SCRIPTS = *
+document_objectdir = /opt/tct-manual-w3c-tests/extra/dom/documents/the-document-object
+EXTRA_DIST = $(document_object_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_onchange_event.html b/tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_onchange_event.html
new file mode 100755 (executable)
index 0000000..6708e9f
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Xu, YuhanX <yuhanx.xu@intel.com>
+
+-->
+<html>
+  <head>
+    <title>Document Test: document_onchange_event</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/dom.html#documents" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the document onchange event implements success" />
+  </head>
+  <body>
+    <p>Test passes if the below content of input area changes to 'PASS' when input content and click the other area</p>
+    <input></input>
+    <p id="test"></p>
+    <script type="text/javascript">
+        document.onchange = function(ev){
+          var con =  document.querySelector("#test");
+          con.innerText = "PASS";
+        };
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_oninput_event.html b/tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_oninput_event.html
new file mode 100755 (executable)
index 0000000..8ddd6e6
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Xu, YuhanX <yuhanx.xu@intel.com>
+
+-->
+<html>
+  <head>
+    <title>Document Test: document_oninput_event</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/dom.html#documents" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the document oninput event implements success" />
+  </head>
+  <body>
+    <textarea></textarea>
+    <p>Test passes if the below content changes to 'PASS' when input content in above textarea</p>
+    <p id="test"></p>
+    <script type="text/javascript">
+        document.oninput = function(e) {
+            var con =  document.querySelector("#test");
+            con.innerText = "PASS";
+        };
+    </script>
+    </pre>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/semantics/Makefile.am b/tct-manual-w3c-tests/extra/semantics/Makefile.am
new file mode 100644 (file)
index 0000000..62a1b9c
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = forms grouping-content text-level-semantics
diff --git a/tct-manual-w3c-tests/extra/semantics/forms/Makefile.am b/tct-manual-w3c-tests/extra/semantics/forms/Makefile.am
new file mode 100644 (file)
index 0000000..ad89c14
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = the-textarea-element
+forms_SCRIPTS = *
+formsdir = /opt/tct-manual-w3c-tests/extra/semantics/forms
+EXTRA_DIST = $(forms_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element/Makefile.am b/tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element/Makefile.am
new file mode 100644 (file)
index 0000000..7b01422
--- /dev/null
@@ -0,0 +1,3 @@
+textarea_element_SCRIPTS = *
+textarea_elementdir = /opt/tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element
+EXTRA_DIST = $(textarea_element_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element/textarea_element_maxLength.html b/tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element/textarea_element_maxLength.html
new file mode 100644 (file)
index 0000000..7575bca
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Xu, YuhanX <yuhanx.xu@intel.com>
+
+-->
+<html>
+  <head>
+    <meta charset="utf-8">
+    <title>HTML Test: textarea_element_maxLength</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/">
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/forms.html#the-textarea-element">
+  </head>
+  <body>
+    <p>Test passes if only input no more than 5 characters in the input area</p>
+    <textarea maxLength=5></textarea>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/semantics/grouping-content/Makefile.am b/tct-manual-w3c-tests/extra/semantics/grouping-content/Makefile.am
new file mode 100644 (file)
index 0000000..1e7fd66
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = the-figcaption-element the-figure-element
diff --git a/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element/Makefile.am b/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element/Makefile.am
new file mode 100644 (file)
index 0000000..9d90d80
--- /dev/null
@@ -0,0 +1,3 @@
+figcaption_SCRIPTS = *
+figcaptiondir = /opt/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element
+EXTRA_DIST = $(figcaption_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element/figcaption_element.html b/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element/figcaption_element.html
new file mode 100644 (file)
index 0000000..449495b
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Xinx, liu <xinx.liu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>Grouping content: figcaption_element</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/grouping-content.html#the-figcaption-element" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check the figcaption element visual effect" />
+  </head>
+  <body>
+    <p>Test passes if the indent of the below two lines are different</p>
+    <figure>
+      <figcaption>a b c d e f g h i j k l m</figcaption>
+    </figure>
+    <figcaption>a b c d e f g h i j k l m</figcaption>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element/Makefile.am b/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element/Makefile.am
new file mode 100644 (file)
index 0000000..485947d
--- /dev/null
@@ -0,0 +1,3 @@
+figure_SCRIPTS = *
+figuredir = /opt/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element
+EXTRA_DIST = $(figure_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element/figure_element.html b/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element/figure_element.html
new file mode 100644 (file)
index 0000000..bf53ab5
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Xinx, liu <xinx.liu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>Grouping content: figure_element</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/grouping-content.html#the-figure-element" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check the figure element visual effect" />
+  </head>
+  <body>
+    <p>Test passes if the indent of the below two lines are different</p>
+    <figure>
+      <figcaption>a b c d e f g h i j k l m</figcaption>
+    </figure>
+    <p>a b c d e f g h i j k l m</p>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/semantics/text-level-semantics/Makefile.am b/tct-manual-w3c-tests/extra/semantics/text-level-semantics/Makefile.am
new file mode 100644 (file)
index 0000000..12bb35f
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = the-mark-element
diff --git a/tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element/Makefile.am b/tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element/Makefile.am
new file mode 100644 (file)
index 0000000..873e2af
--- /dev/null
@@ -0,0 +1,3 @@
+mark_SCRIPTS = *
+markdir = /opt/tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element
+EXTRA_DIST = $(mark_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element/mark_element_base_usage.html b/tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element/mark_element_base_usage.html
new file mode 100644 (file)
index 0000000..ec213d0
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Xinx, liu <xinx.liu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>Text-level semantics Test: mark_element_base_usage</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/">
+    <link rel="help" href="http://www.w3.org/TR/2012/CR-html5-20121217/text-level-semantics.html#the-mark-element">
+    <meta name="flags" content="interact">
+    <meta name="assert" content="Check if the mark element represents a run of text in one document marked or highlighted for reference purposes">
+  </head>
+  <body>
+    <p>Test passes if the highlighted part below is 1.1.</p>
+      <pre>
+        <code>
+          var i: Integer;
+          begin
+          i := <mark>1.1</mark>;
+          end.
+        </code>
+      </pre>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/extra/w3c/COPYING b/tct-manual-w3c-tests/extra/w3c/COPYING
new file mode 100644 (file)
index 0000000..6232633
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without any modification except necessary adjustment on reference path
+to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/extra/w3c/Makefile.am b/tct-manual-w3c-tests/extra/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..de2457e
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = semantics editing
diff --git a/tct-manual-w3c-tests/extra/w3c/editing/Makefile.am b/tct-manual-w3c-tests/extra/w3c/editing/Makefile.am
new file mode 100644 (file)
index 0000000..60c42f4
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = the-hidden-attribute
diff --git a/tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute/Makefile.am b/tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute/Makefile.am
new file mode 100644 (file)
index 0000000..c4a9a0c
--- /dev/null
@@ -0,0 +1,3 @@
+hidden_SCRIPTS = *
+hiddendir = /opt/tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute
+EXTRA_DIST = $(hidden_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute/hidden-1a.html b/tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute/hidden-1a.html
new file mode 100644 (file)
index 0000000..7ad39f4
--- /dev/null
@@ -0,0 +1,7 @@
+<!doctype html>
+<title>The hidden attribute</title>
+<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
+<link rel=help href=http://www.whatwg.org/html/#the-hidden-attribute>
+<link rel=help href=http://www.whatwg.org/html/#hidden-elements>
+<p>This line should be visible.
+<p hidden>This line should not be visible.
diff --git a/tct-manual-w3c-tests/extra/w3c/semantics/Makefile.am b/tct-manual-w3c-tests/extra/w3c/semantics/Makefile.am
new file mode 100644 (file)
index 0000000..e7fe226
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = grouping-content
diff --git a/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/Makefile.am b/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/Makefile.am
new file mode 100644 (file)
index 0000000..bff9ffd
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = the-ol-element
diff --git a/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element/Makefile.am b/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element/Makefile.am
new file mode 100644 (file)
index 0000000..39c2eb2
--- /dev/null
@@ -0,0 +1,3 @@
+ol_SCRIPTS = *
+oldir = /opt/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element
+EXTRA_DIST = $(ol_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element/reversed-1a.html b/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element/reversed-1a.html
new file mode 100644 (file)
index 0000000..35e967c
--- /dev/null
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<ol reversed>
+  <li>Three</li>
+  <li>Two</li>
+  <li>One</li>
+</ol>
diff --git a/tct-manual-w3c-tests/extra/xhtml5/Makefile.am b/tct-manual-w3c-tests/extra/xhtml5/Makefile.am
new file mode 100644 (file)
index 0000000..746413e
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c images
+xhtml5_SCRIPTS = *
+xhtml5dir = /opt/tct-manual-w3c-tests/extra/xhtml5
+EXTRA_DIST = $(xhtml5_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/COPYING b/tct-manual-w3c-tests/extra/xhtml5/images/COPYING
new file mode 100644 (file)
index 0000000..eb9ad7c
--- /dev/null
@@ -0,0 +1,11 @@
+These image files come from http://w3c-test.org/html/tests/approved/images/
+without any modification.
+
+The images are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
+Other green-256x256 images are saved as .bmp, .gif, .jpg from green-256x256.png by using Win7 default 'Paint' application
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/Makefile.am b/tct-manual-w3c-tests/extra/xhtml5/images/Makefile.am
new file mode 100644 (file)
index 0000000..e02f822
--- /dev/null
@@ -0,0 +1,3 @@
+xhtml5images_SCRIPTS = *
+xhtml5imagesdir = /opt/tct-manual-w3c-tests/extra/xhtml5/images
+EXTRA_DIST = $(xhtml5images_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/blue-area.png b/tct-manual-w3c-tests/extra/xhtml5/images/blue-area.png
new file mode 100755 (executable)
index 0000000..570ae0f
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/images/blue-area.png differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/blue-border.png b/tct-manual-w3c-tests/extra/xhtml5/images/blue-border.png
new file mode 100755 (executable)
index 0000000..8f8e41c
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/images/blue-border.png differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/blue.png b/tct-manual-w3c-tests/extra/xhtml5/images/blue.png
new file mode 100644 (file)
index 0000000..4498dd2
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/images/blue.png differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.bmp b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.bmp
new file mode 100755 (executable)
index 0000000..1c5975d
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.bmp differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.gif b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.gif
new file mode 100755 (executable)
index 0000000..45441e9
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.gif differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.jpg b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.jpg
new file mode 100755 (executable)
index 0000000..0da9c8e
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.jpg differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.png b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.png
new file mode 100755 (executable)
index 0000000..b06945c
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/images/green-256x256.png differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/COPYING b/tct-manual-w3c-tests/extra/xhtml5/w3c/COPYING
new file mode 100644 (file)
index 0000000..6232633
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without any modification except necessary adjustment on reference path
+to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/Makefile.am b/tct-manual-w3c-tests/extra/xhtml5/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..011388e
--- /dev/null
@@ -0,0 +1,3 @@
+xhtml5w3c_SCRIPTS = *
+xhtml5w3cdir = /opt/tct-manual-w3c-tests/extra/xhtml5/w3c
+EXTRA_DIST = $(xhtml5w3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/area_noref.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/area_noref.xhtml
new file mode 100644 (file)
index 0000000..bf5974c
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/w3c/area_noref.xhtml differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/body_link.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/body_link.xhtml
new file mode 100644 (file)
index 0000000..d66d416
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/w3c/body_link.xhtml differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/body_text_00ffff.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/body_text_00ffff.xhtml
new file mode 100644 (file)
index 0000000..f63c52f
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/w3c/body_text_00ffff.xhtml differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/html_style_in_comment.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/html_style_in_comment.xhtml
new file mode 100644 (file)
index 0000000..f49fc88
--- /dev/null
@@ -0,0 +1,17 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<style type="text/css">
+h4 {color: green}
+<!--
+h4 {color: red}
+-->
+</style>
+</head>
+<body>
+<p> This page tests that Style written inside HTML comment is not applied</p>
+This test passes if the text below is <b>Green. NOT Red.</b>
+<h4>
+This is some text.
+</h4>
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/img_border_percent.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/img_border_percent.xhtml
new file mode 100644 (file)
index 0000000..cc08ee5
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/w3c/img_border_percent.xhtml differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_perc.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_perc.xhtml
new file mode 100644 (file)
index 0000000..a90597c
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_perc.xhtml differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_pixel.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_pixel.xhtml
new file mode 100644 (file)
index 0000000..ff7aa43
Binary files /dev/null and b/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_pixel.xhtml differ
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/test-area.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/test-area.xhtml
new file mode 100755 (executable)
index 0000000..1c7dc95
--- /dev/null
@@ -0,0 +1,9 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title> This is a test page</title>
+</head>
+<body>
+This is a simple xhtml page
+<p><a href="area_noref.xhtml">Click here</a> to go back to the previous page</p>
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/extra/xhtml5/w3c/test-body.xhtml b/tct-manual-w3c-tests/extra/xhtml5/w3c/test-body.xhtml
new file mode 100755 (executable)
index 0000000..cd733b1
--- /dev/null
@@ -0,0 +1,8 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title> This is a test page</title>
+</head>
+<body>
+<p> To rerun this test, delete history and go <a href="body_link.xhtml">back </a> to previous test.</p>
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/fileapi/Blob_size_type.html b/tct-manual-w3c-tests/fileapi/Blob_size_type.html
new file mode 100644 (file)
index 0000000..2c0fc9b
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Jin,Weihu <weihux.jin@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: Blob_size_type</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-size" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check the attribute of the interface Blob size is number type" />
+    <script type="text/javascript" src="../resources/testharness.js"></script>
+    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <input id="fileUplodad" type="file" multiple size="80" onchange="showFileList()" />
+    <h3>Please upload a file</h3>
+    <div id="log"></div>
+    <script type="text/javascript">
+        var t = async_test(document.title);
+        setup({timeout : 3600000});
+        function showFileList() {
+            var blob = document.getElementById("fileUplodad").files[0];
+            var fileSize= blob.size;
+            t.step(function () {
+                assert_true(typeof fileSize === "number","The Blob.size type is not number");
+            });
+            t.done();
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/fileapi/Blob_type_normal.html b/tct-manual-w3c-tests/fileapi/Blob_type_normal.html
new file mode 100644 (file)
index 0000000..95fc8f0
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Jin,Weihu <weihux.jin@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: Blob_type_normal</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-type" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the attribute type value of interface Blob return the media type" />
+    <script type="text/javascript" src="filesupport.js"></script>
+    <script type="text/javascript" src="../resources/testharness.js"></script>
+    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <input id="fileUplodad" type="file" multiple size="80" onchange="showFileList()" />
+    <h3>Please upload a html file.</h3>
+    <div id="log"></div>
+    <script type="text/javascript">
+        var t = async_test(document.title);
+        setup({timeout : 3600000});
+        function showFileList() {
+            var blob = document.getElementById("fileUplodad").files[0];
+            var fileType = blob.type;
+            if (fileType != undefined && fileType == "text/html") {
+                PassTest();
+            } else {
+                FailTest();
+            }
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/fileapi/Blob_type_type.html b/tct-manual-w3c-tests/fileapi/Blob_type_type.html
new file mode 100644 (file)
index 0000000..1eef77b
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Jin,Weihu <weihux.jin@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: Blob_type_type</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-type" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the attribute type value of interface Blob is string type" />
+    <script type="text/javascript" src="filesupport.js"></script>
+    <script type="text/javascript" src="../resources/testharness.js"></script>
+    <script type="text/javascript" src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <input id="fileUplodad" type="file" multiple size="80" onchange="showFileList()" />
+    <h3>Please upload a file</h3>
+    <div id="log"></div>
+    <script type="text/javascript">
+        var t = async_test(document.title);
+        setup({timeout : 3600000});
+        function showFileList() {
+            var blob = document.getElementById("fileUplodad").files[0];
+            var fileType = blob.type;
+            if (typeof fileType === "string") {
+                PassTest();
+            } else {
+                FailTest();
+            }
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/fileapi/Makefile.am b/tct-manual-w3c-tests/fileapi/Makefile.am
new file mode 100644 (file)
index 0000000..98890f0
--- /dev/null
@@ -0,0 +1,3 @@
+fileapi_SCRIPTS = *
+fileapidir = /opt/tct-manual-w3c-tests/fileapi
+EXTRA_DIST = $(fileapi_SCRIPTS)
diff --git a/tct-manual-w3c-tests/fileapi/filesupport.js b/tct-manual-w3c-tests/fileapi/filesupport.js
new file mode 100644 (file)
index 0000000..912f63b
--- /dev/null
@@ -0,0 +1,88 @@
+/*
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+*/
+
+    var blockbuilder;
+    function initBlobBuilder() {
+        if (!blockbuilder) {
+            try {
+                blockbuilder = new BlobBuilder();
+            } catch (e) {}
+
+            try {
+                blockbuilder = new MSBlobBuilder();
+            } catch (e) {}
+
+            try {
+                blockbuilder = new WebKitBlobBuilder();
+            } catch (e) {}
+
+            try {
+                blockbuilder = new MozBlobBuilder();
+            } catch (e) {}
+        }
+        return blockbuilder;
+    }
+
+    function PassTest(desc) {
+        t.step(function() { assert_true(true, desc); } );
+        t.done();
+    }
+
+    function FailTest(desc) {
+        t.step(function() { assert_true(false, desc); } );
+        t.done();
+    }
+
+    function ExistTest(obj, propertyName, desc) {
+        t.step(function() {
+            assert_exists(obj, propertyName, desc);
+        });
+        t.done();
+    }
+    function testLog(pass, desc) {
+        var span = document.createElement("span");
+        span.style.cssText = "display:inline-block; width:80px; text-align:center;"
+        if (pass) {
+            span.style["color"] = "green";
+            span.innerHTML = "Pass";
+        }
+        else {
+            span.style["color"] = "red";
+            span.innerHTML = "Fail";
+        }
+        var spandesc = document.createElement("span");
+        spandesc.style.cssText = "padding-left:20px;"
+        spandesc.innerHTML = desc;
+        document.getElementById("log").appendChild(span);
+        document.getElementById("log").appendChild(spandesc);
+        document.getElementById("log").style.cssText = "height:45px; line-height:45px; border:#000 solid; border-width:3px 0 1px 0; font-weight:bold;";
+    }
diff --git a/tct-manual-w3c-tests/manifest.json b/tct-manual-w3c-tests/manifest.json
new file mode 100644 (file)
index 0000000..07eae4f
--- /dev/null
@@ -0,0 +1,12 @@
+{
+    "version": "0.0.1",
+    "name": "tct-manual-w3c-tests",
+    "permissions": ["tabs", "unlimited_storage", "notifications", "http://*/*", "https://*/*"],
+    "description": "tct-manual-w3c-tests",
+    "file_name": "manifest.json",
+    "app": {
+        "launch": {
+            "local_path": "index.html"
+        }
+    }
+}
diff --git a/tct-manual-w3c-tests/pack.sh b/tct-manual-w3c-tests/pack.sh
new file mode 100755 (executable)
index 0000000..d9e3057
--- /dev/null
@@ -0,0 +1,167 @@
+#!/bin/bash
+#
+# Authors:
+#         Jing Wang <jing.j.wang@intel.com>
+#         Huajun Li <huajun.li@intel.com>
+#         Yugang Fan <yugang.fan@intel.com>
+#
+# script create rpm package
+
+#parse params
+USAGE="Usage: ./pack.sh [-t <package type: all | crx | wgt | zip>]"
+
+platforms=""
+blacklists=""
+if [ -d "resources" ]; then
+    blacklists=`ls resources/blacklist.* | sed 's/resources\/blacklist.//g'`
+fi
+if [[ "$blacklists" != "" ]]; then
+    platforms=`echo $blacklists | sed 's/ / \| /g' | sed 's/\ | default//g'`
+fi
+
+if [[ $1 == "-h" || $1 == "--help" ]]; then
+    if [[ $platforms != "" ]]; then
+        echo $USAGE "[-p "$platforms"]"
+    else
+        echo $USAGE
+    fi
+    echo "Create package with wgt and raw source by default"
+    exit 1
+fi
+
+type="wgt"
+platform="default"
+while getopts t:p: o
+do
+    case "$o" in
+    t) type=$OPTARG;;
+    p) platform=$OPTARG;;
+    *) echo $USAGE "[-p "$platforms"]"
+       echo "Create package with wgt and raw source by default"
+       exit 1;;
+    esac
+done
+
+if [ -f "resources/blacklist.$platform" ]; then
+    cp -f resources/blacklist.$platform  resources/blacklist.js
+elif [[ $platform != "default" ]]; then
+    echo "No such platform: $platform"
+    exit 1
+fi
+
+echo "Create package with $type and raw source"
+sleep 3
+
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+       echo "Name not specified in spec file"
+       exit 1
+fi
+
+
+# parse spec required version
+VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
+if [ -z "$VERSION" ];then
+       echo "Version not specified in spec file"
+       exit 1
+fi
+
+SRC_ROOT=${PWD}
+RPM_ROOT=/tmp/${NAME}_pack
+ARCHIVE_TYPE=tar.gz    #tar.gz2
+ARCHIVE_OPTION=czvf    #cjvf
+
+# check precondition
+check_precondition()
+{
+    which $1 > /dev/null 2>&1
+    if [ $? -ne 0 ]; then
+        echo "Error: no tool: $1"
+        exit 1
+    fi
+}
+check_precondition rpmbuild
+check_precondition gcc
+check_precondition make
+
+
+# clean
+echo "cleaning rpm workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+rm -rf $RPM_ROOT
+
+# create workspace
+echo "create rpm workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+mkdir -p $RPM_ROOT/RPMS $RPM_ROOT/SRPMS $RPM_ROOT/SPECS $RPM_ROOT/SOURCES $RPM_ROOT/BUILD $RPM_ROOT/src_tmp/$NAME-$VERSION
+
+# prepare
+echo "prepare workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+rm -rf *.rpm *.tar.bz2 *.tar.gz *.zip
+cp -a $SRC_ROOT/* $RPM_ROOT/src_tmp/$NAME-$VERSION
+
+# copy signing tool
+echo "copy signing tool... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+cp -raf $SRC_ROOT/../tools/signing $RPM_ROOT/signing
+
+# create Makefile in top src folder
+#cp $SRC_ROOT/top_Makefile $RPM_ROOT/src_tmp/$NAME-$VERSION/Makefile
+cp $PWD/${NAME}.spec $RPM_ROOT/SPECS
+cd $RPM_ROOT/src_tmp
+tar $ARCHIVE_OPTION $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $NAME-$VERSION
+cd -
+
+# build
+echo "build from workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+cd  $RPM_ROOT/SPECS
+rpmbuild -ba ${NAME}.spec --clean --define "_topdir $RPM_ROOT" --define="TYPE $type" --target=noarch
+cd -
+
+# copy packages
+echo "copy from workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+echo "get packages......"
+if [ $type == 'all' ]; then
+       find $RPM_ROOT -name "$NAME*.zip" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+       find $RPM_ROOT -name "$NAME*.rpm" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+elif [ $type == 'zip' ]; then
+       find $RPM_ROOT -name "$NAME*.zip" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+       find $RPM_ROOT -name "$NAME*.src.rpm" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+else
+       find $RPM_ROOT -name "$NAME*.rpm" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+fi
+
+if [[ $platform != "" && $platform != "default" ]]; then
+       cd $PWD
+       for file in `ls *.zip`; do
+               new_name=`echo $file | sed "s/\.zip/\.$platform\.zip/g"`
+                mv $file $new_name
+        done
+       for file in `ls *.rpm`; do
+               new_name=`echo $file | sed "s/\.rpm/\.$platform\.rpm/g"`
+                mv $file $new_name
+        done
+        cd -
+fi
+
+echo "get $NAME-$VERSION.$ARCHIVE_TYPE......"
+mv -f $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD
+
+# clean
+echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+rm -rf $RPM_ROOT
+
+# validate
+echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+if [ $type == 'all' ] || [ $type == 'zip' ]; then
+       if [ -z "`ls | grep "\.rpm"`" ] || [ -z "`ls | grep "\.$ARCHIVE_TYPE"`" ] || [ -z "`ls | grep "\.zip"`" ];then
+               echo "------------------------------ FAILED to build $NAME packages --------------------------"
+               exit 1
+       fi              
+else
+       if [ -z "`ls | grep "\.rpm"`" ] || [ -z "`ls | grep "\.$ARCHIVE_TYPE"`" ];then
+               echo "------------------------------ FAILED to build $NAME packages --------------------------"
+               exit 1
+       fi
+fi
+
+echo "------------------------------ Done to build $NAME packages --------------------------"
+ls *.rpm *.$ARCHIVE_TYPE *.zip 2>/dev/null
diff --git a/tct-manual-w3c-tests/pagevisibility/Makefile.am b/tct-manual-w3c-tests/pagevisibility/Makefile.am
new file mode 100644 (file)
index 0000000..1c6fb17
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c
+pagevisibility_SCRIPTS = *
+pagevisibilitydir = /opt/tct-manual-w3c-tests/pagevisibility
+EXTRA_DIST = $(pagevisibility_SCRIPTS)
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/COPYING b/tct-manual-w3c-tests/pagevisibility/w3c/COPYING
new file mode 100644 (file)
index 0000000..be74607
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from https://github.com/w3c/web-platform-tests/tree/master/pagevisibility
+without any modification except the necessary
+adjustment on reference path to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/Makefile.am b/tct-manual-w3c-tests/pagevisibility/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..a0ef28e
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = support
+w3c_SCRIPTS = *
+w3cdir = /opt/tct-manual-w3c-tests/pagevisibility/w3c
+EXTRA_DIST = $(w3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/support/COPYING b/tct-manual-w3c-tests/pagevisibility/w3c/support/COPYING
new file mode 100644 (file)
index 0000000..f6aecb4
--- /dev/null
@@ -0,0 +1,11 @@
+These resources come from https://github.com/w3c/web-platform-tests/tree/master/pagevisibility/resources
+without any modification.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/support/Makefile.am b/tct-manual-w3c-tests/pagevisibility/w3c/support/Makefile.am
new file mode 100644 (file)
index 0000000..e206dfa
--- /dev/null
@@ -0,0 +1,3 @@
+support_SCRIPTS = *
+supportdir = /opt/tct-manual-w3c-tests/pagevisibility/w3c/support
+EXTRA_DIST = $(support_SCRIPTS)
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/support/blank_page_green.htm b/tct-manual-w3c-tests/pagevisibility/w3c/support/blank_page_green.htm
new file mode 100644 (file)
index 0000000..443940f
--- /dev/null
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML><HTML><HEAD>
+<META content="text/html; charset=utf-8" http-equiv="Content-Type"><TITLE>Green 
+Test Page</TITLE>
+<META name="GENERATOR" content="MSHTML 9.00.8112.16437"></HEAD>
+<BODY style="background-color: rgb(0, 255, 0);">
+<H1>Placeholder</H1></BODY></HTML>
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/support/featuredetection.js b/tct-manual-w3c-tests/pagevisibility/w3c/support/featuredetection.js
new file mode 100644 (file)
index 0000000..ec11f9a
--- /dev/null
@@ -0,0 +1,88 @@
+// This function returns the value of an API feature if it is defined with one of
+// the known ventor prefixes. 
+//
+// Parameters:
+//  parent: the object containing the API feature
+//  feature: the name of the API feature, this should be a string value
+//  isAttribute: set this to true to indicate that this is a constant attribute
+//               as opposed to a variable
+function BrowserHasFeature(parent, feature, isAttribute)
+{
+    if (parent[feature] !== undefined)
+    {
+        //feature is defined without a vendor prefix, no further checks necessary
+        return parent[feature];
+    }
+
+    // the feature is not defined without a vendor prefix, so find the vendor prefix, if any,
+    // that it is defined with
+    var prefix = GetVendorPrefix(parent, feature, isAttribute);
+    
+    // if prefix is not undefined, then the feature has been found to exist with this prefix
+    if (prefix !== undefined)
+    {
+        var prefixedFeatureName = AppendPrefix(prefix, feature, isAttribute);
+        return parent[prefixedFeatureName];
+    }
+
+    //The feature does not exist.
+    //Callers should check for !==undefined as the feature itself could return
+    //a Bool which would fail a typical if(feature) check
+    return undefined;
+}
+
+// This function returns the vendor prefix found if a certain feature is defined with it.
+// It takes the same parameters at BrowserHasFeature().
+function GetVendorPrefix(parent, feature, isAttribute)
+{
+    //Known vendor prefixes
+    var VendorPrefixes = ["moz", "ms", "o", "webkit"];
+    for (vendor in VendorPrefixes)
+    {
+        //Build up the new feature name with the vendor prefix
+        var prefixedFeatureName = AppendPrefix(VendorPrefixes[vendor], feature, isAttribute);
+        if (parent[prefixedFeatureName] !== undefined)
+        {
+            //Vendor prefix version exists, return a pointer to the feature
+            return VendorPrefixes[vendor];
+        }
+    }
+    
+    // if no version of the feature with a vendor prefix has been found, return undefined
+    return undefined;
+}
+
+// This will properly capitalize the feature name and then return the feature name preceded
+// with the provided vendor prefix. If the prefix given is undefined, this function will
+// return the feature name given as is. The output of this function should not be used
+// as an indicator of whether or not a feature exists as it will return the same thing if
+// the inputted feature is undefined or is defined without a vendor prefix. It takes the 
+// same parameters at BrowserHasFeature().
+function AppendPrefix(prefix, feature, isAttribute)
+{
+    if (prefix !== undefined)
+    {
+        if (isAttribute)
+        {
+            // if a certain feature is an attribute, then it follows a different naming standard
+            // where it must be completely capitalized and have words split with an underscore
+            return prefix.toUpperCase() + "_" + feature.toUpperCase();
+        }
+        else
+        {
+            //Vendor prefixing should follow the standard convention: vendorprefixFeature
+            //Note that the feature is capitalized after the vendor prefix
+            //Therefore if the feature is window.feature, the vendor prefix version is:
+            //window.[vp]Feature where vp is the vendor prefix: 
+            //window.msFeature, window.webkitFeature, window.mozFeature, window.oFeature
+            var newFeature = feature[0].toUpperCase() + feature.substr(1, feature.length);
+
+            //Build up the new feature name with the vendor prefix
+            return prefix + newFeature;
+        }
+    }
+    else
+    {
+        return feature;
+    }
+}
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/support/pagevistestharness.js b/tct-manual-w3c-tests/pagevisibility/w3c/support/pagevistestharness.js
new file mode 100644 (file)
index 0000000..36273f5
--- /dev/null
@@ -0,0 +1,450 @@
+//=====================================================//
+// Variables used for testing.
+var open_link;
+var notification_step = null;
+var main_doc = null;
+var child_doc_shown = null;
+var child_doc_hidden = null;
+var transition_mode;
+var manual_test = null;
+
+var expected_notification_count = 2;
+var expected_frame_notification_count = 4;
+var notification_count = 0;
+var frame_notification_count = 0;
+var two_notifications = false;
+
+var rollup_stage = 0;
+
+// object containing references to all asynchronous tests
+var async_tests = new Array();
+
+// transition mode constants
+var TRANSITION_MODE_TAB_SWITCH = 0;
+var TRANSITION_MODE_MIN_MAX    = 1;
+
+var T02_HIDDEN_ON_TRANSITION_PAGE           = 2;
+var T03_HIDDEN_STATE_ON_TRANSITION_PAGE     = 3;
+var T04_HIDDEN_ON_TRANSITION_IFRAME         = 4;
+var T05_HIDDEN_STATE_ON_TRANSITION_IFRAME   = 5;
+var T06_VISIBLE_ON_RETURN_PAGE              = 6;
+var T07_VISIBLE_STATE_ON_RETURN_PAGE        = 7;
+var T08_VISIBLE_ON_RETURN_IFRAME            = 8;
+var T09_VISIBLE_STATE_ON_RETURN_IFRAME      = 9;
+var T10_TWO_REGISTRATIONS_DIFF_CB           = 10;
+var T11_TWO_REGISTRATIONS_SAME_CB           = 11;
+var T12_EXP_PAGE_COUNT                      = 12;
+var T13_EXP_IFRAME_COUNT                    = 13;
+
+// get prefix used in feature names, if there is one
+var prefix = GetVendorPrefix(document, "hidden");
+prefix = (prefix !== undefined) ? prefix : '';
+
+// Since there are tests for whether or not attributes exist for the different visibility states,
+// any tests that involve checking the visibility state will check against the known values
+// of these attributes instead of the attributes themselves, since we do not want to fail these
+// tests (which are unrelated to the implementation of the attributes) if the UA does not implement
+// the attributes
+var PAGE_HIDDEN_VAL = "hidden";
+var PAGE_VISIBLE_VAL = "visible";
+
+// There are various optional attributes that may or may not exist, but must be defined and named
+// according to the conventions laid out on http://www.w3.org/TR/page-visibility/#sec-vendor-prefix
+// Some of the known potentional optional attributes are checked in this test.
+var optional_att = [
+    "preview",
+    "prerender"
+];
+
+//=====================================================//
+//Change this to be functions that you will test.
+//You can alternatively place this within your individual test files.
+
+function test_api_exists(doc, doc_name)
+{
+    test_defined(BrowserHasFeature(doc, "hidden"), ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "hidden") + " is defined.");
+    test_defined(BrowserHasFeature(doc, "visibilityState"), ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "visibilityState") + " is defined.");
+}
+
+function test_api_exists_enum(doc, doc_name)
+{
+    //Test enum values of the visibility states
+    test_equals(BrowserHasFeature(doc, "PAGE_HIDDEN", true), "hidden", ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "PAGE_HIDDEN", true) + " is 'hidden'");
+    test_equals(BrowserHasFeature(doc, "PAGE_VISIBLE", true), "visible", ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "PAGE_VISIBLE", true) + " is 'visible'");
+}
+
+function test_api_exists_optional(doc, doc_name)
+{
+    // loop through all known optional attributes
+    for (i = 0; i < optional_att.length; i++)
+    {
+        // check if this paramter exists
+        if (BrowserHasFeature(doc, "PAGE_" + optional_att[i].toUpperCase(), true) !== undefined)
+        {
+            // if it does exist, make sure it is defined correctly
+            test_equals(BrowserHasFeature(doc, "PAGE_" + optional_att[i].toUpperCase(), true), optional_att[i], 
+                ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "PAGE_" + optional_att[i].toUpperCase(), true) + " is '" + optional_att[i] + "'");
+        }
+    }
+}
+
+function test_read_only_conformance(doc, doc_name)
+{
+    // test read only conformance
+    test_read_only(doc, AppendPrefix(prefix, "hidden"), ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "hidden") + " cannot be overwritten");
+    test_read_only(doc, AppendPrefix(prefix, "visibilityState"), ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "visibilityState") + " cannot be overwritten");
+}
+
+function test_read_only_conformance_enum(doc, doc_name)
+{
+    // test read only conformance
+    test_read_only(doc, AppendPrefix(prefix, "PAGE_HIDDEN", true), ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "PAGE_HIDDEN", true) + " cannot be overwritten");
+    test_read_only(doc, AppendPrefix(prefix, "PAGE_VISIBLE", true), ((doc_name !== undefined) ? doc_name + '.' : '') + AppendPrefix(prefix, "PAGE_VISIBLE", true) + " cannot be overwritten");
+}
+
+function test_api_match(parent_doc, child_doc, parent_doc_name, child_doc_name)
+{
+    // test child document's api state matches parent document's api state
+    test_equals(BrowserHasFeature(child_doc, "hidden"), BrowserHasFeature(parent_doc, "hidden"), 
+        ((parent_doc_name !== undefined) ? parent_doc_name + '.' : '') + AppendPrefix(prefix, "hidden") + " = " + 
+        ((child_doc_name !== undefined) ? child_doc_name + '.' : '') + AppendPrefix(prefix, "hidden") + ".");
+    test_equals(BrowserHasFeature(child_doc, "visibilityState"), BrowserHasFeature(parent_doc, "visibilityState"), 
+        ((parent_doc_name !== undefined) ? parent_doc_name + '.' : '') + AppendPrefix(prefix, "visibilityState")  + " = " + 
+        ((child_doc_name !== undefined) ? child_doc_name + '.' : '') + AppendPrefix(prefix, "visibilityState") + ".");
+}
+
+function test_transition_init(doc, t_mode, doc_name)
+{
+    if (t_mode == null)
+    {
+        t_mode = TRANSITION_MODE_TAB_SWITCH;
+    }
+    transition_mode = t_mode;
+    
+    main_doc = doc;
+    child_doc_shown = main_doc.getElementById("childDocShown").contentDocument;
+    child_doc_hidden = main_doc.getElementById("childDocHidden").contentDocument;
+    
+    if (prefix !== undefined)
+    {
+        var verifyToken1 = main_doc.addEventListener(prefix + "visibilitychange", VerifyNotification);
+        var verifyToken2 = main_doc.addEventListener(prefix + "visibilitychange", VerifyNotification);
+        var verifyToken3 = main_doc.addEventListener(prefix + "visibilitychange", VerifyTwoNotifications);
+        var verifyToken4 = child_doc_shown.addEventListener(prefix + "visibilitychange", VerifyFrameNotification);
+        var verifyToken5 = child_doc_hidden.addEventListener(prefix + "visibilitychange", VerifyFrameNotification);
+    }
+    else
+    {
+        var verifyToken1 = main_doc.addEventListener("visibilitychange", VerifyNotification);
+        var verifyToken2 = main_doc.addEventListener("visibilitychange", VerifyNotification);
+        var verifyToken3 = main_doc.addEventListener("visibilitychange", VerifyTwoNotifications);
+        var verifyToken4 = child_doc_shown.addEventListener("visibilitychange", VerifyFrameNotification);
+        var verifyToken5 = child_doc_hidden.addEventListener("visibilitychange", VerifyFrameNotification);
+    }
+    notification_step = 1;
+    
+    // add tests
+    if (transition_mode == TRANSITION_MODE_TAB_SWITCH)
+    {
+        async_tests[T02_HIDDEN_ON_TRANSITION_PAGE] = async_test(AppendPrefix(prefix, "hidden") + " = true (page is hidden on tab switch).", {timeout:60*1000});
+    }
+    else
+    {
+        async_tests[T02_HIDDEN_ON_TRANSITION_PAGE] = async_test(AppendPrefix(prefix, "hidden") + " = true (page is hidden on minimization).", {timeout:60*1000});
+    }
+    async_tests[T03_HIDDEN_STATE_ON_TRANSITION_PAGE] = async_test(AppendPrefix(prefix, "visibilityState") + " = '" + PAGE_HIDDEN_VAL + "'", {timeout:60*1000});
+    async_tests[T04_HIDDEN_ON_TRANSITION_IFRAME] = async_test(AppendPrefix(prefix, "hidden") + " = true (within all IFrame documents)", {timeout:60*1000});
+    async_tests[T05_HIDDEN_STATE_ON_TRANSITION_IFRAME] = async_test(AppendPrefix(prefix, "visibilityState") + " = '" + PAGE_HIDDEN_VAL + "' (within all IFrame documents)", {timeout:60*1000});
+    if (transition_mode == TRANSITION_MODE_TAB_SWITCH)
+    {
+        async_tests[T06_VISIBLE_ON_RETURN_PAGE] = async_test(AppendPrefix(prefix, "hidden") + " = false (page is visible on return to tab).", {timeout:60*1000});
+    }
+    else
+    {
+        async_tests[T06_VISIBLE_ON_RETURN_PAGE] = async_test(AppendPrefix(prefix, "hidden") + " = false (page is visible on restoration).", {timeout:60*1000});
+    }
+    async_tests[T07_VISIBLE_STATE_ON_RETURN_PAGE] = async_test(AppendPrefix(prefix, "visibilityState") + " = '" + PAGE_VISIBLE_VAL + "'", {timeout:60*1000});
+    async_tests[T08_VISIBLE_ON_RETURN_IFRAME] = async_test(AppendPrefix(prefix, "hidden") + " = false (within all IFrame documents).", {timeout:60*1000});
+    async_tests[T09_VISIBLE_STATE_ON_RETURN_IFRAME] = async_test(AppendPrefix(prefix, "visibilityState") + " = '" + PAGE_VISIBLE_VAL + "' (within all IFrame documents)", {timeout:60*1000});
+    async_tests[T10_TWO_REGISTRATIONS_DIFF_CB] = async_test("Two registrations (different callbacks) occurred.", {timeout:60*1000});
+    async_tests[T11_TWO_REGISTRATIONS_SAME_CB] = async_test("Two registrations (same callback) did not occur.", {timeout:60*1000});
+    async_tests[T12_EXP_PAGE_COUNT] = async_test("Number of page's visibilitychange events is expected", {timeout:60*1000});
+    async_tests[T13_EXP_IFRAME_COUNT] = async_test("Number of IFrames' visibilitychange events is expected", {timeout:60*1000});
+    
+    if (transition_mode == TRANSITION_MODE_TAB_SWITCH)
+    {
+        try
+        {
+            if (window.external)
+            {
+    //            open_link = window.open('support/blank_page_green.htm','_blank', 'width='+(window.screen.availWidth-10)+',height='+(window.screen.availHeight-30)+ ',top=0,left=0,resizable=0,status=yes,menubar=no,scrollbars=yes');
+                //open_link = chrome.tabs.create();
+                //Perform the close in a setTimeout to allow this block of code to exit before
+                //doing the closure.  This will also serve the purpose of allowing the user to
+                //see the tab actually getting opened for verification.
+               // setTimeout(function() { open_link.close(); }, 1000);
+               setTimeout(VerifyTest, 0);
+            }
+            else
+            {
+                setTimeout(VerifyTest, 0);
+            }
+        }
+        catch(ex)
+        {
+            setTimeout(VerifyTest, 0);
+        }
+    }
+}
+
+function VerifyFrameNotification()
+{
+    frame_notification_count++;
+    if (frame_notification_count > expected_frame_notification_count)
+    {
+        //test_true(false, "An event fired inside a frame after its listener was removed.");
+        add_async_result(async_tests[T13_EXP_IFRAME_COUNT], false);
+    }
+}
+
+function VerifyNotification()
+{
+    notification_count++;
+    if (notification_count > expected_notification_count)
+    {
+        //test_true(false, "An event fired inside the document after its listener was removed.");
+        add_async_result(async_tests[T12_EXP_PAGE_COUNT], false);
+    }
+    
+    if (notification_step)
+    {
+        switch (notification_step)
+        {
+            case 1:
+                // First step, check page visibility after tab deselection / minimization.  
+                // hidden should change to false; visibilityState should change to PAGE_HIDDEN
+                add_async_result(async_tests[T02_HIDDEN_ON_TRANSITION_PAGE], BrowserHasFeature(main_doc, "hidden"));
+                add_async_result(async_tests[T03_HIDDEN_STATE_ON_TRANSITION_PAGE], BrowserHasFeature(main_doc, "visibilityState") == PAGE_HIDDEN_VAL);
+                          
+                // Check to make sure child IFrame documents did have the visibility change event bubble
+                // down to them. The child documents' visibility state should match their parent's.
+                add_async_result(async_tests[T04_HIDDEN_ON_TRANSITION_IFRAME], 
+                    (BrowserHasFeature(child_doc_shown, "hidden")) && (BrowserHasFeature(child_doc_hidden, "hidden")));
+                add_async_result(async_tests[T05_HIDDEN_STATE_ON_TRANSITION_IFRAME], 
+                    BrowserHasFeature(child_doc_shown, "visibilityState") == PAGE_HIDDEN_VAL && 
+                    BrowserHasFeature(child_doc_hidden, "visibilityState") == PAGE_HIDDEN_VAL);
+                    
+                /*test_true((BrowserHasFeature(child_doc_shown, "hidden")) && (BrowserHasFeature(child_doc_hidden, "hidden")), 
+                          "The visibilityChange event should bubble: all IFrame child documents should become hidden.");
+                test_true(BrowserHasFeature(child_doc_shown, "visibilityState") == PAGE_HIDDEN_VAL && 
+                          BrowserHasFeature(child_doc_hidden, "visibilityState") == PAGE_HIDDEN_VAL, 
+                          "All IFrame child documents' visibility states should now be visible.");*/
+                          
+                notification_step = 2;
+                break;
+
+            case 2:
+                //Second step, check page visibility after tab reselection / maximization / restoration.  
+                // hidden should change to false; visibilityState should change to PAGE_VISIBLE
+                /*if (transition_mode == TRANSITION_MODE_TAB_SWITCH)
+                {
+                    test_false(BrowserHasFeature(main_doc, "hidden"), "Page is visible again on return to tab");
+                }
+                else if (transition_mode == TRANSITION_MODE_MIN_MAX)
+                {
+                    test_false(BrowserHasFeature(main_doc, "hidden"), "Page is visible again on maximization / restoration");
+                }
+                test_true(BrowserHasFeature(main_doc, "visibilityState") == PAGE_VISIBLE_VAL, 
+                          "Page visibility state should now be visible.");*/
+                add_async_result(async_tests[T06_VISIBLE_ON_RETURN_PAGE], !BrowserHasFeature(main_doc, "hidden"));
+                add_async_result(async_tests[T07_VISIBLE_STATE_ON_RETURN_PAGE], BrowserHasFeature(main_doc, "visibilityState") == PAGE_VISIBLE_VAL);
+                          
+                // check to make sure child IFrame documents have turned visible
+                /*test_true((!BrowserHasFeature(child_doc_shown, "hidden")) && (!BrowserHasFeature(child_doc_hidden, "hidden")), "All IFrame child documents are now visible.");
+                test_true(BrowserHasFeature(child_doc_shown, "visibilityState") == PAGE_VISIBLE_VAL && 
+                          BrowserHasFeature(child_doc_hidden, "visibilityState") == PAGE_VISIBLE_VAL, 
+                          "All IFrame child documents' visibility states should now be visible.");*/
+                add_async_result(async_tests[T08_VISIBLE_ON_RETURN_IFRAME], 
+                    (!BrowserHasFeature(child_doc_shown, "hidden")) && (!BrowserHasFeature(child_doc_hidden, "hidden")));
+                add_async_result(async_tests[T09_VISIBLE_STATE_ON_RETURN_IFRAME], 
+                    BrowserHasFeature(child_doc_shown, "visibilityState") == PAGE_VISIBLE_VAL && 
+                    BrowserHasFeature(child_doc_hidden, "visibilityState") == PAGE_VISIBLE_VAL);
+
+                //Verify that a second registration to a different callback also occurred
+                //test_true(two_notifications, "Two registrations (different callbacks) occurred.");
+                add_async_result(async_tests[T10_TWO_REGISTRATIONS_DIFF_CB], two_notifications);
+
+                //Verify that a second registration to the same callback did not occur
+                //test_equals(notification_count,
+                //            expected_notification_count,
+                //            "Two registrations (same callback) did not occur.");
+                add_async_result(async_tests[T11_TWO_REGISTRATIONS_SAME_CB], notification_count == expected_notification_count);
+                            
+                            
+                // get prefix used in feature names, if there is one
+                var prefix = GetVendorPrefix(main_doc, "hidden");
+                prefix = (prefix !== undefined) ? prefix : '';
+
+                //Remove all event listeners and verify that the event does not fire
+                main_doc.removeEventListener(prefix + "visibilitychange", VerifyNotification);
+                main_doc.removeEventListener(prefix + "visibilitychange", VerifyTwoNotifications);
+                
+                // pass the manual item associated with these tests
+                //add_async_result(async_tests['manual_test'], true);
+                
+                notification_step = 3;
+                
+                // schedule first stage of rollup
+                setTimeout(VerifyAllNotifications, 200);
+                break;
+            case 3:
+                //This step should not have occurred since the event handlers were cleared
+                //test_true(false, "Event did not fire when event listener is removed.");
+                add_async_result(async_tests[T12_EXP_PAGE_COUNT], false);
+
+                //No more tests to run  
+                notification_step = null;
+
+                //On final step, schedule the rollup
+                setTimeout(VerifyTest, 2000);
+                break;
+
+            default:
+                break;
+        }
+    }
+}
+
+function VerifyAllNotifications()
+{
+    rollup_stage++;
+    switch(rollup_stage)
+    {
+        case 1:
+            // remove listeners from the child frames
+            child_doc_shown.removeEventListener(prefix + "visibilitychange", VerifyFrameNotification);
+            child_doc_hidden.removeEventListener(prefix + "visibilitychange", VerifyFrameNotification);
+            
+            if (transition_mode == TRANSITION_MODE_TAB_SWITCH)
+            {
+                //open a new tab.  Since the event is no longer registered, no
+                //notification should occur.
+            //    open_link = window.open('', '_blank');
+             //   setTimeout(function() { open_link.close(); }, 1000);
+            }
+        
+            // schedule second stage of rollup
+            setTimeout(VerifyAllNotifications, 1200);
+            break;
+        case 2:
+            // verify the expected number of visibilitychange events occurred in the child frames
+            /*test_equals(frame_notification_count,
+                        expected_frame_notification_count,
+                        "Number of expected child frames' visibilityChange events: " + expected_frame_notification_count + "; actual events: " + frame_notification_count + ".");*/
+            add_async_result(async_tests[T12_EXP_PAGE_COUNT], notification_count == expected_notification_count);
+            add_async_result(async_tests[T13_EXP_IFRAME_COUNT], frame_notification_count == expected_frame_notification_count);
+
+            //On final step, schedule the rollup
+            setTimeout(VerifyTest, 1000);
+            break;
+        default: 
+            break;
+    }
+}
+
+function VerifyTwoNotifications()
+{
+    //This is a duplicate registration on visibilitychange and
+    //should never get fired.  Check that duplicate_notification
+    //is false to verify that this never occurred.
+    two_notifications = true;
+}
+
+//
+// Non-test related helper functions
+//
+
+function sleep_milliseconds(n)
+{
+    var start = new Date().getTime();
+    while (true) {
+        if ((new Date().getTime() - start) >= n) break;
+    }
+}
+
+//
+// Common helper functions
+//
+
+function test_true(value, msg)
+{
+    test(function () { assert_true(value, msg); }, msg);
+}
+
+function test_false(value, msg)
+{
+    test(function () { assert_false(value, msg); }, msg);
+}
+
+function test_equals(value, equals, msg)
+{
+    test(function () { assert_equals(value, equals, msg); }, msg);
+}
+
+function test_greater_than(value, greater_than, msg)
+{
+    test(function () { assert_true(value > greater_than, msg); }, msg);
+}
+
+function test_not_equals(value, notequals, msg)
+{
+    test(function() { assert_true(value !== notequals, msg); }, msg);
+}
+
+function test_defined(value, msg)
+{
+    test(function() { assert_true(value !== undefined, msg); }, msg);
+}
+
+function test_read_only(parent, child_name, msg)
+{
+    var prevVal = parent[child_name];
+    var attemptVal = prevVal + "new value";
+    parent[child_name] = attemptVal;
+    test(function() { assert_true(parent[child_name] == prevVal, msg); }, msg);
+}
+
+function test_read_write(parent, child_name, msg)
+{
+    var prevVal = parent[child_name];
+    var attemptVal = prevVal + "new value";
+    parent[child_name] = attemptVal;
+    test(function() { assert_true(parent[child_name] == attemptVal, msg); }, msg);
+}
+
+//
+// Test Setup and Cleanup
+//
+
+function SetupResultTable(properties)
+{
+    (properties !== undefined) ? setup(properties) : setup({explicit_done: true});
+}
+
+function VerifyTest()
+{
+    done();
+}
+
+//
+// asynchronous test helper functions
+//
+
+function add_async_result(test_obj, pass_state)
+{
+    // add assertion to manual test for the pass state
+    test_obj.step(function() {assert_true(pass_state)});
+    
+    // end manual test
+    test_obj.done();
+}
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/support/testharness.css b/tct-manual-w3c-tests/pagevisibility/w3c/support/testharness.css
new file mode 100644 (file)
index 0000000..e72fce4
--- /dev/null
@@ -0,0 +1,51 @@
+html {
+       font-family: DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
+}
+section#summary {
+       margin-bottom: 1em;
+}
+table#results {
+       width: 100%; border-collapse: collapse; table-layout: fixed;
+}
+table#results th:first-child {
+       width: 4em;
+}
+table#results td:first-child {
+       width: 4em;
+}
+table#results th:last-child {
+       width: 50%;
+}
+table#results td:last-child {
+       width: 50%;
+}
+table#results th {
+       padding: 0px 0px 0.5em; border-bottom-color: black; border-bottom-width: medium; border-bottom-style: solid;
+}
+table#results td {
+       padding: 1em 1em 0.5em; border-bottom-color: black; border-bottom-width: thin; border-bottom-style: solid;
+}
+tr.pass > td:first-child {
+       color: green;
+}
+tr.fail > td:first-child {
+       color: red;
+}
+tr.timeout > td:first-child {
+       color: red;
+}
+tr.notrun > td:first-child {
+       color: blue;
+}
+.pass .fail .timeout .notrun > td:first-child {
+       font-variant: small-caps;
+}
+table#results span {
+       display: block;
+}
+table#results span.expected {
+       font-family: DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace; white-space: pre;
+}
+table#results span.actual {
+       font-family: DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace; white-space: pre;
+}
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/support/testharness.js b/tct-manual-w3c-tests/pagevisibility/w3c/support/testharness.js
new file mode 100644 (file)
index 0000000..8012a66
--- /dev/null
@@ -0,0 +1,1689 @@
+/*
+Distributed under both the W3C Test Suite License [1] and the W3C
+3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
+policies and contribution forms [3].
+
+[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+[2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+[3] http://www.w3.org/2004/10/27-testcases
+*/
+
+/*
+ * == Introduction ==
+ *
+ * This file provides a framework for writing testcases. It is intended to
+ * provide a convenient API for making common assertions, and to work both
+ * for testing synchronous and asynchronous DOM features in a way that
+ * promotes clear, robust, tests.
+ *
+ * == Basic Usage ==
+ *
+ * To use this file, import the script into the test document:
+ * <script src="http://w3c-test.org/resources/testharness.js"></script>
+ *
+ * Within each file one may define one or more tests. Each test is atomic
+ * in the sense that a single test has a single result (pass/fail/timeout).
+ * Within each test one may have a number of asserts. The test fails at the
+ * first failing assert, and the remainder of the test is (typically) not run.
+ *
+ * If the file containing the tests is a HTML file with an element of id "log"
+ * this will be populated with a table containing the test results after all
+ * the tests have run.
+ *
+ * == Synchronous Tests ==
+ *
+ * To create a synchronous test use the test() function:
+ *
+ * test(test_function, name, properties)
+ *
+ * test_function is a function that contains the code to test. For example a
+ * trivial passing test would be:
+ *
+ * test(function() {assert_true(true)}, "assert_true with true")
+ *
+ * The function passed in is run in the test() call.
+ *
+ * properties is an object that overrides default test properties. The recognised properties
+ * are:
+ *    timeout - the test timeout in ms
+ *
+ * e.g.
+ * test(test_function, "Sample test", {timeout:1000})
+ *
+ * would run test_function with a timeout of 1s.
+ *
+ * == Asynchronous Tests ==
+ *
+ * Testing asynchronous features is somewhat more complex since the result of
+ * a test may depend on one or more events or other callbacks. The API provided
+ * for testing these features is indended to be rather low-level but hopefully
+ * applicable to many situations.
+ *
+ * To create a test, one starts by getting a Test object using async_test:
+ *
+ * async_test(name, properties)
+ *
+ * e.g.
+ * var t = async_test("Simple async test")
+ *
+ * Assertions can be added to the test by calling the step method of the test
+ * object with a function containing the test assertions:
+ *
+ * t.step(function() {assert_true(true)});
+ *
+ * When all the steps are complete, the done() method must be called:
+ *
+ * t.done();
+ *
+ * The properties argument is identical to that for test().
+ *
+ * In many cases it is convenient to run a step in response to an event or a
+ * callback. A convenient method of doing this is through the step_func method
+ * which returns a function that, when called runs a test step. For example
+ *
+ * object.some_event = t.step_func(function(e) {assert_true(e.a)});
+ *
+ * == Making assertions ==
+ *
+ * Functions for making assertions start assert_
+ * The best way to get a list is to look in this file for functions names
+ * matching that pattern. The general signature is
+ *
+ * assert_something(actual, expected, description)
+ *
+ * although not all assertions precisely match this pattern e.g. assert_true
+ * only takes actual and description as arguments.
+ *
+ * The description parameter is used to present more useful error messages when
+ * a test fails
+ *
+ * == Setup ==
+ *
+ * Sometimes tests require non-trivial setup that may fail. For this purpose
+ * there is a setup() function, that may be called with one or two arguments.
+ * The two argument version is:
+ *
+ * setup(func, properties)
+ *
+ * The one argument versions may omit either argument.
+ * func is a function to be run synchronously. setup() becomes a no-op once
+ * any tests have returned results. Properties are global properties of the test
+ * harness. Currently recognised properties are:
+ *
+ * timeout - The time in ms after which the harness should stop waiting for
+ *           tests to complete (this is different to the per-test timeout
+ *           because async tests do not start their timer until .step is called)
+ *
+ * explicit_done - Wait for an explicit call to done() before declaring all tests
+ *                 complete (see below)
+ *
+ * output_document - The document to which results should be logged. By default this is
+ *                   the current document but could be an ancestor document in some cases
+ *                   e.g. a SVG test loaded in an HTML wrapper
+ *
+ * == Determining when all tests are complete ==
+ *
+ * By default the test harness will assume there are no more results to come
+ * when:
+ * 1) There are no Test objects that have been created but not completed
+ * 2) The load event on the document has fired
+ *
+ * This behaviour can be overridden by setting the explicit_done property to true
+ * in a call to setup(). If explicit_done is true, the test harness will not assume
+ * it is done until the global done() function is called. Once done() is called, the
+ * two conditions above apply like normal.
+ *
+ * == Generating tests ==
+ *
+ * NOTE: this functionality may be removed
+ *
+ * There are scenarios in which is is desirable to create a large number of
+ * (synchronous) tests that are internally similar but vary in the parameters
+ * used. To make this easier, the generate_tests function allows a single
+ * function to be called with each set of parameters in a list:
+ *
+ * generate_tests(test_function, parameter_lists)
+ *
+ * For example:
+ *
+ * generate_tests(assert_equals, [
+ *     ["Sum one and one", 1+1, 2],
+ *     ["Sum one and zero", 1+0, 1]
+ *     ])
+ *
+ * Is equivalent to:
+ *
+ * test(function() {assert_equals(1+1, 2)}, "Sum one and one")
+ * test(function() {assert_equals(1+0, 1)}, "Sum one and zero")
+ *
+ * Note that the first item in each parameter list corresponds to the name of
+ * the test.
+ *
+ * == Callback API ==
+ *
+ * The framework provides callbacks corresponding to 3 events:
+ *
+ * start - happens when the first Test is created
+ * result - happens when a test result is recieved
+ * complete - happens when all results are recieved
+ *
+ * The page defining the tests may add callbacks for these events by calling
+ * the following methods:
+ *
+ *   add_start_callback(callback) - callback called with no arguments
+ *   add_result_callback(callback) - callback called with a test argument
+ *   add_completion_callback(callback) - callback called with an array of tests
+ *                                       and an status object
+ *
+ * tests have the following properties:
+ *   status: A status code. This can be compared to the PASS, FAIL, TIMEOUT and
+ *           NOTRUN properties on the test object
+ *   message: A message indicating the reason for failure. In the future this
+ *            will always be a string
+ *
+ *  The status object gives the overall status of the harness. It has the
+ *  following properties:
+ *    status: Can be compared to the OK, ERROR and TIMEOUT properties
+ *    message: An error message set when the status is ERROR
+ *
+ * == External API ==
+ *
+ * In order to collect the results of multiple pages containing tests, the test
+ * harness will, when loaded in a nested browsing context, attempt to call
+ * certain functions in each ancestor browsing context:
+ *
+ * start - start_callback
+ * result - result_callback
+ * complete - completion_callback
+ *
+ * These are given the same arguments as the corresponding internal callbacks
+ * described above.
+ *
+ * == List of assertions ==
+ *
+ * assert_true(actual, description)
+ *   asserts that /actual/ is strictly true
+ *
+ * assert_false(actual, description)
+ *   asserts that /actual/ is strictly false
+ *
+ * assert_equals(actual, expected, description)
+ *   asserts that /actual/ is the same value as /expected/
+ *
+ * assert_not_equals(actual, expected, description)
+ *   asserts that /actual/ is a different value to /expected/. Yes, this means
+ *   that "expected" is a misnomer
+ *
+ * assert_array_equals(actual, expected, description)
+ *   asserts that /actual/ and /expected/ have the same length and the value of
+ *   each indexed property in /actual/ is the strictly equal to the corresponding
+ *   property value in /expected/
+ *
+ * assert_approx_equals(actual, expected, epsilon, description)
+ *   asserts that /actual/ is a number within +/- /epsilon/ of /expected/
+ *
+ * assert_regexp_match(actual, expected, description)
+ *   asserts that /actual/ matches the regexp /expected/
+ *
+ * assert_own_property(object, property_name, description)
+ *   assert that object has own property property_name
+ *
+ * assert_inherits(object, property_name, description)
+ *   assert that object does not have an own property named property_name
+ *   but that property_name is present in the prototype chain for object
+ *
+ * assert_idl_attribute(object, attribute_name, description)
+ *   assert that an object that is an instance of some interface has the
+ *   attribute attribute_name following the conditions specified by WebIDL
+ *
+ * assert_readonly(object, property_name, description)
+ *   assert that property property_name on object is readonly
+ *
+ * assert_throws(code, func, description)
+ *   code - a DOMException/RangeException code as a string, e.g. "HIERARCHY_REQUEST_ERR"
+ *   func - a function that should throw
+ *
+ *   assert that func throws a DOMException or RangeException (as appropriate)
+ *   with the given code.  If an object is passed for code instead of a string,
+ *   checks that the thrown exception has a property called "name" that matches
+ *   the property of code called "name".  Note, this function will probably be
+ *   rewritten sometime to make more sense.
+ *
+ * assert_unreached(description)
+ *   asserts if called. Used to ensure that some codepath is *not* taken e.g.
+ *   an event does not fire.
+ *
+ * assert_exists(object, property_name, description)
+ *   *** deprecated ***
+ *   asserts that object has an own property property_name
+ *
+ * assert_not_exists(object, property_name, description)
+ *   *** deprecated ***
+ *   assert that object does not have own property property_name
+ */
+
+(function ()
+{
+    var debug = false;
+    // default timeout is 5 seconds, test can override if needed
+    var default_timeout = 5000;
+    var default_test_timeout = 2000;
+
+    var xhtml_ns = "http://www.w3.org/1999/xhtml";
+
+    // script_prefix is used by Output.prototype.show_results() to figure out
+    // where to get testharness.css from.  It's enclosed in an extra closure to
+    // not pollute the library's namespace with variables like "src".
+    var script_prefix = null;
+    (function ()
+    {
+        var scripts = document.getElementsByTagName("script");
+        for (var i = 0; i < scripts.length; i++)
+        {
+            if (scripts[i].src)
+            {
+                var src = scripts[i].src;
+            }
+            else if (scripts[i].href)
+            {
+                //SVG case
+                var src = scripts[i].href.baseVal;
+            }
+            if (src && src.slice(src.length - "testharness.js".length) === "testharness.js")
+            {
+                script_prefix = src.slice(0, src.length - "testharness.js".length);
+                break;
+            }
+        }
+    })();
+
+    /*
+     * API functions
+     */
+
+    var name_counter = 0;
+    function next_default_name()
+    {
+        //Don't use document.title to work around an Opera bug in XHTML documents
+        var prefix = document.getElementsByTagName("title").length > 0 ?
+                         document.getElementsByTagName("title")[0].firstChild.data :
+                         "Untitled";
+        var suffix = name_counter > 0 ? " " + name_counter : "";
+        name_counter++;
+        return prefix + suffix;
+    }
+
+    function test(func, name, properties)
+    {
+        var test_name = name ? name : next_default_name();
+        properties = properties ? properties : {};
+        var test_obj = new Test(test_name, properties);
+        test_obj.step(func);
+        if (test_obj.status === test_obj.NOTRUN) {
+            test_obj.done();
+        }
+    }
+
+    function async_test(name, properties)
+    {
+        var test_name = name ? name : next_default_name();
+        properties = properties ? properties : {};
+        var test_obj = new Test(test_name, properties);
+        return test_obj;
+    }
+
+    function setup(func_or_properties, maybe_properties)
+    {
+        var func = null;
+        var properties = {};
+        if (arguments.length === 2) {
+            func = func_or_properties;
+            properties = maybe_properties;
+        } else if (func_or_properties instanceof Function){
+            func = func_or_properties;
+        } else {
+            properties = func_or_properties;
+
+        }
+
+        tests.setup(func, properties);
+    }
+
+    function done() {
+        tests.end_wait();
+    }
+
+    function generate_tests(func, args) {
+        forEach(args, function(x)
+                {
+                    var name = x[0];
+                    test(function()
+                         {
+                             func.apply(this, x.slice(1));
+                         }, name);
+                });
+    }
+
+    function on_event(object, event, callback)
+    {
+      object.addEventListener(event, callback, false);
+    }
+
+    expose(test, 'test');
+    expose(async_test, 'async_test');
+    expose(generate_tests, 'generate_tests');
+    expose(setup, 'setup');
+    expose(done, 'done');
+    expose(on_event, 'on_event');
+
+    /*
+     * Return a string truncated to the given length, with ... added at the end
+     * if it was longer.
+     */
+    function truncate(s, len)
+    {
+        if (s.length > len) {
+            return s.substring(0, len - 3) + "...";
+        }
+        return s;
+    }
+
+    /*
+     * Convert a value to a nice, human-readable string
+     */
+    function format_value(val)
+    {
+        switch (typeof val)
+        {
+        case "string":
+            for (var i = 0; i < 32; i++)
+            {
+                var replace = "\\";
+                switch (i) {
+                case 0: replace += "0"; break;
+                case 1: replace += "x01"; break;
+                case 2: replace += "x02"; break;
+                case 3: replace += "x03"; break;
+                case 4: replace += "x04"; break;
+                case 5: replace += "x05"; break;
+                case 6: replace += "x06"; break;
+                case 7: replace += "x07"; break;
+                case 8: replace += "b"; break;
+                case 9: replace += "t"; break;
+                case 10: replace += "n"; break;
+                case 11: replace += "v"; break;
+                case 12: replace += "f"; break;
+                case 13: replace += "r"; break;
+                case 14: replace += "x0e"; break;
+                case 15: replace += "x0f"; break;
+                case 16: replace += "x10"; break;
+                case 17: replace += "x11"; break;
+                case 18: replace += "x12"; break;
+                case 19: replace += "x13"; break;
+                case 20: replace += "x14"; break;
+                case 21: replace += "x15"; break;
+                case 22: replace += "x16"; break;
+                case 23: replace += "x17"; break;
+                case 24: replace += "x18"; break;
+                case 25: replace += "x19"; break;
+                case 26: replace += "x1a"; break;
+                case 27: replace += "x1b"; break;
+                case 28: replace += "x1c"; break;
+                case 29: replace += "x1d"; break;
+                case 30: replace += "x1e"; break;
+                case 31: replace += "x1f"; break;
+                }
+                val = val.replace(RegExp(String.fromCharCode(i), "g"), replace);
+            }
+            return '"' + val.replace(/"/g, '\\"') + '"';
+        case "boolean":
+        case "undefined":
+            return String(val);
+        case "number":
+            // In JavaScript, -0 === 0 and String(-0) == "0", so we have to
+            // special-case.
+            if (val === -0 && 1/val === -Infinity)
+            {
+                return "-0";
+            }
+            return String(val);
+        case "object":
+            if (val === null)
+            {
+                return "null";
+            }
+
+            // Special-case Node objects, since those come up a lot in my tests.  I
+            // ignore namespaces.  I use duck-typing instead of instanceof, because
+            // instanceof doesn't work if the node is from another window (like an
+            // iframe's contentWindow):
+            // http://www.w3.org/Bugs/Public/show_bug.cgi?id=12295
+            if ("nodeType" in val
+            && "nodeName" in val
+            && "nodeValue" in val
+            && "childNodes" in val)
+            {
+                switch (val.nodeType)
+                {
+                case Node.ELEMENT_NODE:
+                    var ret = "<" + val.tagName.toLowerCase();
+                    for (var i = 0; i < val.attributes.length; i++)
+                    {
+                        ret += " " + val.attributes[i].name + '="' + val.attributes[i].value + '"';
+                    }
+                    ret += ">" + val.innerHTML + "</" + val.tagName.toLowerCase() + ">";
+                    return "Element node " + truncate(ret, 60);
+                case Node.TEXT_NODE:
+                    return 'Text node "' + val.data + '"';
+                case Node.PROCESSING_INSTRUCTION_NODE:
+                    return "ProcessingInstruction node with target " + format_value(val.target) + " and data " + format_value(val.data);
+                case Node.COMMENT_NODE:
+                    return "Comment node <!--" + val.data + "-->";
+                case Node.DOCUMENT_NODE:
+                    return "Document node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
+                case Node.DOCUMENT_TYPE_NODE:
+                    return "DocumentType node";
+                case Node.DOCUMENT_FRAGMENT_NODE:
+                    return "DocumentFragment node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
+                default:
+                    return "Node object of unknown type";
+                }
+            }
+
+            // Fall through to default
+        default:
+            return typeof val + ' "' + truncate(String(val), 60) + '"';
+        }
+    }
+    expose(format_value, "format_value");
+
+    /*
+     * Assertions
+     */
+
+    function assert_true(actual, description)
+    {
+        assert(actual === true, "assert_true", description,
+                                "expected true got ${actual}", {actual:actual});
+    };
+    expose(assert_true, "assert_true");
+
+    function assert_false(actual, description)
+    {
+        assert(actual === false, "assert_false", description,
+                                 "expected false got ${actual}", {actual:actual});
+    };
+    expose(assert_false, "assert_false");
+
+    function same_value(x, y) {
+        if (y !== y)
+        {
+            //NaN case
+            return x !== x;
+        }
+        else if (x === 0 && y === 0) {
+            //Distinguish +0 and -0
+            return 1/x === 1/y;
+        }
+        else
+        {
+            //typical case
+            return x === y;
+        }
+    }
+
+    function assert_equals(actual, expected, description)
+    {
+         /*
+          * Test if two primitives are equal or two objects
+          * are the same object
+          */
+        assert(same_value(actual, expected), "assert_equals", description,
+                                             "expected ${expected} but got ${actual}",
+                                             {expected:expected, actual:actual});
+    };
+    expose(assert_equals, "assert_equals");
+
+    function assert_not_equals(actual, expected, description)
+    {
+         /*
+          * Test if two primitives are unequal or two objects
+          * are different objects
+          */
+        assert(!same_value(actual, expected), "assert_not_equals", description,
+                                              "got disallowed value ${actual}",
+                                              {actual:actual});
+    };
+    expose(assert_not_equals, "assert_not_equals");
+
+    function assert_object_equals(actual, expected, description)
+    {
+         //This needs to be improved a great deal
+         function check_equal(expected, actual, stack)
+         {
+             stack.push(actual);
+
+             var p;
+             for (p in actual)
+             {
+                 assert(expected.hasOwnProperty(p), "assert_object_equals", description,
+                                                    "unexpected property ${p}", {p:p});
+
+                 if (typeof actual[p] === "object" && actual[p] !== null)
+                 {
+                     if (stack.indexOf(actual[p]) === -1)
+                     {
+                         check_equal(actual[p], expected[p], stack);
+                     }
+                 }
+                 else
+                 {
+                     assert(actual[p] === expected[p], "assert_object_equals", description,
+                                                       "property ${p} expected ${expected} got ${actual}",
+                                                       {p:p, expected:expected, actual:actual});
+                 }
+             }
+             for (p in expected)
+             {
+                 assert(actual.hasOwnProperty(p),
+                        "assert_object_equals", description,
+                        "expected property ${p} missing", {p:p});
+             }
+             stack.pop();
+         }
+         check_equal(actual, expected, []);
+    };
+    expose(assert_object_equals, "assert_object_equals");
+
+    function assert_array_equals(actual, expected, description)
+    {
+        assert(actual.length === expected.length,
+               "assert_array_equals", description,
+               "lengths differ, expected ${expected} got ${actual}",
+               {expected:expected.length, actual:actual.length});
+
+        for (var i=0; i < actual.length; i++)
+        {
+            assert(actual.hasOwnProperty(i) === expected.hasOwnProperty(i),
+                   "assert_array_equals", description,
+                   "property ${i}, property expected to be $expected but was $actual",
+                   {i:i, expected:expected.hasOwnProperty(i) ? "present" : "missing",
+                   actual:actual.hasOwnProperty(i) ? "present" : "missing"});
+            assert(expected[i] === actual[i],
+                   "assert_array_equals", description,
+                   "property ${i}, expected ${expected} but got ${actual}",
+                   {i:i, expected:expected[i], actual:actual[i]});
+        }
+    }
+    expose(assert_array_equals, "assert_array_equals");
+
+    function assert_approx_equals(actual, expected, epsilon, description)
+    {
+        /*
+         * Test if two primitive numbers are equal withing +/- epsilon
+         */
+        assert(typeof actual === "number",
+               "assert_approx_equals", description,
+               "expected a number but got a ${type_actual}",
+               {type_actual:typeof actual});
+
+        assert(Math.abs(actual - expected) < epsilon,
+               "assert_approx_equals", description,
+               "expected ${expected} +/- ${epsilon} but got ${actual}",
+               {expected:expected, actual:actual, epsilon:epsilon});
+    };
+    expose(assert_approx_equals, "assert_approx_equals");
+
+    function assert_regexp_match(actual, expected, description) {
+        /*
+         * Test if a string (actual) matches a regexp (expected)
+         */
+        assert(expected.test(actual),
+               "assert_regexp_match", description,
+               "expected ${expected} but got ${actual}",
+               {expected:expected, actual:actual});
+    }
+    expose(assert_regexp_match, "assert_regexp_match");
+
+
+    function _assert_own_property(name) {
+        return function(object, property_name, description)
+        {
+            assert(object.hasOwnProperty(property_name),
+                   name, description,
+                   "expected property ${p} missing", {p:property_name});
+        };
+    }
+    expose(_assert_own_property("assert_exists"), "assert_exists");
+    expose(_assert_own_property("assert_own_property"), "assert_own_property");
+
+    function assert_not_exists(object, property_name, description)
+    {
+        assert(!object.hasOwnProperty(property_name),
+               "assert_not_exists", description,
+               "unexpected property ${p} found", {p:property_name});
+    };
+    expose(assert_not_exists, "assert_not_exists");
+
+    function _assert_inherits(name) {
+        return function (object, property_name, description)
+        {
+            assert(!object.hasOwnProperty(property_name),
+                   name, description,
+                   "property ${p} found on object expected in prototype chain",
+                   {p:property_name});
+
+            assert(property_name in object,
+                   name, description,
+                   "property ${p} not found in prototype chain",
+                   {p:property_name});
+        };
+    }
+    expose(_assert_inherits("assert_inherits"), "assert_inherits");
+    expose(_assert_inherits("assert_idl_attribute"), "assert_idl_attribute");
+
+    function assert_readonly(object, property_name, description)
+    {
+         var initial_value = object[property_name];
+         try {
+             assert(delete object[property_name] === false,
+                    "assert_readonly", description,
+                    "deleting property ${p} succeeded", {p:property_name});
+             assert(object[property_name] === initial_value,
+                    "assert_readonly", description,
+                    "deleting property ${p} succeeded", {p:property_name});
+             //Note that this can have side effects in the case where
+             //the property has PutForwards
+             object[property_name] = initial_value + "a"; //XXX use some other value here?
+             assert(object[property_name] === initial_value,
+                    "assert_readonly", description,
+                    "changing property ${p} succeeded",
+                    {p:property_name});
+         }
+         finally
+         {
+             object[property_name] = initial_value;
+         }
+    };
+    expose(assert_readonly, "assert_readonly");
+
+    function assert_throws(code, func, description)
+    {
+        try
+        {
+            func.call(this);
+            assert(false, "assert_throws", description,
+                   "${func} did not throw", {func:func});
+        }
+        catch(e)
+        {
+            if (e instanceof AssertionError) {
+                throw(e);
+            }
+            if (typeof code === "object")
+            {
+                assert(typeof e == "object" && "name" in e && e.name == code.name,
+                       "assert_throws", description,
+                       "${func} threw ${actual} (${actual_name}) expected ${expected} (${expected_name})",
+                                    {func:func, actual:e, actual_name:e.name,
+                                     expected:code,
+                                     expected_name:code.name});
+                return;
+            }
+            var required_props = {};
+            var expected_type;
+            if (code in DOMException)
+            {
+                expected_type = "DOMException";
+                required_props[code] = DOMException[code];
+                required_props.code = DOMException[code];
+                //Uncomment this when the latest version of every browser
+                //actually implements the spec; otherwise it just creates
+                //zillions of failures
+                //required_props.name = code;
+            }
+            else if (code in RangeException)
+            {
+                expected_type = "RangeException";
+                required_props[code] = RangeException[code];
+                required_props.code = RangeException[code];
+                //As above
+                //required_props.name = code;
+            }
+            else
+            {
+                throw new AssertionError('Test bug: unrecognized code "' + code + '" passed to assert_throws()');
+            }
+            //We'd like to test that e instanceof the appropriate interface,
+            //but we can't, because we don't know what window it was created
+            //in.  It might be an instanceof the appropriate interface on some
+            //unknown other window.  TODO: Work around this somehow?
+
+            assert(typeof e == "object",
+                   "assert_throws", description,
+                   "${func} threw ${e} with type ${type}, not an object",
+                   {func:func, e:e, type:typeof e});
+
+            for (var prop in required_props)
+            {
+                assert(typeof e == "object" && prop in e && e[prop] == required_props[prop],
+                       "assert_throws", description,
+                       "${func} threw ${e} that is not a " + expected_type + " " + code + ": property ${prop} is equal to ${actual}, expected ${expected}",
+                       {func:func, e:e, prop:prop, actual:e[prop], expected:required_props[prop]});
+            }
+        }
+    }
+    expose(assert_throws, "assert_throws");
+
+    function assert_unreached(description) {
+         assert(false, "assert_unreached", description,
+                "Reached unreachable code");
+    }
+    expose(assert_unreached, "assert_unreached");
+
+    function Test(name, properties)
+    {
+        this.name = name;
+        this.status = this.NOTRUN;
+        this.timeout_id = null;
+        this.is_done = false;
+
+        this.timeout_length = properties.timeout ? properties.timeout : default_test_timeout;
+
+        this.message = null;
+
+        var this_obj = this;
+        this.steps = [];
+
+        tests.push(this);
+    }
+
+    Test.prototype = {
+        PASS:0,
+        FAIL:1,
+        TIMEOUT:2,
+        NOTRUN:3
+    };
+
+
+    Test.prototype.step = function(func, this_obj)
+    {
+        //In case the test has already failed
+        if (this.status !== this.NOTRUN)
+        {
+          return;
+        }
+
+        tests.started = true;
+
+        if (this.timeout_id === null) {
+            this.set_timeout();
+        }
+
+        this.steps.push(func);
+
+        if (arguments.length == 1)
+        {
+            this_obj = this;
+        }
+
+        try
+        {
+            func.apply(this_obj, Array.prototype.slice.call(arguments, 2));
+        }
+        catch(e)
+        {
+            //This can happen if something called synchronously invoked another
+            //step
+            if (this.status !== this.NOTRUN)
+            {
+                return;
+            }
+            this.status = this.FAIL;
+            this.message = e.message;
+            if (typeof e.stack != "undefined" && typeof e.message == "string") {
+                //Try to make it more informative for some exceptions, at least
+                //in Gecko and WebKit.  This results in a stack dump instead of
+                //just errors like "Cannot read property 'parentNode' of null"
+                //or "root is null".  Makes it a lot longer, of course.
+                this.message += "(stack: " + e.stack + ")";
+            }
+            this.done();
+            if (debug && e.constructor !== AssertionError) {
+                throw e;
+            }
+        }
+    };
+
+    Test.prototype.step_func = function(func, this_obj)
+    {
+        var test_this = this;
+
+        if (arguments.length == 1) 
+        {
+            this_obj = test_this;
+        }
+
+        return function()
+        {
+            test_this.step.apply(test_this, [func, this_obj].concat(
+                Array.prototype.slice.call(arguments)));
+        };
+    };
+
+    Test.prototype.set_timeout = function()
+    {
+        var this_obj = this;
+        this.timeout_id = setTimeout(function()
+                                     {
+                                         this_obj.timeout();
+                                     }, this.timeout_length);
+    };
+
+    Test.prototype.timeout = function()
+    {
+        this.status = this.TIMEOUT;
+        this.timeout_id = null;
+        this.message = "Test timed out";
+        this.done();
+    };
+
+    Test.prototype.done = function()
+    {
+        if (this.is_done) {
+            return;
+        }
+        clearTimeout(this.timeout_id);
+        if (this.status === this.NOTRUN)
+        {
+            this.status = this.PASS;
+        }
+        this.is_done = true;
+        tests.result(this);
+    };
+
+
+    /*
+     * Harness
+     */
+
+    function TestsStatus()
+    {
+        this.status = null;
+        this.message = null;
+    }
+    TestsStatus.prototype = {
+        OK:0,
+        ERROR:1,
+        TIMEOUT:2
+    };
+
+    function Tests()
+    {
+        this.tests = [];
+        this.num_pending = 0;
+
+        this.phases = {
+            INITIAL:0,
+            SETUP:1,
+            HAVE_TESTS:2,
+            HAVE_RESULTS:3,
+            COMPLETE:4
+        };
+        this.phase = this.phases.INITIAL;
+
+        //All tests can't be done until the load event fires
+        this.all_loaded = false;
+        this.wait_for_finish = false;
+        this.processing_callbacks = false;
+
+        this.timeout_length = default_timeout;
+        this.timeout_id = null;
+        this.set_timeout();
+
+        this.start_callbacks = [];
+        this.test_done_callbacks = [];
+        this.all_done_callbacks = [];
+
+        this.status = new TestsStatus();
+
+        var this_obj = this;
+
+        on_event(window, "load",
+                 function()
+                 {
+                     this_obj.all_loaded = true;
+                     if (this_obj.all_done())
+                     {
+                         this_obj.complete();
+                     }
+                 });
+        this.properties = {};
+    }
+
+    Tests.prototype.setup = function(func, properties)
+    {
+        if (this.phase >= this.phases.HAVE_RESULTS) {
+            return;
+        }
+        if (this.phase < this.phases.SETUP) {
+            this.phase = this.phases.SETUP;
+        }
+
+        this.properties = properties;
+
+        if (properties.timeout)
+        {
+            this.timeout_length = properties.timeout;
+            this.set_timeout();
+        }
+        if (properties.explicit_done)
+        {
+            this.wait_for_finish = true;
+        }
+
+        if (func)
+        {
+            try
+            {
+                func();
+            } catch(e)
+            {
+                this.status.status = this.status.ERROR;
+                this.status.message = e;
+            };
+        }
+    };
+
+    Tests.prototype.set_timeout = function()
+    {
+        var this_obj = this;
+        clearTimeout(this.timeout_id);
+        this.timeout_id = setTimeout(function() {
+                                         this_obj.timeout();
+                                     }, this.timeout_length);
+    };
+
+    Tests.prototype.timeout = function() {
+        this.status.status = this.status.TIMEOUT;
+        this.complete();
+    };
+
+    Tests.prototype.end_wait = function()
+    {
+        this.wait_for_finish = false;
+        if (this.all_done()) {
+            this.complete();
+        }
+    };
+
+    Tests.prototype.push = function(test)
+    {
+        this.num_pending++;
+        this.tests.push(test);
+        if (this.phase < this.phases.HAVE_TESTS) {
+            this.notify_start();
+        }
+    };
+
+    Tests.prototype.all_done = function() {
+        return (this.all_loaded && this.num_pending === 0 &&
+                !this.wait_for_finish && !this.processing_callbacks);
+    };
+
+    Tests.prototype.start = function() {
+        this.phase = this.phases.HAVE_TESTS;
+        this.notify_start();
+    };
+
+    Tests.prototype.notify_start = function() {
+        var this_obj = this;
+        forEach (this.start_callbacks,
+                 function(callback)
+                 {
+                     callback(this_obj.properties);
+                 });
+        forEach(ancestor_windows(),
+                function(w)
+                {
+                    if(w.start_callback)
+                    {
+                        try
+                        {
+                            w.start_callback(this_obj.properties);
+                        }
+                        catch(e)
+                        {
+                            if (debug)
+                            {
+                                throw(e);
+                            }
+                        }
+                    }
+                });
+    };
+
+    Tests.prototype.result = function(test)
+    {
+        if (this.phase > this.phases.HAVE_RESULTS)
+        {
+            return;
+        }
+        this.phase = this.phases.HAVE_RESULTS;
+        this.num_pending--;
+        this.notify_result(test);
+    };
+
+    Tests.prototype.notify_result = function(test) {
+        var this_obj = this;
+        this.processing_callbacks = true;
+        forEach(this.test_done_callbacks,
+                function(callback)
+                {
+                    callback(test, this_obj);
+                });
+
+        forEach(ancestor_windows(),
+                function(w)
+                {
+                    if(w.result_callback)
+                    {
+                        try
+                        {
+                            w.result_callback(test);
+                        }
+                        catch(e)
+                        {
+                            if(debug) {
+                                throw e;
+                            }
+                        }
+                    }
+                });
+        this.processing_callbacks = false;
+        if (this_obj.all_done())
+        {
+            this_obj.complete();
+        }
+    };
+
+    Tests.prototype.complete = function() {
+        if (this.phase === this.phases.COMPLETE) {
+            return;
+        }
+        this.phase = this.phases.COMPLETE;
+        this.notify_complete();
+    };
+
+    Tests.prototype.notify_complete = function()
+    {
+        clearTimeout(this.timeout_id);
+        var this_obj = this;
+        if (this.status.status === null)
+        {
+            this.status.status = this.status.OK;
+        }
+
+        forEach (this.all_done_callbacks,
+                 function(callback)
+                 {
+                     callback(this_obj.tests, this_obj.status);
+                 });
+
+        forEach(ancestor_windows(),
+                function(w)
+                {
+                    if(w.completion_callback)
+                    {
+                        try
+                        {
+                            w.completion_callback(this_obj.tests, this_obj.status);
+                        }
+                        catch(e)
+                        {
+                            if (debug)
+                            {
+                                throw e;
+                            }
+                        }
+                    }
+                });
+    };
+
+    var tests = new Tests();
+
+    function add_start_callback(callback) {
+        tests.start_callbacks.push(callback);
+    }
+
+    function add_result_callback(callback)
+    {
+        tests.test_done_callbacks.push(callback);
+    }
+
+    function add_completion_callback(callback)
+    {
+       tests.all_done_callbacks.push(callback);
+    }
+
+    expose(add_start_callback, 'add_start_callback');
+    expose(add_result_callback, 'add_result_callback');
+    expose(add_completion_callback, 'add_completion_callback');
+
+    /*
+     * Output listener
+    */
+
+    function Output() {
+      this.output_document = null;
+      this.output_node = null;
+      this.done_count = 0;
+      this.phase = this.INITIAL;
+    }
+
+    Output.prototype.INITIAL = 0;
+    Output.prototype.SETUP = 1;
+    Output.prototype.HAVE_RESULTS = 2;
+    Output.prototype.COMPLETE = 3;
+
+    Output.prototype.setup = function(properties)
+    {
+        if (this.phase >= this.SETUP) {
+            return;
+        }
+        if (properties.output_document) {
+            this.output_document = properties.output_document;
+        } else {
+            this.output_document = document;
+        }
+        this.phase = this.SETUP;
+    };
+
+    Output.prototype.resolve_log = function()
+    {
+        if (!this.output_document) {
+            return;
+        }
+        var node = this.output_document.getElementById("log");
+        if (node) {
+            this.output_node = node;
+        }
+    };
+
+    Output.prototype.show_status = function(test)
+    {
+        if (this.phase < this.SETUP)
+        {
+            this.setup();
+        }
+        if (this.phase < this.HAVE_RESULTS)
+        {
+            this.resolve_log();
+            this.phase = this.HAVE_RESULTS;
+        }
+        this.done_count = tests.tests.length - tests.num_pending;
+        if (this.output_node)
+        {
+            if (this.done_count < 100
+            || (this.done_count < 1000 && this.done_count % 100 == 0)
+            || this.done_count % 1000 == 0) {
+                this.output_node.textContent = "Running, "
+                    + this.done_count + " complete, "
+                    + tests.num_pending + " remain";
+            }
+        }
+    };
+
+    Output.prototype.show_results = function (tests, harness_status)
+    {
+        if (this.phase >= this.COMPLETE) {
+            return;
+        }
+        if (!this.output_node) {
+            this.resolve_log();
+        }
+        this.phase = this.COMPLETE;
+
+        var log = this.output_node;
+        if (!log)
+        {
+            return;
+        }
+        var output_document = this.output_document;
+
+        while (log.lastChild)
+        {
+            log.removeChild(log.lastChild);
+        }
+
+        if (script_prefix != null) {
+            var stylesheet = output_document.createElementNS(xhtml_ns, "link");
+            stylesheet.setAttribute("rel", "stylesheet");
+            stylesheet.setAttribute("href", script_prefix + "testharness.css");
+            var heads = output_document.getElementsByTagName("head");
+            if (heads.length) {
+                heads[0].appendChild(stylesheet);
+            }
+        }
+
+        var status_text = {};
+        status_text[Test.prototype.PASS] = "Pass";
+        status_text[Test.prototype.FAIL] = "Fail";
+        status_text[Test.prototype.TIMEOUT] = "Timeout";
+        status_text[Test.prototype.NOTRUN] = "Not Run";
+
+        var status_number = {};
+        forEach(tests, function(test) {
+                    var status = status_text[test.status];
+                    if (status_number.hasOwnProperty(status))
+                    {
+                        status_number[status] += 1;
+                    } else {
+                        status_number[status] = 1;
+                    }
+                });
+
+        function status_class(status)
+        {
+            return status.replace(/\s/g, '').toLowerCase();
+        }
+
+        var summary_template = ["section", {"id":"summary"},
+                                ["h2", {}, "Summary"],
+                                ["p", {}, "Found ${num_tests} tests"],
+                                function(vars) {
+                                    var rv = [["div", {}]];
+                                    var i=0;
+                                    while (status_text.hasOwnProperty(i)) {
+                                        if (status_number.hasOwnProperty(status_text[i])) {
+                                            var status = status_text[i];
+                                            rv[0].push(["div", {"class":status_class(status)},
+                                                        ["label", {},
+                                                         ["input", {type:"checkbox", checked:"checked"}],
+                                                         status_number[status] + " " + status]]);
+                                        }
+                                        i++;
+                                    }
+                                    return rv;
+                                }];
+
+        log.appendChild(render(summary_template, {num_tests:tests.length}, output_document));
+
+        forEach(output_document.querySelectorAll("section#summary label"),
+                function(element)
+                {
+                    on_event(element, "click",
+                             function(e)
+                             {
+                                 if (output_document.getElementById("results") === null)
+                                 {
+                                     e.preventDefault();
+                                     return;
+                                 }
+                                 var result_class = element.parentNode.getAttribute("class");
+                                 var style_element = output_document.querySelector("style#hide-" + result_class);
+                                 var input_element = element.querySelector("input");
+                                 if (!style_element && !input_element.checked) {
+                                     style_element = output_document.createElementNS(xhtml_ns, "style");
+                                     style_element.id = "hide-" + result_class;
+                                     style_element.innerHTML = "table#results > tbody > tr."+result_class+"{display:none}";
+                                     output_document.body.appendChild(style_element);
+                                 } else if (style_element && input_element.checked) {
+                                     style_element.parentNode.removeChild(style_element);
+                                 }
+                             });
+                });
+
+        // This use of innerHTML plus manual escaping is not recommended in
+        // general, but is necessary here for performance.  Using textContent
+        // on each individual <td> adds tens of seconds of execution time for
+        // large test suites (tens of thousands of tests).
+        function escape_html(s)
+        {
+            return s.replace(/\&/g, "&amp;")
+                .replace(/</g, "&lt;")
+                .replace(/"/g, "&quot;")
+                .replace(/'/g, "&#39;");
+        }
+
+        log.appendChild(document.createElement("section"));
+        var html = "<h2>Details</h2><table id=results>"
+            + "<thead><tr><th>Result</th><th>Test Name</th><th>Message</th></tr></thead>"
+            + "<tbody>";
+        for (var i = 0; i < tests.length; i++) {
+            html += '<tr class="'
+                + escape_html(status_class(status_text[tests[i].status]))
+                + '"><td>'
+                + escape_html(status_text[tests[i].status])
+                + "</td><td>"
+                + escape_html(tests[i].name)
+                + "</td><td>"
+                + escape_html(tests[i].message ? tests[i].message : " ")
+                + "</td></tr>";
+        }
+        log.lastChild.innerHTML = html + "</tbody></table>";
+    };
+
+    var output = new Output();
+    add_start_callback(function (properties) {output.setup(properties);output.show_status(tests);});
+    add_result_callback(function (test) {output.show_status(tests);});
+    add_completion_callback(function (tests, harness_status) {output.show_results(tests, harness_status);});
+
+    /*
+     * Template code
+     *
+     * A template is just a javascript structure. An element is represented as:
+     *
+     * [tag_name, {attr_name:attr_value}, child1, child2]
+     *
+     * the children can either be strings (which act like text nodes), other templates or
+     * functions (see below)
+     *
+     * A text node is represented as
+     *
+     * ["{text}", value]
+     *
+     * String values have a simple substitution syntax; ${foo} represents a variable foo.
+     *
+     * It is possible to embed logic in templates by using a function in a place where a
+     * node would usually go. The function must either return part of a template or null.
+     *
+     * In cases where a set of nodes are required as output rather than a single node
+     * with children it is possible to just use a list
+     * [node1, node2, node3]
+     *
+     * Usage:
+     *
+     * render(template, substitutions) - take a template and an object mapping
+     * variable names to parameters and return either a DOM node or a list of DOM nodes
+     *
+     * substitute(template, substitutions) - take a template and variable mapping object,
+     * make the variable substitutions and return the substituted template
+     *
+     */
+
+    function is_single_node(template)
+    {
+        return typeof template[0] === "string";
+    }
+
+    function substitute(template, substitutions)
+    {
+        if (typeof template === "function") {
+            var replacement = template(substitutions);
+            if (replacement)
+            {
+                var rv = substitute(replacement, substitutions);
+                return rv;
+            }
+            else
+            {
+                return null;
+            }
+        }
+        else if (is_single_node(template))
+        {
+            return substitute_single(template, substitutions);
+        }
+        else
+        {
+            return filter(map(template, function(x) {
+                                  return substitute(x, substitutions);
+                              }), function(x) {return x !== null;});
+        }
+    }
+
+    function substitute_single(template, substitutions)
+    {
+        var substitution_re = /\${([^ }]*)}/g;
+
+        function do_substitution(input) {
+            var components = input.split(substitution_re);
+            var rv = [];
+            for (var i=0; i<components.length; i+=2)
+            {
+                rv.push(components[i]);
+                if (components[i+1])
+                {
+                    rv.push(String(substitutions[components[i+1]]));
+                }
+            }
+            return rv;
+        }
+
+        var rv = [];
+        rv.push(do_substitution(String(template[0])).join(""));
+
+        if (template[0] === "{text}") {
+            substitute_children(template.slice(1), rv);
+        } else {
+            substitute_attrs(template[1], rv);
+            substitute_children(template.slice(2), rv);
+        }
+
+        function substitute_attrs(attrs, rv)
+        {
+            rv[1] = {};
+            for (var name in template[1])
+            {
+                if (attrs.hasOwnProperty(name))
+                {
+                    var new_name = do_substitution(name).join("");
+                    var new_value = do_substitution(attrs[name]).join("");
+                    rv[1][new_name] = new_value;
+                };
+            }
+        }
+
+        function substitute_children(children, rv)
+        {
+            for (var i=0; i<children.length; i++)
+            {
+                if (children[i] instanceof Object) {
+                    var replacement = substitute(children[i], substitutions);
+                    if (replacement !== null)
+                    {
+                        if (is_single_node(replacement))
+                        {
+                            rv.push(replacement);
+                        }
+                        else
+                        {
+                            extend(rv, replacement);
+                        }
+                    }
+                }
+                else
+                {
+                    extend(rv, do_substitution(String(children[i])));
+                }
+            }
+            return rv;
+        }
+
+        return rv;
+    }
+
+ function make_dom_single(template, doc)
+ {
+     var output_document = doc || document;
+     if (template[0] === "{text}")
+     {
+         var element = output_document.createTextNode("");
+         for (var i=1; i<template.length; i++)
+         {
+             element.data += template[i];
+         }
+     }
+     else
+     {
+         var element = output_document.createElementNS(xhtml_ns, template[0]);
+         for (var name in template[1]) {
+             if (template[1].hasOwnProperty(name))
+             {
+                 element.setAttribute(name, template[1][name]);
+             }
+         }
+         for (var i=2; i<template.length; i++)
+         {
+             if (template[i] instanceof Object)
+             {
+                 var sub_element = make_dom(template[i]);
+                 element.appendChild(sub_element);
+             }
+             else
+             {
+                 var text_node = output_document.createTextNode(template[i]);
+                 element.appendChild(text_node);
+             }
+         }
+     }
+
+     return element;
+ }
+
+
+
+ function make_dom(template, substitutions, output_document)
+    {
+        if (is_single_node(template))
+        {
+            return make_dom_single(template, output_document);
+        }
+        else
+        {
+            return map(template, function(x) {
+                           return make_dom_single(x, output_document);
+                       });
+        }
+    }
+
+ function render(template, substitutions, output_document)
+    {
+        return make_dom(substitute(template, substitutions), output_document);
+    }
+
+    /*
+     * Utility funcions
+     */
+    function assert(expected_true, function_name, description, error, substitutions)
+    {
+        if (expected_true !== true)
+        {
+            throw new AssertionError(make_message(function_name, description,
+                                                  error, substitutions));
+        }
+    }
+
+    function AssertionError(message)
+    {
+        this.message = message;
+    }
+
+    function make_message(function_name, description, error, substitutions)
+    {
+        for (var p in substitutions) {
+            if (substitutions.hasOwnProperty(p)) {
+                substitutions[p] = format_value(substitutions[p]);
+            }
+        }
+        var node_form = substitute(["{text}", "${function_name}: ${description}" + error],
+                                   merge({function_name:function_name,
+                                          description:(description?description + " ":"")},
+                                          substitutions));
+        return node_form.slice(1).join("");
+    }
+
+    function filter(array, callable, thisObj) {
+        var rv = [];
+        for (var i=0; i<array.length; i++)
+        {
+            if (array.hasOwnProperty(i))
+            {
+                var pass = callable.call(thisObj, array[i], i, array);
+                if (pass) {
+                    rv.push(array[i]);
+                }
+            }
+        }
+        return rv;
+    }
+
+    function map(array, callable, thisObj)
+    {
+        var rv = [];
+        rv.length = array.length;
+        for (var i=0; i<array.length; i++)
+        {
+            if (array.hasOwnProperty(i))
+            {
+                rv[i] = callable.call(thisObj, array[i], i, array);
+            }
+        }
+        return rv;
+    }
+
+    function extend(array, items)
+    {
+        Array.prototype.push.apply(array, items);
+    }
+
+    function forEach (array, callback, thisObj)
+    {
+        for (var i=0; i<array.length; i++)
+        {
+            if (array.hasOwnProperty(i))
+            {
+                callback.call(thisObj, array[i], i, array);
+            }
+        }
+    }
+
+    function merge(a,b)
+    {
+        var rv = {};
+        var p;
+        for (p in a)
+        {
+            rv[p] = a[p];
+        }
+        for (p in b) {
+            rv[p] = b[p];
+        }
+        return rv;
+    }
+
+    function expose(object, name)
+    {
+        var components = name.split(".");
+        var target = window;
+        for (var i=0; i<components.length - 1; i++)
+        {
+            if (!(components[i] in target))
+            {
+                target[components[i]] = {};
+            }
+            target = target[components[i]];
+        }
+        target[components[components.length - 1]] = object;
+    }
+
+ function ancestor_windows() {
+     //Get the windows [self ... top] as an array
+     if ("result_cache" in ancestor_windows)
+     {
+         return ancestor_windows.result_cache;
+     }
+     var rv = [self];
+     var w = self;
+     while (w != w.parent)
+     {
+         w = w.parent;
+         rv.push(w);
+     }
+     ancestor_windows.result_cache = rv;
+     return rv;
+ }
+
+})();
+// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/test_api_exists.htm b/tct-manual-w3c-tests/pagevisibility/w3c/test_api_exists.htm
new file mode 100644 (file)
index 0000000..769bfe0
--- /dev/null
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html>
+    <head>
+        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+        <title>Page Visibility API Existence</title>
+        
+        <SCRIPT src="../../resources/testharness.js"></SCRIPT>
+        <SCRIPT src="support/featuredetection.js"></SCRIPT>
+        <SCRIPT src="support/pagevistestharness.js"></SCRIPT>
+        <LINK rel="stylesheet" href="support/testharness.css">
+    </head>
+    <body onload="onload_test()">
+        <h1>Description</h1>
+        <p>This test validates that all of the attributes and enumeration values associated with the Page Visibility API both exist and are set to the correct values.</p>
+
+        <div id="log"></div>
+
+        <script type="text/javascript" >
+            SetupResultTable();
+        
+            if (BrowserHasFeature(document, "hidden") !== undefined)
+            {
+                test_api_exists(document);
+            }
+            else
+            {
+                test_true(false, "Your browser does not support the Page Visibility API");
+            }
+            
+            function onload_test()
+            {
+                setTimeout(VerifyTest, 16);
+            }
+        </script>
+    </body>
+</html>
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm b/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm
new file mode 100644 (file)
index 0000000..76a70d6
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE HTML>
+<html>
+    <head>
+        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+        <title>Page Visibility API IFrame Test</title>
+        
+        <SCRIPT src="../../resources/testharness.js"></SCRIPT>
+        <SCRIPT src="support/featuredetection.js"></SCRIPT>
+        <SCRIPT src="support/pagevistestharness.js"></SCRIPT>
+        <LINK rel="stylesheet" href="support/testharness.css">
+    </head>
+    <body onload="onload_test()">
+        <h1>Description</h1>
+        <p>This test validates that all of the attributes and enumeration values associated with the Page Visibility API 
+           both exist and are set to the correct values inside both visible IFrames and IFrames hidden with style attributes.</p>
+
+        <div id="log"></div>
+        
+        <table border='1'>
+            <tr>
+                <th>
+                    IFrame with no style attribute
+                </th>
+                <th>
+                    IFrame with "display:none" style
+                </th>
+                <th>
+                    IFrame with "visibility:hidden" style
+                </th>
+            </tr>
+            <tr>
+                <td>
+                    <iframe id="childDocShown" src="support/blank_page_green.htm">
+                        iframes unsupported
+                    </iframe>
+                </td>
+                <td>
+                    <iframe id="childDocDisplayNone" src="support/blank_page_green.htm" style="display:none">
+                        iframes unsupported
+                    </iframe>
+                </td>
+                <td>
+                     <iframe id="childDocVisibilityHidden" src="support/blank_page_green.htm" style="visibility:hidden">
+                        iframes unsupported
+                    </iframe>
+                </td>
+            </tr>
+        <table>
+
+        <script type="text/javascript" >
+            SetupResultTable();
+
+            if (BrowserHasFeature(document, "hidden") !== undefined)
+            {
+                // attributes
+                test_api_exists(document.getElementById('childDocShown').contentDocument, "document.getElementById('childDocShown').contentDocument");
+                test_read_only_conformance(document.getElementById('childDocShown').contentDocument, "document.getElementById('childDocShown').contentDocument");
+                // enums
+                //test_api_exists_enum(document.getElementById('childDocShown').contentDocument, "document.getElementById('childDocShown').contentDocument");
+                //test_api_exists_optional(document.getElementById('childDocShown').contentDocument, "document.getElementById('childDocShown').contentDocument");
+                //test_read_only_conformance_enum(document.getElementById('childDocShown').contentDocument, "document.getElementById('childDocShown').contentDocument");
+                
+                // attributes
+                test_api_exists(document.getElementById('childDocDisplayNone').contentDocument, "document.getElementById('childDocDisplayNone').contentDocument");
+                test_read_only_conformance(document.getElementById('childDocDisplayNone').contentDocument, "document.getElementById('childDocDisplayNone').contentDocument");
+                // enums               
+               //test_api_exists_enum(document.getElementById('childDocDisplayNone').contentDocument, "document.getElementById('childDocDisplayNone').contentDocument");
+                //test_api_exists_optional(document.getElementById('childDocDisplayNone').contentDocument, "document.getElementById('childDocDisplayNone').contentDocument");
+                //test_read_only_conformance_enum(document.getElementById('childDocDisplayNone').contentDocument, "document.getElementById('childDocDisplayNone').contentDocument");
+               
+                // attributes
+                test_api_exists(document.getElementById('childDocVisibilityHidden').contentDocument, "document.getElementById('childDocVisibilityHidden').contentDocument");
+                test_read_only_conformance(document.getElementById('childDocVisibilityHidden').contentDocument, "document.getElementById('childDocVisibilityHidden').contentDocument");
+                // enums    
+                //test_api_exists_enum(document.getElementById('childDocVisibilityHidden').contentDocument, "document.getElementById('childDocVisibilityHidden').contentDocument");
+               //test_api_exists_optional(document.getElementById('childDocVisibilityHidden').contentDocument, "document.getElementById('childDocVisibilityHidden').contentDocument");
+               //test_read_only_conformance_enum(document.getElementById('childDocVisibilityHidden').contentDocument, "document.getElementById('childDocVisibilityHidden').contentDocument");
+               
+            }
+            else
+            {
+                test_true(false, "Your browser does not support the Page Visibility API");
+            }
+            
+            function onload_test()
+            {
+                setTimeout(VerifyTest, 16);
+            }
+        </script>
+    </body>
+</html>
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm b/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm
new file mode 100644 (file)
index 0000000..cf277de
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE HTML>
+<html>
+    <head>
+        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+        <title>Page Visibility API Attributes IFrame Test</title>
+        
+        <SCRIPT src="../../resources/testharness.js"></SCRIPT>
+        <SCRIPT src="support/featuredetection.js"></SCRIPT>
+        <SCRIPT src="support/pagevistestharness.js"></SCRIPT>
+        <LINK rel="stylesheet" href="support/testharness.css">
+    </head>
+    <body onload="onload_test()">
+        <h1>Description</h1>
+        <p>This test validates that all of the Page Visibility attributes inside both visible IFrames and IFrames hidden with 
+           style attributes match the value of the PageVisibility attributes inside the root document.</p>
+
+        <div id="log"></div>
+        
+        <table border='1'>
+            <tr>
+                <th>
+                    IFrame with no style attribute
+                </th>
+                <th>
+                    IFrame with "display:none" style
+                </th>
+                <th>
+                    IFrame with "visibility:hidden" style
+                </th>
+            </tr>
+            <tr>
+                <td>
+                    <iframe id="childDocShown" src="support/blank_page_green.htm">
+                        iframes unsupported
+                    </iframe>
+                </td>
+                <td>
+                    <iframe id="childDocDisplayNone" src="support/blank_page_green.htm" style="display:none">
+                        iframes unsupported
+                    </iframe>
+                </td>
+                <td>
+                     <iframe id="childDocVisibilityHidden" src="support/blank_page_green.htm" style="visibility:hidden">
+                        iframes unsupported
+                    </iframe>
+                </td>
+            </tr>
+        <table>
+
+        <script type="text/javascript" >
+            SetupResultTable();
+        
+            if (BrowserHasFeature(document, "hidden") !== undefined)
+            {
+                test_api_match(document, document.getElementById('childDocShown').contentDocument,
+                               "document", "document.getElementById('childDocShown').contentDocument");
+                test_api_match(document, document.getElementById('childDocDisplayNone').contentDocument,
+                               "document", "document.getElementById('childDocDisplayNone').contentDocument");
+                test_api_match(document, document.getElementById('childDocVisibilityHidden').contentDocument,
+                               "document", "document.getElementById('childDocVisibilityHidden').contentDocument");
+            }
+            else
+            {
+                test_true(false, "Your browser does not support the Page Visibility API");
+            }
+            
+            function onload_test()
+            {
+                setTimeout(VerifyTest, 16);
+            }
+        </script>
+    </body>
+</html>
diff --git a/tct-manual-w3c-tests/pagevisibility/w3c/test_read_only_conformance.htm b/tct-manual-w3c-tests/pagevisibility/w3c/test_read_only_conformance.htm
new file mode 100644 (file)
index 0000000..d490c1e
--- /dev/null
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML>
+<html>
+    <head>
+        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+        <title>Page Visibility API Read Only Conformance</title>
+        
+        <SCRIPT src="../../resources/testharness.js"></SCRIPT>
+        <SCRIPT src="support/featuredetection.js"></SCRIPT>
+        <SCRIPT src="support/pagevistestharness.js"></SCRIPT>
+        <LINK rel="stylesheet" href="support/testharness.css">
+    </head>
+    <body onload="onload_test()">
+        <h1>Description</h1>
+        <p>This test validates that all of the attributes and enumeration values associated with the Page Visibility API cannot be overwritten.</p>
+
+        <div id="log"></div>
+        
+        <script type="text/javascript">
+            SetupResultTable();
+        
+            if (BrowserHasFeature(document, "hidden") !== undefined)
+            {
+                test_read_only_conformance(document);
+                //test_read_only_conformance_enum(document);
+            }
+            else
+            {
+                test_true(false, "Your browser does not support the Page Visibility API");
+            }
+            
+            function onload_test()
+            {
+                setTimeout(VerifyTest, 16);
+            }
+        </script>
+    </body>
+</html>
diff --git a/tct-manual-w3c-tests/resources/COPYING b/tct-manual-w3c-tests/resources/COPYING
new file mode 100644 (file)
index 0000000..bd84625
--- /dev/null
@@ -0,0 +1,12 @@
+All test files under this folder except COPYING, Makefile.am and blacklist.* come from
+https://github.com/w3c/testharness.js (commit 81649066b179216eed02dfb58f631eb8bb6c7629)
+without any modification besides the necessary adjustment on reference path to test harness
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/resources/Makefile.am b/tct-manual-w3c-tests/resources/Makefile.am
new file mode 100644 (file)
index 0000000..9b06ae3
--- /dev/null
@@ -0,0 +1,4 @@
+
+w3cresources_SCRIPTS = *
+w3cresourcesdir = /opt/tct-manual-w3c-tests/resources
+EXTRA_DIST = $(w3cresources_SCRIPTS)
diff --git a/tct-manual-w3c-tests/resources/blacklist.clamshell b/tct-manual-w3c-tests/resources/blacklist.clamshell
new file mode 100644 (file)
index 0000000..b5bf744
--- /dev/null
@@ -0,0 +1,113 @@
+/* Clamshell does not support methods, the list format:  interface.method */
+
+var not_support_list = [
+       "Application.launch",
+       "Application.kill",
+       "Application.exit",
+       "Application.launchService",
+       "Application.getApplicationService",
+       "Application.getCurrentApplicationContext",
+       "Application.getApplicationsInformation",
+       "Application.addApplicationInformationEventListener",
+       "Application.removeApplicationInformationEventListener",
+
+       /*  Bluetooth */
+       "BluetoothManager.getDefaultAdapter",
+       "BluetoothAdapter.setName",
+       "BluetoothAdapter.setPowered",
+       "BluetoothAdapter.setVisible",
+       "BluetoothAdapter.discoverDevices",
+       "BluetoothAdapter.stopDiscovery",
+       "BluetoothAdapter.getKnownDevices",
+       "BluetoothAdapter.getDevice",
+       "BluetoothAdapter.createBonding",
+       "BluetoothAdapter.destroyBonding",
+       "BluetoothAdapter.registerRFCOMMServiceByUUID",
+       "BluetoothDevice.connectToServiceByUUID",
+       "BluetoothServiceHandler.unregister",
+
+       /* Time */
+       "TimeUtil.getCurrentDateTime",
+       "TimeUtil.setCurrentDateTime",
+       "TimeUtil.getLocalTimezone",
+       "TimeUtil.getAvailableTimezones",
+       "TimeUtil.getDateFormat",
+       "TimeUtil.getTimeFormat",
+       "TimeUtil.isLeapYear",
+       "TZDate.getTimezoneAbbreviation",
+       "TZDate.secondsFromUTC",
+       "TZDate.isDST",
+       "TZDate.getPreviousDSTTransition",
+       "TZDate.getNextDSTTransition",
+
+       /* Call */
+       "CallHistory.Find",
+       "CallHistory.Remove",
+       "CallHistory.removeBatch",
+       "CallHistory.removeAll",
+       "CallHistory.deleteRecording",
+       "CallHistory.addListener",
+       "CallHistory.removeListener",
+
+       /* Calendar */
+       "CalendarManager.getCalendars",
+       "Calendar.add",
+       "Calendar.addBatch",
+       "Calendar.update",
+       "Calendar.updateBatch",
+       "Calendar.remove",
+       "Calendar.removeBatch",
+       "Calendar.find",
+       "Calendar.addChangeListener",
+       "Calendar.removeChangeListener",
+       "CalendarEvent.expandRecurrence",
+
+       /* Contact */
+       "AddressBook.Add",
+       "AddressBook.addBatch",
+       "AddressBook.update",
+       "AddressBook.updateBatch",
+       "AddressBook.remove",
+       "AddressBook.removeBatch",
+       "AddressBook.find",
+       "AddressBook.addChangeListener",
+       "Contact.convertToString",
+
+       /* Filesystem */
+       "FileSystemManager.Resolve",
+       "FileSystemManager.getStorage",
+       "FileSystemManager.listStorages",
+       "FileSystemManager.addStorageStateChangeListener",
+       "File.toURI",
+       "File.listFiles",
+       "File.openStream",
+       "File.readAsText",
+       "File.copyTo",
+       "File.moveTo",
+       "File.deleteDirectory",
+       "File.deleteFile",
+
+       /* Messaging */
+       "MessageService.sendMessage",
+       "MessageStorage.addDraftMessage",
+       "MessageStorage.findMessages",
+       "MessageStorage.removeMessages",
+       "MessageStorage.updateMessages",
+       "MessageStorage.findConversations",
+       "MessageStorage.removeConversations",
+       "MessageStorage.findFolders",
+       "MessageStorage.addMessagesChangeListener",
+       "MessageStorage.addConversationsChangeListener",
+       "MessageStorage.addFoldersChangeListener",
+       "MessageStorage.removeChangeListener",
+
+       /* POI */
+       "POIProvider.remove",
+
+       /* Media-Capture */
+       "capture",
+
+       /* Vibration */
+       "Vibration"
+];
+
diff --git a/tct-manual-w3c-tests/resources/blacklist.default b/tct-manual-w3c-tests/resources/blacklist.default
new file mode 100644 (file)
index 0000000..4670187
--- /dev/null
@@ -0,0 +1,5 @@
+/* default blacklist.js, just a placeholder:  interface.method */
+
+var not_support_list = [
+];
+
diff --git a/tct-manual-w3c-tests/resources/blacklist.js b/tct-manual-w3c-tests/resources/blacklist.js
new file mode 100644 (file)
index 0000000..4670187
--- /dev/null
@@ -0,0 +1,5 @@
+/* default blacklist.js, just a placeholder:  interface.method */
+
+var not_support_list = [
+];
+
diff --git a/tct-manual-w3c-tests/resources/testharness.css b/tct-manual-w3c-tests/resources/testharness.css
new file mode 100644 (file)
index 0000000..365084f
--- /dev/null
@@ -0,0 +1,92 @@
+html {
+    font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
+}
+
+#log .warning,
+#log .warning a {
+  color: black;
+  background: yellow;
+}
+
+#log .error,
+#log .error a {
+  color: white;
+  background: red;
+}
+
+#log pre {
+  border: 1px solid black;
+  padding: 1em;
+}
+
+section#summary {
+    margin-bottom:1em;
+}
+
+table#results {
+    border-collapse:collapse;
+    table-layout:fixed;
+    width:100%;
+}
+
+table#results th:first-child,
+table#results td:first-child {
+    width:4em;
+}
+
+table#results th:last-child,
+table#results td:last-child {
+    width:50%;
+}
+
+table#results.assertions th:last-child,
+table#results.assertions td:last-child {
+    width:35%;
+}
+
+table#results th {
+    padding:0;
+    padding-bottom:0.5em;
+    border-bottom:medium solid black;
+}
+
+table#results td {
+    padding:1em;
+    padding-bottom:0.5em;
+    border-bottom:thin solid black;
+}
+
+tr.pass > td:first-child {
+    color:green;
+}
+
+tr.fail > td:first-child {
+    color:red;
+}
+
+tr.timeout > td:first-child {
+    color:red;
+}
+
+tr.notrun > td:first-child {
+    color:blue;
+}
+
+.pass > td:first-child, .fail > td:first-child, .timeout > td:first-child, .notrun > td:first-child {
+    font-variant:small-caps;
+}
+
+table#results span {
+    display:block;
+}
+
+table#results span.expected {
+    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
+    white-space:pre;
+}
+
+table#results span.actual {
+    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
+    white-space:pre;
+}
+
diff --git a/tct-manual-w3c-tests/resources/testharness.js b/tct-manual-w3c-tests/resources/testharness.js
new file mode 100644 (file)
index 0000000..69acd7f
--- /dev/null
@@ -0,0 +1,2237 @@
+/*
+Distributed under both the W3C Test Suite License [1] and the W3C
+3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
+policies and contribution forms [3].
+
+[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+[2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+[3] http://www.w3.org/2004/10/27-testcases
+*/
+
+/*
+ * == Introduction ==
+ *
+ * This file provides a framework for writing testcases. It is intended to
+ * provide a convenient API for making common assertions, and to work both
+ * for testing synchronous and asynchronous DOM features in a way that
+ * promotes clear, robust, tests.
+ *
+ * == Basic Usage ==
+ *
+ * To use this file, import the script and the testharnessreport script into
+ * the test document:
+ * <script src="/resources/testharness.js"></script>
+ * <script src="/resources/testharnessreport.js"></script>
+ *
+ * Within each file one may define one or more tests. Each test is atomic
+ * in the sense that a single test has a single result (pass/fail/timeout).
+ * Within each test one may have a number of asserts. The test fails at the
+ * first failing assert, and the remainder of the test is (typically) not run.
+ *
+ * If the file containing the tests is a HTML file with an element of id "log"
+ * this will be populated with a table containing the test results after all
+ * the tests have run.
+ *
+ * NOTE: By default tests must be created before the load event fires. For ways
+ *       to create tests after the load event, see "Determining when all tests
+ *       are complete", below
+ *
+ * == Synchronous Tests ==
+ *
+ * To create a synchronous test use the test() function:
+ *
+ * test(test_function, name, properties)
+ *
+ * test_function is a function that contains the code to test. For example a
+ * trivial passing test would be:
+ *
+ * test(function() {assert_true(true)}, "assert_true with true")
+ *
+ * The function passed in is run in the test() call.
+ *
+ * properties is an object that overrides default test properties. The
+ * recognised properties are:
+ *    timeout - the test timeout in ms
+ *
+ * e.g.
+ * test(test_function, "Sample test", {timeout:1000})
+ *
+ * would run test_function with a timeout of 1s.
+ *
+ * Additionally, test-specific metadata can be passed in the properties. These
+ * are used when the individual test has different metadata from that stored 
+ * in the <head>.
+ * The recognized metadata properties are:
+ *
+ *    help - The url of the part of the specification being tested
+ *
+ *    assert - A human readable description of what the test is attempting 
+ *             to prove
+ *
+ *    author - Name and contact information for the author of the test in the
+ *             format: "Name <email_addr>" or "Name http://contact/url"
+ *
+ * == Asynchronous Tests ==
+ *
+ * Testing asynchronous features is somewhat more complex since the result of
+ * a test may depend on one or more events or other callbacks. The API provided
+ * for testing these features is indended to be rather low-level but hopefully
+ * applicable to many situations.
+ *
+ * To create a test, one starts by getting a Test object using async_test:
+ *
+ * async_test(name, properties)
+ *
+ * e.g.
+ * var t = async_test("Simple async test")
+ *
+ * Assertions can be added to the test by calling the step method of the test
+ * object with a function containing the test assertions:
+ *
+ * t.step(function() {assert_true(true)});
+ *
+ * When all the steps are complete, the done() method must be called:
+ *
+ * t.done();
+ *
+ * As a convenience, async_test can also takes a function as first argument.
+ * This function is called with the test object as both its `this` object and
+ * first argument. The above example can be rewritten as:
+ *
+ * async_test(function(t) {
+ *     object.some_event = function() {
+ *         t.step(function (){assert_true(true); t.done();});
+ *     };
+ * }, "Simple async test");
+ *
+ * which avoids cluttering the global scope with references to async
+ * tests instances.
+ *
+ * The properties argument is identical to that for test().
+ *
+ * In many cases it is convenient to run a step in response to an event or a
+ * callback. A convenient method of doing this is through the step_func method
+ * which returns a function that, when called runs a test step. For example
+ *
+ * object.some_event = t.step_func(function(e) {assert_true(e.a)});
+ *
+ * == Making assertions ==
+ *
+ * Functions for making assertions start assert_
+ * The best way to get a list is to look in this file for functions names
+ * matching that pattern. The general signature is
+ *
+ * assert_something(actual, expected, description)
+ *
+ * although not all assertions precisely match this pattern e.g. assert_true
+ * only takes actual and description as arguments.
+ *
+ * The description parameter is used to present more useful error messages when
+ * a test fails
+ *
+ * NOTE: All asserts must be located in a test() or a step of an async_test().
+ *       asserts outside these places won't be detected correctly by the harness
+ *       and may cause a file to stop testing.
+ *
+ * == Setup ==
+ *
+ * Sometimes tests require non-trivial setup that may fail. For this purpose
+ * there is a setup() function, that may be called with one or two arguments.
+ * The two argument version is:
+ *
+ * setup(func, properties)
+ *
+ * The one argument versions may omit either argument.
+ * func is a function to be run synchronously. setup() becomes a no-op once
+ * any tests have returned results. Properties are global properties of the test
+ * harness. Currently recognised properties are:
+ *
+ * timeout - The time in ms after which the harness should stop waiting for
+ *           tests to complete (this is different to the per-test timeout
+ *           because async tests do not start their timer until .step is called)
+ *
+ * explicit_done - Wait for an explicit call to done() before declaring all
+ *                 tests complete (see below)
+ *
+ * output_document - The document to which results should be logged. By default
+ *                   this is the current document but could be an ancestor
+ *                   document in some cases e.g. a SVG test loaded in an HTML
+ *                   wrapper
+ *
+ * explicit_timeout - disable file timeout; only stop waiting for results
+ *                    when the timeout() function is called (typically for
+ *                    use when integrating with some existing test framework
+ *                    that has its own timeout mechanism).
+ *
+ * == Determining when all tests are complete ==
+ *
+ * By default the test harness will assume there are no more results to come
+ * when:
+ * 1) There are no Test objects that have been created but not completed
+ * 2) The load event on the document has fired
+ *
+ * This behaviour can be overridden by setting the explicit_done property to
+ * true in a call to setup(). If explicit_done is true, the test harness will
+ * not assume it is done until the global done() function is called. Once done()
+ * is called, the two conditions above apply like normal.
+ *
+ * == Generating tests ==
+ *
+ * NOTE: this functionality may be removed
+ *
+ * There are scenarios in which is is desirable to create a large number of
+ * (synchronous) tests that are internally similar but vary in the parameters
+ * used. To make this easier, the generate_tests function allows a single
+ * function to be called with each set of parameters in a list:
+ *
+ * generate_tests(test_function, parameter_lists, properties)
+ *
+ * For example:
+ *
+ * generate_tests(assert_equals, [
+ *     ["Sum one and one", 1+1, 2],
+ *     ["Sum one and zero", 1+0, 1]
+ *     ])
+ *
+ * Is equivalent to:
+ *
+ * test(function() {assert_equals(1+1, 2)}, "Sum one and one")
+ * test(function() {assert_equals(1+0, 1)}, "Sum one and zero")
+ *
+ * Note that the first item in each parameter list corresponds to the name of
+ * the test.
+ *
+ * The properties argument is identical to that for test(). This may be a 
+ * single object (used for all generated tests) or an array.
+ *
+ * == Callback API ==
+ *
+ * The framework provides callbacks corresponding to 3 events:
+ *
+ * start - happens when the first Test is created
+ * result - happens when a test result is recieved
+ * complete - happens when all results are recieved
+ *
+ * The page defining the tests may add callbacks for these events by calling
+ * the following methods:
+ *
+ *   add_start_callback(callback) - callback called with no arguments
+ *   add_result_callback(callback) - callback called with a test argument
+ *   add_completion_callback(callback) - callback called with an array of tests
+ *                                       and an status object
+ *
+ * tests have the following properties:
+ *   status: A status code. This can be compared to the PASS, FAIL, TIMEOUT and
+ *           NOTRUN properties on the test object
+ *   message: A message indicating the reason for failure. In the future this
+ *            will always be a string
+ *
+ *  The status object gives the overall status of the harness. It has the
+ *  following properties:
+ *    status: Can be compared to the OK, ERROR and TIMEOUT properties
+ *    message: An error message set when the status is ERROR
+ *
+ * == External API ==
+ *
+ * In order to collect the results of multiple pages containing tests, the test
+ * harness will, when loaded in a nested browsing context, attempt to call
+ * certain functions in each ancestor and opener browsing context:
+ *
+ * start - start_callback
+ * result - result_callback
+ * complete - completion_callback
+ *
+ * These are given the same arguments as the corresponding internal callbacks
+ * described above.
+ *
+ * == External API through cross-document messaging ==
+ *
+ * Where supported, the test harness will also send messages using
+ * cross-document messaging to each ancestor and opener browsing context. Since
+ * it uses the wildcard keyword (*), cross-origin communication is enabled and
+ * script on different origins can collect the results.
+ *
+ * This API follows similar conventions as those described above only slightly
+ * modified to accommodate message event API. Each message is sent by the harness
+ * is passed a single vanilla object, available as the `data` property of the
+ * event object. These objects are structures as follows:
+ *
+ * start - { type: "start" }
+ * result - { type: "result", test: Test }
+ * complete - { type: "complete", tests: [Test, ...], status: TestsStatus }
+ *
+ * == List of assertions ==
+ *
+ * assert_true(actual, description)
+ *   asserts that /actual/ is strictly true
+ *
+ * assert_false(actual, description)
+ *   asserts that /actual/ is strictly false
+ *
+ * assert_equals(actual, expected, description)
+ *   asserts that /actual/ is the same value as /expected/
+ *
+ * assert_not_equals(actual, expected, description)
+ *   asserts that /actual/ is a different value to /expected/. Yes, this means
+ *   that "expected" is a misnomer
+ *
+ * assert_in_array(actual, expected, description)
+ *   asserts that /expected/ is an Array, and /actual/ is equal to one of the
+ *   members -- expected.indexOf(actual) != -1
+ *
+ * assert_array_equals(actual, expected, description)
+ *   asserts that /actual/ and /expected/ have the same length and the value of
+ *   each indexed property in /actual/ is the strictly equal to the corresponding
+ *   property value in /expected/
+ *
+ * assert_approx_equals(actual, expected, epsilon, description)
+ *   asserts that /actual/ is a number within +/- /epsilon/ of /expected/
+ *
+ * assert_less_than(actual, expected, description)
+ *   asserts that /actual/ is a number less than /expected/
+ *
+ * assert_greater_than(actual, expected, description)
+ *   asserts that /actual/ is a number greater than /expected/
+ *
+ * assert_less_than_equal(actual, expected, description)
+ *   asserts that /actual/ is a number less than or equal to /expected/
+ *
+ * assert_greater_than_equal(actual, expected, description)
+ *   asserts that /actual/ is a number greater than or equal to /expected/
+ *
+ * assert_regexp_match(actual, expected, description)
+ *   asserts that /actual/ matches the regexp /expected/
+ *
+ * assert_class_string(object, class_name, description)
+ *   asserts that the class string of /object/ as returned in
+ *   Object.prototype.toString is equal to /class_name/.
+ *
+ * assert_own_property(object, property_name, description)
+ *   assert that object has own property property_name
+ *
+ * assert_inherits(object, property_name, description)
+ *   assert that object does not have an own property named property_name
+ *   but that property_name is present in the prototype chain for object
+ *
+ * assert_idl_attribute(object, attribute_name, description)
+ *   assert that an object that is an instance of some interface has the
+ *   attribute attribute_name following the conditions specified by WebIDL
+ *
+ * assert_readonly(object, property_name, description)
+ *   assert that property property_name on object is readonly
+ *
+ * assert_throws(code, func, description)
+ *   code - the expected exception:
+ *     o string: the thrown exception must be a DOMException with the given
+ *               name, e.g., "TimeoutError" (for compatibility with existing
+ *               tests, a constant is also supported, e.g., "TIMEOUT_ERR")
+ *     o object: the thrown exception must have a property called "name" that
+ *               matches code.name
+ *     o null:   allow any exception (in general, one of the options above
+ *               should be used)
+ *   func - a function that should throw
+ *
+ * assert_unreached(description)
+ *   asserts if called. Used to ensure that some codepath is *not* taken e.g.
+ *   an event does not fire.
+ *
+ * assert_any(assert_func, actual, expected_array, extra_arg_1, ... extra_arg_N)
+ *   asserts that one assert_func(actual, expected_array_N, extra_arg1, ..., extra_arg_N)
+ *   is true for some expected_array_N in expected_array. This only works for assert_func
+ *   with signature assert_func(actual, expected, args_1, ..., args_N). Note that tests
+ *   with multiple allowed pass conditions are bad practice unless the spec specifically
+ *   allows multiple behaviours. Test authors should not use this method simply to hide 
+ *   UA bugs.
+ *
+ * assert_exists(object, property_name, description)
+ *   *** deprecated ***
+ *   asserts that object has an own property property_name
+ *
+ * assert_not_exists(object, property_name, description)
+ *   *** deprecated ***
+ *   assert that object does not have own property property_name
+ */
+
+(function ()
+{
+    var debug = false;
+    // default timeout is 5 seconds, test can override if needed
+    var settings = {
+      output:true,
+      timeout:5000,
+      test_timeout:2000
+    };
+
+    var xhtml_ns = "http://www.w3.org/1999/xhtml";
+
+    // script_prefix is used by Output.prototype.show_results() to figure out
+    // where to get testharness.css from.  It's enclosed in an extra closure to
+    // not pollute the library's namespace with variables like "src".
+    var script_prefix = null;
+    (function ()
+    {
+        var scripts = document.getElementsByTagName("script");
+        for (var i = 0; i < scripts.length; i++)
+        {
+            if (scripts[i].src)
+            {
+                var src = scripts[i].src;
+            }
+            else if (scripts[i].href)
+            {
+                //SVG case
+                var src = scripts[i].href.baseVal;
+            }
+            if (src && src.slice(src.length - "testharness.js".length) === "testharness.js")
+            {
+                script_prefix = src.slice(0, src.length - "testharness.js".length);
+                break;
+            }
+        }
+    })();
+
+    /*
+     * API functions
+     */
+
+    var name_counter = 0;
+    function next_default_name()
+    {
+        //Don't use document.title to work around an Opera bug in XHTML documents
+        var prefix = document.getElementsByTagName("title").length > 0 ?
+                         document.getElementsByTagName("title")[0].firstChild.data :
+                         "Untitled";
+        var suffix = name_counter > 0 ? " " + name_counter : "";
+        name_counter++;
+        return prefix + suffix;
+    }
+
+    function test(func, name, properties)
+    {
+        var test_name = name ? name : next_default_name();
+        properties = properties ? properties : {};
+        var test_obj = new Test(test_name, properties);
+        test_obj.step(func);
+        if (test_obj.status === test_obj.NOTRUN) {
+            test_obj.done();
+        }
+    }
+
+    function async_test(func, name, properties)
+    {
+        if (typeof func !== "function") {
+            properties = name;
+            name = func;
+            func = null;
+        }
+        var test_name = name ? name : next_default_name();
+        properties = properties ? properties : {};
+        var test_obj = new Test(test_name, properties);
+        if (func) {
+            test_obj.step(func, test_obj, test_obj);
+        }
+        return test_obj;
+    }
+
+    function setup(func_or_properties, maybe_properties)
+    {
+        var func = null;
+        var properties = {};
+        if (arguments.length === 2) {
+            func = func_or_properties;
+            properties = maybe_properties;
+        } else if (func_or_properties instanceof Function){
+            func = func_or_properties;
+        } else {
+            properties = func_or_properties;
+        }
+        tests.setup(func, properties);
+        output.setup(properties);
+    }
+
+    function done() {
+        tests.end_wait();
+    }
+
+    function generate_tests(func, args, properties) {
+        forEach(args, function(x, i)
+                {
+                    var name = x[0];
+                    test(function()
+                         {
+                             func.apply(this, x.slice(1));
+                         }, 
+                         name, 
+                         Array.isArray(properties) ? properties[i] : properties);
+                });
+    }
+
+    function on_event(object, event, callback)
+    {
+      object.addEventListener(event, callback, false);
+    }
+
+    expose(test, 'test');
+    expose(async_test, 'async_test');
+    expose(generate_tests, 'generate_tests');
+    expose(setup, 'setup');
+    expose(done, 'done');
+    expose(on_event, 'on_event');
+
+    /*
+     * Return a string truncated to the given length, with ... added at the end
+     * if it was longer.
+     */
+    function truncate(s, len)
+    {
+        if (s.length > len) {
+            return s.substring(0, len - 3) + "...";
+        }
+        return s;
+    }
+
+    /*
+     * Convert a value to a nice, human-readable string
+     */
+    function format_value(val)
+    {
+        if (Array.isArray(val))
+        {
+            return "[" + val.map(format_value).join(", ") + "]";
+        }
+
+        switch (typeof val)
+        {
+        case "string":
+            val = val.replace("\\", "\\\\");
+            for (var i = 0; i < 32; i++)
+            {
+                var replace = "\\";
+                switch (i) {
+                case 0: replace += "0"; break;
+                case 1: replace += "x01"; break;
+                case 2: replace += "x02"; break;
+                case 3: replace += "x03"; break;
+                case 4: replace += "x04"; break;
+                case 5: replace += "x05"; break;
+                case 6: replace += "x06"; break;
+                case 7: replace += "x07"; break;
+                case 8: replace += "b"; break;
+                case 9: replace += "t"; break;
+                case 10: replace += "n"; break;
+                case 11: replace += "v"; break;
+                case 12: replace += "f"; break;
+                case 13: replace += "r"; break;
+                case 14: replace += "x0e"; break;
+                case 15: replace += "x0f"; break;
+                case 16: replace += "x10"; break;
+                case 17: replace += "x11"; break;
+                case 18: replace += "x12"; break;
+                case 19: replace += "x13"; break;
+                case 20: replace += "x14"; break;
+                case 21: replace += "x15"; break;
+                case 22: replace += "x16"; break;
+                case 23: replace += "x17"; break;
+                case 24: replace += "x18"; break;
+                case 25: replace += "x19"; break;
+                case 26: replace += "x1a"; break;
+                case 27: replace += "x1b"; break;
+                case 28: replace += "x1c"; break;
+                case 29: replace += "x1d"; break;
+                case 30: replace += "x1e"; break;
+                case 31: replace += "x1f"; break;
+                }
+                val = val.replace(RegExp(String.fromCharCode(i), "g"), replace);
+            }
+            return '"' + val.replace(/"/g, '\\"') + '"';
+        case "boolean":
+        case "undefined":
+            return String(val);
+        case "number":
+            // In JavaScript, -0 === 0 and String(-0) == "0", so we have to
+            // special-case.
+            if (val === -0 && 1/val === -Infinity)
+            {
+                return "-0";
+            }
+            return String(val);
+        case "object":
+            if (val === null)
+            {
+                return "null";
+            }
+
+            // Special-case Node objects, since those come up a lot in my tests.  I
+            // ignore namespaces.  I use duck-typing instead of instanceof, because
+            // instanceof doesn't work if the node is from another window (like an
+            // iframe's contentWindow):
+            // http://www.w3.org/Bugs/Public/show_bug.cgi?id=12295
+            if ("nodeType" in val
+            && "nodeName" in val
+            && "nodeValue" in val
+            && "childNodes" in val)
+            {
+                switch (val.nodeType)
+                {
+                case Node.ELEMENT_NODE:
+                    var ret = "<" + val.tagName.toLowerCase();
+                    for (var i = 0; i < val.attributes.length; i++)
+                    {
+                        ret += " " + val.attributes[i].name + '="' + val.attributes[i].value + '"';
+                    }
+                    ret += ">" + val.innerHTML + "</" + val.tagName.toLowerCase() + ">";
+                    return "Element node " + truncate(ret, 60);
+                case Node.TEXT_NODE:
+                    return 'Text node "' + truncate(val.data, 60) + '"';
+                case Node.PROCESSING_INSTRUCTION_NODE:
+                    return "ProcessingInstruction node with target " + format_value(truncate(val.target, 60)) + " and data " + format_value(truncate(val.data, 60));
+                case Node.COMMENT_NODE:
+                    return "Comment node <!--" + truncate(val.data, 60) + "-->";
+                case Node.DOCUMENT_NODE:
+                    return "Document node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
+                case Node.DOCUMENT_TYPE_NODE:
+                    return "DocumentType node";
+                case Node.DOCUMENT_FRAGMENT_NODE:
+                    return "DocumentFragment node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
+                default:
+                    return "Node object of unknown type";
+                }
+            }
+
+            // Fall through to default
+        default:
+            return typeof val + ' "' + truncate(String(val), 60) + '"';
+        }
+    }
+    expose(format_value, "format_value");
+
+    /*
+     * Assertions
+     */
+
+    function assert_true(actual, description)
+    {
+        assert(actual === true, "assert_true", description,
+                                "expected true got ${actual}", {actual:actual});
+    };
+    expose(assert_true, "assert_true");
+
+    function assert_false(actual, description)
+    {
+        assert(actual === false, "assert_false", description,
+                                 "expected false got ${actual}", {actual:actual});
+    };
+    expose(assert_false, "assert_false");
+
+    function same_value(x, y) {
+        if (y !== y)
+        {
+            //NaN case
+            return x !== x;
+        }
+        else if (x === 0 && y === 0) {
+            //Distinguish +0 and -0
+            return 1/x === 1/y;
+        }
+        else
+        {
+            //typical case
+            return x === y;
+        }
+    }
+
+    function assert_equals(actual, expected, description)
+    {
+         /*
+          * Test if two primitives are equal or two objects
+          * are the same object
+          */
+        if (typeof actual != typeof expected)
+        {
+            assert(false, "assert_equals", description,
+                          "expected (" + typeof expected + ") ${expected} but got (" + typeof actual + ") ${actual}",
+                          {expected:expected, actual:actual});
+            return;
+        }
+        assert(same_value(actual, expected), "assert_equals", description,
+                                             "expected ${expected} but got ${actual}",
+                                             {expected:expected, actual:actual});
+    };
+    expose(assert_equals, "assert_equals");
+
+    function assert_not_equals(actual, expected, description)
+    {
+         /*
+          * Test if two primitives are unequal or two objects
+          * are different objects
+          */
+        assert(!same_value(actual, expected), "assert_not_equals", description,
+                                              "got disallowed value ${actual}",
+                                              {actual:actual});
+    };
+    expose(assert_not_equals, "assert_not_equals");
+
+    function assert_in_array(actual, expected, description)
+    {
+        assert(expected.indexOf(actual) != -1, "assert_in_array", description,
+                                               "value ${actual} not in array ${expected}",
+                                               {actual:actual, expected:expected});
+    }
+    expose(assert_in_array, "assert_in_array");
+
+    function assert_object_equals(actual, expected, description)
+    {
+         //This needs to be improved a great deal
+         function check_equal(actual, expected, stack)
+         {
+             stack.push(actual);
+
+             var p;
+             for (p in actual)
+             {
+                 assert(expected.hasOwnProperty(p), "assert_object_equals", description,
+                                                    "unexpected property ${p}", {p:p});
+
+                 if (typeof actual[p] === "object" && actual[p] !== null)
+                 {
+                     if (stack.indexOf(actual[p]) === -1)
+                     {
+                         check_equal(actual[p], expected[p], stack);
+                     }
+                 }
+                 else
+                 {
+                     assert(same_value(actual[p], expected[p]), "assert_object_equals", description,
+                                                       "property ${p} expected ${expected} got ${actual}",
+                                                       {p:p, expected:expected, actual:actual});
+                 }
+             }
+             for (p in expected)
+             {
+                 assert(actual.hasOwnProperty(p),
+                        "assert_object_equals", description,
+                        "expected property ${p} missing", {p:p});
+             }
+             stack.pop();
+         }
+         check_equal(actual, expected, []);
+    };
+    expose(assert_object_equals, "assert_object_equals");
+
+    function assert_array_equals(actual, expected, description)
+    {
+        assert(actual.length === expected.length,
+               "assert_array_equals", description,
+               "lengths differ, expected ${expected} got ${actual}",
+               {expected:expected.length, actual:actual.length});
+
+        for (var i=0; i < actual.length; i++)
+        {
+            assert(actual.hasOwnProperty(i) === expected.hasOwnProperty(i),
+                   "assert_array_equals", description,
+                   "property ${i}, property expected to be $expected but was $actual",
+                   {i:i, expected:expected.hasOwnProperty(i) ? "present" : "missing",
+                   actual:actual.hasOwnProperty(i) ? "present" : "missing"});
+            assert(same_value(expected[i], actual[i]),
+                   "assert_array_equals", description,
+                   "property ${i}, expected ${expected} but got ${actual}",
+                   {i:i, expected:expected[i], actual:actual[i]});
+        }
+    }
+    expose(assert_array_equals, "assert_array_equals");
+
+    function assert_approx_equals(actual, expected, epsilon, description)
+    {
+        /*
+         * Test if two primitive numbers are equal withing +/- epsilon
+         */
+        assert(typeof actual === "number",
+               "assert_approx_equals", description,
+               "expected a number but got a ${type_actual}",
+               {type_actual:typeof actual});
+
+        assert(Math.abs(actual - expected) <= epsilon,
+               "assert_approx_equals", description,
+               "expected ${expected} +/- ${epsilon} but got ${actual}",
+               {expected:expected, actual:actual, epsilon:epsilon});
+    };
+    expose(assert_approx_equals, "assert_approx_equals");
+
+    function assert_less_than(actual, expected, description)
+    {
+        /*
+         * Test if a primitive number is less than another
+         */
+        assert(typeof actual === "number",
+               "assert_less_than", description,
+               "expected a number but got a ${type_actual}",
+               {type_actual:typeof actual});
+
+        assert(actual < expected,
+               "assert_less_than", description,
+               "expected a number less than ${expected} but got ${actual}",
+               {expected:expected, actual:actual});
+    };
+    expose(assert_less_than, "assert_less_than");
+
+    function assert_greater_than(actual, expected, description)
+    {
+        /*
+         * Test if a primitive number is greater than another
+         */
+        assert(typeof actual === "number",
+               "assert_greater_than", description,
+               "expected a number but got a ${type_actual}",
+               {type_actual:typeof actual});
+
+        assert(actual > expected,
+               "assert_greater_than", description,
+               "expected a number greater than ${expected} but got ${actual}",
+               {expected:expected, actual:actual});
+    };
+    expose(assert_greater_than, "assert_greater_than");
+
+    function assert_less_than_equal(actual, expected, description)
+    {
+        /*
+         * Test if a primitive number is less than or equal to another
+         */
+        assert(typeof actual === "number",
+               "assert_less_than_equal", description,
+               "expected a number but got a ${type_actual}",
+               {type_actual:typeof actual});
+
+        assert(actual <= expected,
+               "assert_less_than", description,
+               "expected a number less than or equal to ${expected} but got ${actual}",
+               {expected:expected, actual:actual});
+    };
+    expose(assert_less_than_equal, "assert_less_than_equal");
+
+    function assert_greater_than_equal(actual, expected, description)
+    {
+        /*
+         * Test if a primitive number is greater than or equal to another
+         */
+        assert(typeof actual === "number",
+               "assert_greater_than_equal", description,
+               "expected a number but got a ${type_actual}",
+               {type_actual:typeof actual});
+
+        assert(actual >= expected,
+               "assert_greater_than_equal", description,
+               "expected a number greater than or equal to ${expected} but got ${actual}",
+               {expected:expected, actual:actual});
+    };
+    expose(assert_greater_than_equal, "assert_greater_than_equal");
+
+    function assert_regexp_match(actual, expected, description) {
+        /*
+         * Test if a string (actual) matches a regexp (expected)
+         */
+        assert(expected.test(actual),
+               "assert_regexp_match", description,
+               "expected ${expected} but got ${actual}",
+               {expected:expected, actual:actual});
+    }
+    expose(assert_regexp_match, "assert_regexp_match");
+
+    function assert_class_string(object, class_string, description) {
+        assert_equals({}.toString.call(object), "[object " + class_string + "]",
+                      description);
+    }
+    expose(assert_class_string, "assert_class_string");
+
+
+    function _assert_own_property(name) {
+        return function(object, property_name, description)
+        {
+            assert(object.hasOwnProperty(property_name),
+                   name, description,
+                   "expected property ${p} missing", {p:property_name});
+        };
+    }
+    expose(_assert_own_property("assert_exists"), "assert_exists");
+    expose(_assert_own_property("assert_own_property"), "assert_own_property");
+
+    function assert_not_exists(object, property_name, description)
+    {
+        assert(!object.hasOwnProperty(property_name),
+               "assert_not_exists", description,
+               "unexpected property ${p} found", {p:property_name});
+    };
+    expose(assert_not_exists, "assert_not_exists");
+
+    function _assert_inherits(name) {
+        return function (object, property_name, description)
+        {
+            assert(typeof object === "object",
+                   name, description,
+                   "provided value is not an object");
+
+            assert("hasOwnProperty" in object,
+                   name, description,
+                   "provided value is an object but has no hasOwnProperty method");
+
+            assert(!object.hasOwnProperty(property_name),
+                   name, description,
+                   "property ${p} found on object expected in prototype chain",
+                   {p:property_name});
+
+            assert(property_name in object,
+                   name, description,
+                   "property ${p} not found in prototype chain",
+                   {p:property_name});
+        };
+    }
+    expose(_assert_inherits("assert_inherits"), "assert_inherits");
+    expose(_assert_inherits("assert_idl_attribute"), "assert_idl_attribute");
+
+    function assert_readonly(object, property_name, description)
+    {
+         var initial_value = object[property_name];
+         try {
+             //Note that this can have side effects in the case where
+             //the property has PutForwards
+             object[property_name] = initial_value + "a"; //XXX use some other value here?
+             assert(same_value(object[property_name], initial_value),
+                    "assert_readonly", description,
+                    "changing property ${p} succeeded",
+                    {p:property_name});
+         }
+         finally
+         {
+             object[property_name] = initial_value;
+         }
+    };
+    expose(assert_readonly, "assert_readonly");
+
+    function assert_throws(code, func, description)
+    {
+        try
+        {
+            func.call(this);
+            assert(false, "assert_throws", description,
+                   "${func} did not throw", {func:func});
+        }
+        catch(e)
+        {
+            if (e instanceof AssertionError) {
+                throw(e);
+            }
+            if (code === null)
+            {
+                return;
+            }
+            if (typeof code === "object")
+            {
+                assert(typeof e == "object" && "name" in e && e.name == code.name,
+                       "assert_throws", description,
+                       "${func} threw ${actual} (${actual_name}) expected ${expected} (${expected_name})",
+                                    {func:func, actual:e, actual_name:e.name,
+                                     expected:code,
+                                     expected_name:code.name});
+                return;
+            }
+
+            var code_name_map = {
+                INDEX_SIZE_ERR: 'IndexSizeError',
+                HIERARCHY_REQUEST_ERR: 'HierarchyRequestError',
+                WRONG_DOCUMENT_ERR: 'WrongDocumentError',
+                INVALID_CHARACTER_ERR: 'InvalidCharacterError',
+                NO_MODIFICATION_ALLOWED_ERR: 'NoModificationAllowedError',
+                NOT_FOUND_ERR: 'NotFoundError',
+                NOT_SUPPORTED_ERR: 'NotSupportedError',
+                INVALID_STATE_ERR: 'InvalidStateError',
+                SYNTAX_ERR: 'SyntaxError',
+                INVALID_MODIFICATION_ERR: 'InvalidModificationError',
+                NAMESPACE_ERR: 'NamespaceError',
+                INVALID_ACCESS_ERR: 'InvalidAccessError',
+                TYPE_MISMATCH_ERR: 'TypeMismatchError',
+                SECURITY_ERR: 'SecurityError',
+                NETWORK_ERR: 'NetworkError',
+                ABORT_ERR: 'AbortError',
+                URL_MISMATCH_ERR: 'URLMismatchError',
+                QUOTA_EXCEEDED_ERR: 'QuotaExceededError',
+                TIMEOUT_ERR: 'TimeoutError',
+                INVALID_NODE_TYPE_ERR: 'InvalidNodeTypeError',
+                DATA_CLONE_ERR: 'DataCloneError'
+            };
+
+            var name = code in code_name_map ? code_name_map[code] : code;
+
+            var name_code_map = {
+                IndexSizeError: 1,
+                HierarchyRequestError: 3,
+                WrongDocumentError: 4,
+                InvalidCharacterError: 5,
+                NoModificationAllowedError: 7,
+                NotFoundError: 8,
+                NotSupportedError: 9,
+                InvalidStateError: 11,
+                SyntaxError: 12,
+                InvalidModificationError: 13,
+                NamespaceError: 14,
+                InvalidAccessError: 15,
+                TypeMismatchError: 17,
+                SecurityError: 18,
+                NetworkError: 19,
+                AbortError: 20,
+                URLMismatchError: 21,
+                QuotaExceededError: 22,
+                TimeoutError: 23,
+                InvalidNodeTypeError: 24,
+                DataCloneError: 25,
+
+                UnknownError: 0,
+                ConstraintError: 0,
+                DataError: 0,
+                TransactionInactiveError: 0,
+                ReadOnlyError: 0,
+                VersionError: 0
+            };
+
+            if (!(name in name_code_map))
+            {
+                throw new AssertionError('Test bug: unrecognized DOMException code "' + code + '" passed to assert_throws()');
+            }
+
+            var required_props = { code: name_code_map[name] };
+
+            if (required_props.code === 0
+            || ("name" in e && e.name !== e.name.toUpperCase() && e.name !== "DOMException"))
+            {
+                // New style exception: also test the name property.
+                required_props.name = name;
+            }
+
+            //We'd like to test that e instanceof the appropriate interface,
+            //but we can't, because we don't know what window it was created
+            //in.  It might be an instanceof the appropriate interface on some
+            //unknown other window.  TODO: Work around this somehow?
+
+            assert(typeof e == "object",
+                   "assert_throws", description,
+                   "${func} threw ${e} with type ${type}, not an object",
+                   {func:func, e:e, type:typeof e});
+
+            for (var prop in required_props)
+            {
+                assert(typeof e == "object" && prop in e && e[prop] == required_props[prop],
+                       "assert_throws", description,
+                       "${func} threw ${e} that is not a DOMException " + code + ": property ${prop} is equal to ${actual}, expected ${expected}",
+                       {func:func, e:e, prop:prop, actual:e[prop], expected:required_props[prop]});
+            }
+        }
+    }
+    expose(assert_throws, "assert_throws");
+
+    function assert_unreached(description) {
+         assert(false, "assert_unreached", description,
+                "Reached unreachable code");
+    }
+    expose(assert_unreached, "assert_unreached");
+
+    function assert_any(assert_func, actual, expected_array) 
+    {
+        var args = [].slice.call(arguments, 3)
+        var errors = []
+        var passed = false;
+        forEach(expected_array, 
+                function(expected)
+                {
+                    try {
+                        assert_func.apply(this, [actual, expected].concat(args))
+                        passed = true;
+                    } catch(e) {
+                        errors.push(e.message);
+                    }
+                });
+        if (!passed) {
+            throw new AssertionError(errors.join("\n\n"));
+        }
+    }
+    expose(assert_any, "assert_any");
+
+    function Test(name, properties)
+    {
+        this.name = name;
+        this.status = this.NOTRUN;
+        this.timeout_id = null;
+        this.is_done = false;
+
+        this.properties = properties;
+        this.timeout_length = properties.timeout ? properties.timeout : settings.test_timeout;
+
+        this.message = null;
+
+        var this_obj = this;
+        this.steps = [];
+
+        tests.push(this);
+    }
+
+    Test.statuses = {
+        PASS:0,
+        FAIL:1,
+        TIMEOUT:2,
+        NOTRUN:3
+    };
+
+    Test.prototype = merge({}, Test.statuses);
+
+    Test.prototype.structured_clone = function()
+    {
+        if(!this._structured_clone)
+        {
+            var msg = this.message;
+            msg = msg ? String(msg) : msg;
+            this._structured_clone = merge({
+                name:String(this.name),
+                status:this.status,
+                message:msg
+            }, Test.statuses);
+        }
+        return this._structured_clone;
+    };
+
+    Test.prototype.step = function(func, this_obj)
+    {
+        //In case the test has already failed
+        if (this.status !== this.NOTRUN)
+        {
+          return;
+        }
+
+        tests.started = true;
+
+        if (this.timeout_id === null) {
+            this.set_timeout();
+        }
+
+        this.steps.push(func);
+
+        if (arguments.length === 1)
+        {
+            this_obj = this;
+        }
+
+        try
+        {
+            return func.apply(this_obj, Array.prototype.slice.call(arguments, 2));
+        }
+        catch(e)
+        {
+            //This can happen if something called synchronously invoked another
+            //step
+            if (this.status !== this.NOTRUN)
+            {
+                return;
+            }
+            this.status = this.FAIL;
+            this.message = (typeof e === "object" && e !== null) ? e.message : e;
+            if (typeof e.stack != "undefined" && typeof e.message == "string") {
+                //Try to make it more informative for some exceptions, at least
+                //in Gecko and WebKit.  This results in a stack dump instead of
+                //just errors like "Cannot read property 'parentNode' of null"
+                //or "root is null".  Makes it a lot longer, of course.
+                this.message += "(stack: " + e.stack + ")";
+            }
+            this.done();
+            if (debug && e.constructor !== AssertionError) {
+                throw e;
+            }
+        }
+    };
+
+    Test.prototype.step_func = function(func, this_obj)
+    {
+        var test_this = this;
+
+        if (arguments.length === 1)
+        {
+            this_obj = test_this;
+        }
+
+        return function()
+        {
+            test_this.step.apply(test_this, [func, this_obj].concat(
+                Array.prototype.slice.call(arguments)));
+        };
+    };
+
+    Test.prototype.step_func_done = function(func, this_obj)
+    {
+        var test_this = this;
+
+        if (arguments.length === 1)
+        {
+            this_obj = test_this;
+        }
+
+        return function()
+        {
+            test_this.step.apply(test_this, [func, this_obj].concat(
+                Array.prototype.slice.call(arguments)));
+            test_this.done();
+        };
+    };
+
+    Test.prototype.set_timeout = function()
+    {
+        var this_obj = this;
+        this.timeout_id = setTimeout(function()
+                                     {
+                                         this_obj.timeout();
+                                     }, this.timeout_length);
+    };
+
+    Test.prototype.timeout = function()
+    {
+        this.status = this.TIMEOUT;
+        this.timeout_id = null;
+        this.message = "Test timed out";
+        this.done();
+    };
+
+    Test.prototype.done = function()
+    {
+        if (this.is_done) {
+            return;
+        }
+        clearTimeout(this.timeout_id);
+        if (this.status === this.NOTRUN)
+        {
+            this.status = this.PASS;
+        }
+        this.is_done = true;
+        tests.result(this);
+    };
+
+
+    /*
+     * Harness
+     */
+
+    function TestsStatus()
+    {
+        this.status = null;
+        this.message = null;
+    }
+
+    TestsStatus.statuses = {
+        OK:0,
+        ERROR:1,
+        TIMEOUT:2
+    };
+
+    TestsStatus.prototype = merge({}, TestsStatus.statuses);
+
+    TestsStatus.prototype.structured_clone = function()
+    {
+        if(!this._structured_clone)
+        {
+            var msg = this.message;
+            msg = msg ? String(msg) : msg;
+            this._structured_clone = merge({
+                status:this.status,
+                message:msg
+            }, TestsStatus.statuses);
+        }
+        return this._structured_clone;
+    };
+
+    function Tests()
+    {
+        this.tests = [];
+        this.num_pending = 0;
+
+        this.phases = {
+            INITIAL:0,
+            SETUP:1,
+            HAVE_TESTS:2,
+            HAVE_RESULTS:3,
+            COMPLETE:4
+        };
+        this.phase = this.phases.INITIAL;
+
+        this.properties = {};
+
+        //All tests can't be done until the load event fires
+        this.all_loaded = false;
+        this.wait_for_finish = false;
+        this.processing_callbacks = false;
+
+        this.timeout_length = settings.timeout;
+        this.timeout_id = null;
+
+        this.start_callbacks = [];
+        this.test_done_callbacks = [];
+        this.all_done_callbacks = [];
+
+        this.status = new TestsStatus();
+
+        var this_obj = this;
+
+        on_event(window, "load",
+                 function()
+                 {
+                     this_obj.all_loaded = true;
+                     if (this_obj.all_done())
+                     {
+                         this_obj.complete();
+                     }
+                 });
+
+        this.set_timeout();
+    }
+
+    Tests.prototype.setup = function(func, properties)
+    {
+        if (this.phase >= this.phases.HAVE_RESULTS)
+        {
+            return;
+        }
+        if (this.phase < this.phases.SETUP)
+        {
+            this.phase = this.phases.SETUP;
+        }
+
+        for (var p in properties)
+        {
+            if (properties.hasOwnProperty(p))
+            {
+                this.properties[p] = properties[p];
+            }
+        }
+
+        if (properties.timeout)
+        {
+            this.timeout_length = properties.timeout;
+        }
+        if (properties.explicit_done)
+        {
+            this.wait_for_finish = true;
+        }
+        if (properties.explicit_timeout) {
+            this.timeout_length = null;
+        }
+
+        if (func)
+        {
+            try
+            {
+                func();
+            } catch(e)
+            {
+                this.status.status = this.status.ERROR;
+                this.status.message = e;
+            };
+        }
+        this.set_timeout();
+    };
+
+    Tests.prototype.set_timeout = function()
+    {
+        var this_obj = this;
+        clearTimeout(this.timeout_id);
+        if (this.timeout_length !== null)
+        {
+            this.timeout_id = setTimeout(function() {
+                                             this_obj.timeout();
+                                         }, this.timeout_length);
+        }
+    };
+
+    Tests.prototype.timeout = function() {
+        this.status.status = this.status.TIMEOUT;
+        this.complete();
+    };
+
+    Tests.prototype.end_wait = function()
+    {
+        this.wait_for_finish = false;
+        if (this.all_done()) {
+            this.complete();
+        }
+    };
+
+    Tests.prototype.push = function(test)
+    {
+        if (this.phase < this.phases.HAVE_TESTS) {
+            this.start();
+        }
+        this.num_pending++;
+        this.tests.push(test);
+    };
+
+    Tests.prototype.all_done = function() {
+        return (this.all_loaded && this.num_pending === 0 &&
+                !this.wait_for_finish && !this.processing_callbacks);
+    };
+
+    Tests.prototype.start = function() {
+        this.phase = this.phases.HAVE_TESTS;
+        this.notify_start();
+    };
+
+    Tests.prototype.notify_start = function() {
+        var this_obj = this;
+        forEach (this.start_callbacks,
+                 function(callback)
+                 {
+                     callback(this_obj.properties);
+                 });
+        forEach_windows(
+                function(w, is_same_origin)
+                {
+                    if(is_same_origin && w.start_callback)
+                    {
+                        try
+                        {
+                            w.start_callback(this_obj.properties);
+                        }
+                        catch(e)
+                        {
+                            if (debug)
+                            {
+                                throw(e);
+                            }
+                        }
+                    }
+                    if (supports_post_message(w) && w !== self)
+                    {
+                        w.postMessage({
+                            type: "start",
+                            properties: this_obj.properties
+                        }, "*");
+                    }
+                });
+    };
+
+    Tests.prototype.result = function(test)
+    {
+        if (this.phase > this.phases.HAVE_RESULTS)
+        {
+            return;
+        }
+        this.phase = this.phases.HAVE_RESULTS;
+        this.num_pending--;
+        this.notify_result(test);
+    };
+
+    Tests.prototype.notify_result = function(test) {
+        var this_obj = this;
+        this.processing_callbacks = true;
+        forEach(this.test_done_callbacks,
+                function(callback)
+                {
+                    callback(test, this_obj);
+                });
+
+        forEach_windows(
+                function(w, is_same_origin)
+                {
+                    if(is_same_origin && w.result_callback)
+                    {
+                        try
+                        {
+                            w.result_callback(test);
+                        }
+                        catch(e)
+                        {
+                            if(debug) {
+                                throw e;
+                            }
+                        }
+                    }
+                    if (supports_post_message(w) && w !== self)
+                    {
+                        w.postMessage({
+                            type: "result",
+                            test: test.structured_clone()
+                        }, "*");
+                    }
+                });
+        this.processing_callbacks = false;
+        if (this_obj.all_done())
+        {
+            this_obj.complete();
+        }
+    };
+
+    Tests.prototype.complete = function() {
+        if (this.phase === this.phases.COMPLETE) {
+            return;
+        }
+        this.phase = this.phases.COMPLETE;
+        var this_obj = this;
+        this.tests.forEach(
+            function(x)
+            {
+                if(x.status === x.NOTRUN)
+                {
+                    this_obj.notify_result(x);
+                }
+            }
+        );
+        this.notify_complete();
+    };
+
+    Tests.prototype.notify_complete = function()
+    {
+        clearTimeout(this.timeout_id);
+        var this_obj = this;
+        var tests = map(this_obj.tests,
+                        function(test)
+                        {
+                            return test.structured_clone();
+                        });
+        if (this.status.status === null)
+        {
+            this.status.status = this.status.OK;
+        }
+
+        forEach (this.all_done_callbacks,
+                 function(callback)
+                 {
+                     callback(this_obj.tests, this_obj.status);
+                 });
+
+        forEach_windows(
+                function(w, is_same_origin)
+                {
+                    if(is_same_origin && w.completion_callback)
+                    {
+                        try
+                        {
+                            w.completion_callback(this_obj.tests, this_obj.status);
+                        }
+                        catch(e)
+                        {
+                            if (debug)
+                            {
+                                throw e;
+                            }
+                        }
+                    }
+                    if (supports_post_message(w) && w !== self)
+                    {
+                        w.postMessage({
+                            type: "complete",
+                            tests: tests,
+                            status: this_obj.status.structured_clone()
+                        }, "*");
+                    }
+                });
+    };
+
+    var tests = new Tests();
+
+    function timeout() {
+        if (tests.timeout_length === null)
+        {
+            tests.timeout();
+        }
+    }
+    expose(timeout, 'timeout');
+
+    function add_start_callback(callback) {
+        tests.start_callbacks.push(callback);
+    }
+
+    function add_result_callback(callback)
+    {
+        tests.test_done_callbacks.push(callback);
+    }
+
+    function add_completion_callback(callback)
+    {
+       tests.all_done_callbacks.push(callback);
+    }
+
+    expose(add_start_callback, 'add_start_callback');
+    expose(add_result_callback, 'add_result_callback');
+    expose(add_completion_callback, 'add_completion_callback');
+
+    /*
+     * Output listener
+    */
+
+    function Output() {
+      this.output_document = document;
+      this.output_node = null;
+      this.done_count = 0;
+      this.enabled = settings.output;
+      this.phase = this.INITIAL;
+    }
+
+    Output.prototype.INITIAL = 0;
+    Output.prototype.STARTED = 1;
+    Output.prototype.HAVE_RESULTS = 2;
+    Output.prototype.COMPLETE = 3;
+
+    Output.prototype.setup = function(properties) {
+        if (this.phase > this.INITIAL) {
+            return;
+        }
+
+        //If output is disabled in testharnessreport.js the test shouldn't be
+        //able to override that
+        this.enabled = this.enabled && (properties.hasOwnProperty("output") ?
+                                        properties.output : settings.output);
+    };
+
+    Output.prototype.init = function(properties)
+    {
+        if (this.phase >= this.STARTED) {
+            return;
+        }
+        if (properties.output_document) {
+            this.output_document = properties.output_document;
+        } else {
+            this.output_document = document;
+        }
+        this.phase = this.STARTED;
+    };
+
+    Output.prototype.resolve_log = function()
+    {
+        var output_document;
+        if (typeof this.output_document === "function")
+        {
+            output_document = this.output_document.apply(undefined);
+        } else
+        {
+            output_document = this.output_document;
+        }
+        if (!output_document)
+        {
+            return;
+        }
+        var node = output_document.getElementById("log");
+        if (node)
+        {
+            this.output_document = output_document;
+            this.output_node = node;
+        }
+    };
+
+    Output.prototype.show_status = function(test)
+    {
+        if (this.phase < this.STARTED)
+        {
+            this.init();
+        }
+        if (!this.enabled)
+        {
+            return;
+        }
+        if (this.phase < this.HAVE_RESULTS)
+        {
+            this.resolve_log();
+            this.phase = this.HAVE_RESULTS;
+        }
+        this.done_count++;
+        if (this.output_node)
+        {
+            if (this.done_count < 100
+            || (this.done_count < 1000 && this.done_count % 100 == 0)
+            || this.done_count % 1000 == 0) {
+                this.output_node.textContent = "Running, "
+                    + this.done_count + " complete, "
+                    + tests.num_pending + " remain";
+            }
+        }
+    };
+
+    Output.prototype.show_results = function (tests, harness_status)
+    {
+        if (this.phase >= this.COMPLETE) {
+            return;
+        }
+        if (!this.enabled)
+        {
+            return;
+        }
+        if (!this.output_node) {
+            this.resolve_log();
+        }
+        this.phase = this.COMPLETE;
+
+        var log = this.output_node;
+        if (!log)
+        {
+            return;
+        }
+        var output_document = this.output_document;
+
+        while (log.lastChild)
+        {
+            log.removeChild(log.lastChild);
+        }
+
+        if (script_prefix != null) {
+            var stylesheet = output_document.createElementNS(xhtml_ns, "link");
+            stylesheet.setAttribute("rel", "stylesheet");
+            stylesheet.setAttribute("href", script_prefix + "testharness.css");
+            var heads = output_document.getElementsByTagName("head");
+            if (heads.length) {
+                heads[0].appendChild(stylesheet);
+            }
+        }
+
+        var status_text = {};
+        status_text[Test.prototype.PASS] = "Pass";
+        status_text[Test.prototype.FAIL] = "Fail";
+        status_text[Test.prototype.TIMEOUT] = "Timeout";
+        status_text[Test.prototype.NOTRUN] = "Not Run";
+
+        var status_number = {};
+        forEach(tests, function(test) {
+                    var status = status_text[test.status];
+                    if (status_number.hasOwnProperty(status))
+                    {
+                        status_number[status] += 1;
+                    } else {
+                        status_number[status] = 1;
+                    }
+                });
+
+        function status_class(status)
+        {
+            return status.replace(/\s/g, '').toLowerCase();
+        }
+
+        var summary_template = ["section", {"id":"summary"},
+                                ["h2", {}, "Summary"],
+                                ["p", {}, "Found ${num_tests} tests"],
+                                function(vars) {
+                                    var rv = [["div", {}]];
+                                    var i=0;
+                                    while (status_text.hasOwnProperty(i)) {
+                                        if (status_number.hasOwnProperty(status_text[i])) {
+                                            var status = status_text[i];
+                                            rv[0].push(["div", {"class":status_class(status)},
+                                                        ["label", {},
+                                                         ["input", {type:"checkbox", checked:"checked"}],
+                                                         status_number[status] + " " + status]]);
+                                        }
+                                        i++;
+                                    }
+                                    return rv;
+                                }];
+
+        log.appendChild(render(summary_template, {num_tests:tests.length}, output_document));
+
+        forEach(output_document.querySelectorAll("section#summary label"),
+                function(element)
+                {
+                    on_event(element, "click",
+                             function(e)
+                             {
+                                 if (output_document.getElementById("results") === null)
+                                 {
+                                     e.preventDefault();
+                                     return;
+                                 }
+                                 var result_class = element.parentNode.getAttribute("class");
+                                 var style_element = output_document.querySelector("style#hide-" + result_class);
+                                 var input_element = element.querySelector("input");
+                                 if (!style_element && !input_element.checked) {
+                                     style_element = output_document.createElementNS(xhtml_ns, "style");
+                                     style_element.id = "hide-" + result_class;
+                                     style_element.textContent = "table#results > tbody > tr."+result_class+"{display:none}";
+                                     output_document.body.appendChild(style_element);
+                                 } else if (style_element && input_element.checked) {
+                                     style_element.parentNode.removeChild(style_element);
+                                 }
+                             });
+                });
+
+        // This use of innerHTML plus manual escaping is not recommended in
+        // general, but is necessary here for performance.  Using textContent
+        // on each individual <td> adds tens of seconds of execution time for
+        // large test suites (tens of thousands of tests).
+        function escape_html(s)
+        {
+            return s.replace(/\&/g, "&amp;")
+                .replace(/</g, "&lt;")
+                .replace(/"/g, "&quot;")
+                .replace(/'/g, "&#39;");
+        }
+
+        function has_assertions()
+        {
+            for (var i = 0; i < tests.length; i++) {
+                if (tests[i].properties.hasOwnProperty("assert")) {
+                    return true;
+                }
+            }
+            return false;
+        }
+        
+        function get_assertion(test)
+        {
+            if (test.properties.hasOwnProperty("assert")) {
+                if (Array.isArray(test.properties.assert)) {
+                    return test.properties.assert.join(' ');
+                }
+                return test.properties.assert;
+            }
+            return '';
+        }
+        
+        log.appendChild(document.createElementNS(xhtml_ns, "section"));
+        var assertions = has_assertions();
+        var html = "<h2>Details</h2><table id='results' " + (assertions ? "class='assertions'" : "" ) + ">"
+            + "<thead><tr><th>Result</th><th>Test Name</th>"
+            + (assertions ? "<th>Assertion</th>" : "")
+            + "<th>Message</th></tr></thead>"
+            + "<tbody>";
+        for (var i = 0; i < tests.length; i++) {
+            html += '<tr class="'
+                + escape_html(status_class(status_text[tests[i].status]))
+                + '"><td>'
+                + escape_html(status_text[tests[i].status])
+                + "</td><td>"
+                + escape_html(tests[i].name)
+                + "</td><td>"
+                + (assertions ? escape_html(get_assertion(tests[i])) + "</td><td>" : "")
+                + escape_html(tests[i].message ? tests[i].message : " ")
+                + "</td></tr>";
+        }
+        html += "</tbody></table>";
+        try {
+            log.lastChild.innerHTML = html;
+        } catch (e) {
+            log.appendChild(document.createElementNS(xhtml_ns, "p"))
+               .textContent = "Setting innerHTML for the log threw an exception.";
+            log.appendChild(document.createElementNS(xhtml_ns, "pre"))
+               .textContent = html;
+        }
+    };
+
+    var output = new Output();
+    add_start_callback(function (properties) {output.init(properties);});
+    add_result_callback(function (test) {output.show_status(tests);});
+    add_completion_callback(function (tests, harness_status) {output.show_results(tests, harness_status);});
+
+    /*
+     * Template code
+     *
+     * A template is just a javascript structure. An element is represented as:
+     *
+     * [tag_name, {attr_name:attr_value}, child1, child2]
+     *
+     * the children can either be strings (which act like text nodes), other templates or
+     * functions (see below)
+     *
+     * A text node is represented as
+     *
+     * ["{text}", value]
+     *
+     * String values have a simple substitution syntax; ${foo} represents a variable foo.
+     *
+     * It is possible to embed logic in templates by using a function in a place where a
+     * node would usually go. The function must either return part of a template or null.
+     *
+     * In cases where a set of nodes are required as output rather than a single node
+     * with children it is possible to just use a list
+     * [node1, node2, node3]
+     *
+     * Usage:
+     *
+     * render(template, substitutions) - take a template and an object mapping
+     * variable names to parameters and return either a DOM node or a list of DOM nodes
+     *
+     * substitute(template, substitutions) - take a template and variable mapping object,
+     * make the variable substitutions and return the substituted template
+     *
+     */
+
+    function is_single_node(template)
+    {
+        return typeof template[0] === "string";
+    }
+
+    function substitute(template, substitutions)
+    {
+        if (typeof template === "function") {
+            var replacement = template(substitutions);
+            if (replacement)
+            {
+                var rv = substitute(replacement, substitutions);
+                return rv;
+            }
+            else
+            {
+                return null;
+            }
+        }
+        else if (is_single_node(template))
+        {
+            return substitute_single(template, substitutions);
+        }
+        else
+        {
+            return filter(map(template, function(x) {
+                                  return substitute(x, substitutions);
+                              }), function(x) {return x !== null;});
+        }
+    }
+
+    function substitute_single(template, substitutions)
+    {
+        var substitution_re = /\${([^ }]*)}/g;
+
+        function do_substitution(input) {
+            var components = input.split(substitution_re);
+            var rv = [];
+            for (var i=0; i<components.length; i+=2)
+            {
+                rv.push(components[i]);
+                if (components[i+1])
+                {
+                    rv.push(String(substitutions[components[i+1]]));
+                }
+            }
+            return rv;
+        }
+
+        var rv = [];
+        rv.push(do_substitution(String(template[0])).join(""));
+
+        if (template[0] === "{text}") {
+            substitute_children(template.slice(1), rv);
+        } else {
+            substitute_attrs(template[1], rv);
+            substitute_children(template.slice(2), rv);
+        }
+
+        function substitute_attrs(attrs, rv)
+        {
+            rv[1] = {};
+            for (var name in template[1])
+            {
+                if (attrs.hasOwnProperty(name))
+                {
+                    var new_name = do_substitution(name).join("");
+                    var new_value = do_substitution(attrs[name]).join("");
+                    rv[1][new_name] = new_value;
+                };
+            }
+        }
+
+        function substitute_children(children, rv)
+        {
+            for (var i=0; i<children.length; i++)
+            {
+                if (children[i] instanceof Object) {
+                    var replacement = substitute(children[i], substitutions);
+                    if (replacement !== null)
+                    {
+                        if (is_single_node(replacement))
+                        {
+                            rv.push(replacement);
+                        }
+                        else
+                        {
+                            extend(rv, replacement);
+                        }
+                    }
+                }
+                else
+                {
+                    extend(rv, do_substitution(String(children[i])));
+                }
+            }
+            return rv;
+        }
+
+        return rv;
+    }
+
+ function make_dom_single(template, doc)
+ {
+     var output_document = doc || document;
+     if (template[0] === "{text}")
+     {
+         var element = output_document.createTextNode("");
+         for (var i=1; i<template.length; i++)
+         {
+             element.data += template[i];
+         }
+     }
+     else
+     {
+         var element = output_document.createElementNS(xhtml_ns, template[0]);
+         for (var name in template[1]) {
+             if (template[1].hasOwnProperty(name))
+             {
+                 element.setAttribute(name, template[1][name]);
+             }
+         }
+         for (var i=2; i<template.length; i++)
+         {
+             if (template[i] instanceof Object)
+             {
+                 var sub_element = make_dom(template[i]);
+                 element.appendChild(sub_element);
+             }
+             else
+             {
+                 var text_node = output_document.createTextNode(template[i]);
+                 element.appendChild(text_node);
+             }
+         }
+     }
+
+     return element;
+ }
+
+
+
+ function make_dom(template, substitutions, output_document)
+    {
+        if (is_single_node(template))
+        {
+            return make_dom_single(template, output_document);
+        }
+        else
+        {
+            return map(template, function(x) {
+                           return make_dom_single(x, output_document);
+                       });
+        }
+    }
+
+ function render(template, substitutions, output_document)
+    {
+        return make_dom(substitute(template, substitutions), output_document);
+    }
+
+    /*
+     * Utility funcions
+     */
+    function assert(expected_true, function_name, description, error, substitutions)
+    {
+        if (expected_true !== true)
+        {
+            throw new AssertionError(make_message(function_name, description,
+                                                  error, substitutions));
+        }
+    }
+
+    function AssertionError(message)
+    {
+        this.message = message;
+    }
+
+    function make_message(function_name, description, error, substitutions)
+    {
+        for (var p in substitutions) {
+            if (substitutions.hasOwnProperty(p)) {
+                substitutions[p] = format_value(substitutions[p]);
+            }
+        }
+        var node_form = substitute(["{text}", "${function_name}: ${description}" + error],
+                                   merge({function_name:function_name,
+                                          description:(description?description + " ":"")},
+                                          substitutions));
+        return node_form.slice(1).join("");
+    }
+
+    function filter(array, callable, thisObj) {
+        var rv = [];
+        for (var i=0; i<array.length; i++)
+        {
+            if (array.hasOwnProperty(i))
+            {
+                var pass = callable.call(thisObj, array[i], i, array);
+                if (pass) {
+                    rv.push(array[i]);
+                }
+            }
+        }
+        return rv;
+    }
+
+    function map(array, callable, thisObj)
+    {
+        var rv = [];
+        rv.length = array.length;
+        for (var i=0; i<array.length; i++)
+        {
+            if (array.hasOwnProperty(i))
+            {
+                rv[i] = callable.call(thisObj, array[i], i, array);
+            }
+        }
+        return rv;
+    }
+
+    function extend(array, items)
+    {
+        Array.prototype.push.apply(array, items);
+    }
+
+    function forEach (array, callback, thisObj)
+    {
+        for (var i=0; i<array.length; i++)
+        {
+            if (array.hasOwnProperty(i))
+            {
+                callback.call(thisObj, array[i], i, array);
+            }
+        }
+    }
+
+    function merge(a,b)
+    {
+        var rv = {};
+        var p;
+        for (p in a)
+        {
+            rv[p] = a[p];
+        }
+        for (p in b) {
+            rv[p] = b[p];
+        }
+        return rv;
+    }
+
+    function expose(object, name)
+    {
+        var components = name.split(".");
+        var target = window;
+        for (var i=0; i<components.length - 1; i++)
+        {
+            if (!(components[i] in target))
+            {
+                target[components[i]] = {};
+            }
+            target = target[components[i]];
+        }
+        target[components[components.length - 1]] = object;
+    }
+
+    function forEach_windows(callback) {
+        // Iterate of the the windows [self ... top, opener]. The callback is passed
+        // two objects, the first one is the windows object itself, the second one
+        // is a boolean indicating whether or not its on the same origin as the
+        // current window.
+        var cache = forEach_windows.result_cache;
+        if (!cache) {
+            cache = [[self, true]];
+            var w = self;
+            var i = 0;
+            var so;
+            var origins = location.ancestorOrigins;
+            while (w != w.parent)
+            {
+                w = w.parent;
+                // In WebKit, calls to parent windows' properties that aren't on the same
+                // origin cause an error message to be displayed in the error console but
+                // don't throw an exception. This is a deviation from the current HTML5
+                // spec. See: https://bugs.webkit.org/show_bug.cgi?id=43504
+                // The problem with WebKit's behavior is that it pollutes the error console
+                // with error messages that can't be caught.
+                //
+                // This issue can be mitigated by relying on the (for now) proprietary
+                // `location.ancestorOrigins` property which returns an ordered list of
+                // the origins of enclosing windows. See:
+                // http://trac.webkit.org/changeset/113945.
+                if(origins) {
+                    so = (location.origin == origins[i]);
+                }
+                else
+                {
+                    so = is_same_origin(w);
+                }
+                cache.push([w, so]);
+                i++;
+            }
+            w = window.opener;
+            if(w)
+            {
+                // window.opener isn't included in the `location.ancestorOrigins` prop.
+                // We'll just have to deal with a simple check and an error msg on WebKit
+                // browsers in this case.
+                cache.push([w, is_same_origin(w)]);
+            }
+            forEach_windows.result_cache = cache;
+        }
+
+        forEach(cache,
+                function(a)
+                {
+                    callback.apply(null, a);
+                });
+    }
+
+    function is_same_origin(w) {
+        try {
+            'random_prop' in w;
+            return true;
+        } catch(e) {
+            return false;
+        }
+    }
+
+    function supports_post_message(w)
+    {
+        var supports;
+        var type;
+        // Given IE  implements postMessage across nested iframes but not across
+        // windows or tabs, you can't infer cross-origin communication from the presence
+        // of postMessage on the current window object only.
+        //
+        // Touching the postMessage prop on a window can throw if the window is
+        // not from the same origin AND post message is not supported in that
+        // browser. So just doing an existence test here won't do, you also need
+        // to wrap it in a try..cacth block.
+        try
+        {
+            type = typeof w.postMessage;
+            if (type === "function")
+            {
+                supports = true;
+            }
+            // IE8 supports postMessage, but implements it as a host object which
+            // returns "object" as its `typeof`.
+            else if (type === "object")
+            {
+                supports = true;
+            }
+            // This is the case where postMessage isn't supported AND accessing a
+            // window property across origins does NOT throw (e.g. old Safari browser).
+            else
+            {
+                supports = false;
+            }
+        }
+        catch(e) {
+            // This is the case where postMessage isn't supported AND accessing a
+            // window property across origins throws (e.g. old Firefox browser).
+            supports = false;
+        }
+        return supports;
+    }
+})();
+
+/*
+ *For blacklist
+ */
+
+function is_platform_supported(name)
+{
+    var ret = true;
+
+    if (not_support_list.indexOf(name) >= 0)
+        ret = false;
+
+    return ret;
+}
+
+// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/tct-manual-w3c-tests/resources/testharnessreport.js b/tct-manual-w3c-tests/resources/testharnessreport.js
new file mode 100644 (file)
index 0000000..fa73347
--- /dev/null
@@ -0,0 +1,380 @@
+/*
+ * This file is intended for vendors to implement
+ * code needed to integrate testharness.js tests with their own test systems.
+ *
+ * The default implementation extracts metadata from the tests and validates 
+ * it against the cached version that should be present in the test source 
+ * file. If the cache is not found or is out of sync, source code suitable for
+ * caching the metadata is optionally generated.
+ *
+ * The cached metadata is present for extraction by test processing tools that
+ * are unable to execute javascript.
+ *
+ * Metadata is attached to tests via the properties parameter in the test
+ * constructor. See testharness.js for details.
+ *
+ * Typically test system integration will attach callbacks when each test has
+ * run, using add_result_callback(callback(test)), or when the whole test file
+ * has completed, using 
+ * add_completion_callback(callback(tests, harness_status)).
+ *
+ * For more documentation about the callback functions and the
+ * parameters they are called with see testharness.js
+ */
+
+
+
+var metadata_generator = {
+
+    currentMetadata: {},
+    cachedMetadata: false,
+    metadataProperties: ['help', 'assert', 'author'],
+    
+    error: function(message) {
+        var messageElement = document.createElement('p');
+        messageElement.setAttribute('class', 'error');
+        this.appendText(messageElement, message);
+        
+        var summary = document.getElementById('summary');
+        if (summary) {
+            summary.parentNode.insertBefore(messageElement, summary);
+        }
+        else {
+            document.body.appendChild(messageElement);
+        }
+    },
+
+    /**
+     * Ensure property value has contact information
+     */
+    validateContact: function(test, propertyName) {
+        var result = true;
+        var value = test.properties[propertyName];
+        var values = Array.isArray(value) ? value : [value];
+        for (var index = 0; index < values.length; index++) {
+            value = values[index];
+            var re = /(\S+)(\s*)<(.*)>(.*)/;
+            if (! re.test(value)) {
+                re = /(\S+)(\s+)(http[s]?:\/\/)(.*)/
+                if (! re.test(value)) {
+                    this.error('Metadata property "' + propertyName + 
+                        '" for test: "' + test.name +
+                        '" must have name and contact information ' +
+                        '("name <email>" or "name http(s)://")');
+                    result = false;
+                }
+            }
+        }
+        return result;
+    },
+    
+    /**
+     * Extract metadata from test object
+     */
+    extractFromTest: function(test) {
+        var testMetadata = {};
+        // filter out metadata from other properties in test
+        for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
+             metaIndex++) {
+            var meta = this.metadataProperties[metaIndex];
+            if (test.properties.hasOwnProperty(meta)) {
+                if ('author' == meta) {
+                    this.validateContact(test, meta);
+                }
+                testMetadata[meta] = test.properties[meta];
+            }
+        }
+        return testMetadata;
+    },
+    
+    /**
+     * Compare cached metadata to extracted metadata
+     */
+    validateCache: function() {
+        for (var testName in this.currentMetadata) {
+            if (! this.cachedMetadata.hasOwnProperty(testName)) {
+                return false;
+            }
+            var testMetadata = this.currentMetadata[testName];
+            var cachedTestMetadata = this.cachedMetadata[testName];
+            delete this.cachedMetadata[testName];
+            
+            for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
+                 metaIndex++) {
+                var meta = this.metadataProperties[metaIndex];
+                if (cachedTestMetadata.hasOwnProperty(meta) && 
+                    testMetadata.hasOwnProperty(meta)) {
+                    if (Array.isArray(cachedTestMetadata[meta])) {
+                      if (! Array.isArray(testMetadata[meta])) {
+                          return false;
+                      }
+                      if (cachedTestMetadata[meta].length == 
+                          testMetadata[meta].length) {
+                          for (var index = 0; 
+                               index < cachedTestMetadata[meta].length; 
+                               index++) {
+                              if (cachedTestMetadata[meta][index] != 
+                                  testMetadata[meta][index]) {
+                                  return false;
+                              }
+                          }
+                      }
+                      else {
+                          return false;
+                      }
+                    }
+                    else {
+                      if (Array.isArray(testMetadata[meta])) {
+                        return false;
+                      }
+                      if (cachedTestMetadata[meta] != testMetadata[meta]) {
+                        return false;
+                      }
+                    }
+                }
+                else if (cachedTestMetadata.hasOwnProperty(meta) || 
+                         testMetadata.hasOwnProperty(meta)) {
+                    return false;
+                }
+            }
+        }
+        for (var testName in this.cachedMetadata) {
+            return false;
+        }
+        return true;
+    },
+  
+    appendText: function(elemement, text) {
+        elemement.appendChild(document.createTextNode(text));
+    },
+  
+    jsonifyArray: function(arrayValue, indent) {
+        var output = '[';
+
+        if (1 == arrayValue.length) {
+            output += JSON.stringify(arrayValue[0]);
+        }
+        else {
+            for (var index = 0; index < arrayValue.length; index++) {
+                if (0 < index) {
+                    output += ',\n  ' + indent;
+                }
+                output += JSON.stringify(arrayValue[index]);
+            }
+        }
+        output += ']';
+        return output;
+    },
+    
+    jsonifyObject: function(objectValue, indent) {
+        var output = '{';
+        
+        var count = 0;
+        for (var property in objectValue) {
+            ++count;
+            if (Array.isArray(objectValue[property]) || 
+                ('object' == typeof(value))) {
+                ++count;
+            }
+        }
+        if (1 == count) {
+            for (var property in objectValue) {
+                output += ' "' + property + '": '
+                          + JSON.stringify(objectValue[property])
+                          + ' ';
+            }
+        }
+        else {
+            var first = true;
+            for (var property in objectValue) {
+                if (! first) {
+                    output += ',';
+                }
+                first = false;
+                output += '\n  ' + indent + '"' + property + '": ';
+                var value = objectValue[property];
+                if (Array.isArray(value)) {
+                    output += this.jsonifyArray(value, indent + 
+                        '                '.substr(0, 5 + property.length));
+                }
+                else if ('object' == typeof(value)) {
+                    output += this.jsonifyObject(value, indent + '  ');
+                }
+                else {
+                    output += JSON.stringify(value);
+                }
+            }
+            if (1 < output.length) {
+                output += '\n' + indent;
+            }
+        }
+        output += '}';
+        return output;
+    },
+  
+    /**
+     * Generate javascript source code for captured metadata
+     * Metadata is in pretty-printed JSON format
+     */
+    generateSource: function() {
+        var source = 
+            '<script id="metadata_cache">/*\n' + 
+            this.jsonifyObject(this.currentMetadata, '') + '\n' + 
+            '*/</script>\n';
+        return source;
+    },
+    
+    /**
+     * Add element containing metadata source code
+     */
+    addSourceElement: function(event) {
+        var sourceWrapper = document.createElement('div');
+        sourceWrapper.setAttribute('id', 'metadata_source');
+
+        var instructions = document.createElement('p');
+        if (this.cachedMetadata) {
+            this.appendText(instructions, 
+                'Replace the existing <script id="metadata_cache"> element ' + 
+                'in the test\'s <head> with the following:');
+        }
+        else {
+            this.appendText(instructions, 
+                'Copy the following into the <head> element of the test ' +
+                'or the test\'s metadata sidecar file:');
+        }
+        sourceWrapper.appendChild(instructions);
+        
+        var sourceElement = document.createElement('pre');
+        this.appendText(sourceElement, this.generateSource());
+
+        sourceWrapper.appendChild(sourceElement);
+        
+        var messageElement = document.getElementById('metadata_issue');
+        messageElement.parentNode.insertBefore(sourceWrapper, 
+                                               messageElement.nextSibling);
+        messageElement.parentNode.removeChild(messageElement);
+
+        (event.preventDefault) ? event.preventDefault() : 
+                                 event.returnValue = false;
+    },
+    
+    /**
+     * Extract the metadata cache from the cache element if present
+     */
+    getCachedMetadata: function() {
+        var cacheElement = document.getElementById('metadata_cache');
+        
+        if (cacheElement) {
+            var cacheText = cacheElement.firstChild.nodeValue;
+            var openBrace = cacheText.indexOf('{');
+            var closeBrace = cacheText.lastIndexOf('}');
+            if ((-1 < openBrace) && (-1 < closeBrace)) {
+                cacheText = cacheText.slice(openBrace, closeBrace + 1);
+                try {
+                    this.cachedMetadata = JSON.parse(cacheText);
+                }
+                catch (exc) {
+                    this.cachedMetadata = 'Invalid JSON in Cached metadata. ';
+                }
+            }
+            else {
+                this.cachedMetadata = 'Metadata not found in cache element. ';
+            }
+        }
+    },
+    
+    /**
+     * Main entry point, extract metadata from tests, compare to cached version
+     * if present.
+     * If cache not present or differs from extrated metadata, generate an error
+     */
+    process: function(tests, harness_status) {
+        for (var index = 0; index < tests.length; index++) {
+            var test = tests[index];
+            if (this.currentMetadata.hasOwnProperty(test.name)) {
+                this.error('Duplicate test name: ' + test.name);
+            }
+            else {
+                this.currentMetadata[test.name] = this.extractFromTest(test);
+            }
+        }
+
+        this.getCachedMetadata();
+        
+        var message = null;
+        var messageClass = 'warning';
+        var showSource = false;
+        
+        if (0 == tests.length) {
+            if (this.cachedMetadata) {
+                message = 'Cached metadata present but no tests. ';
+            }
+        }
+        else if (1 == tests.length) {
+            if (this.cachedMetadata) {
+                message = 'Single test files should not have cached metadata. ';
+            }
+            else {
+                var testMetadata = this.currentMetadata[tests[0].name];
+                var hasMetadata = false;
+                for (var meta in testMetadata) {
+                    hasMetadata |= testMetadata.hasOwnProperty(meta);
+                }
+                if (hasMetadata) {
+                    message = 'Single tests should not have metadata. ' +
+                              'Move metadata to <head>. ';
+                }
+            }
+        }
+        else {
+            if (this.cachedMetadata) {
+                messageClass = 'error';
+                if ('string' == typeof(this.cachedMetadata)) {
+                    message = this.cachedMetadata;
+                    showSource = true;
+                }
+                else if (! this.validateCache()) {
+                    message = 'Cached metadata out of sync. ';
+                    showSource = true;
+                }
+            }
+        }
+        
+        if (message) {
+            var messageElement = document.createElement('p');
+            messageElement.setAttribute('id', 'metadata_issue');
+            messageElement.setAttribute('class', messageClass);
+            this.appendText(messageElement, message);
+            
+            if (showSource) {
+                var link = document.createElement('a');
+                this.appendText(link, 'Click for source code.');
+                link.setAttribute('href', '#');
+                link.setAttribute('onclick', 
+                                  'metadata_generator.addSourceElement(event)');
+                messageElement.appendChild(link);
+            }
+            
+            var summary = document.getElementById('summary');
+            if (summary) {
+                summary.parentNode.insertBefore(messageElement, summary);
+            }
+            else {
+                var log = document.getElementById('log');
+                if (log) {
+                    log.appendChild(messageElement);
+                }
+            }
+        }
+    },
+
+    setup: function() {
+        add_completion_callback(
+            function (tests, harness_status) { 
+                metadata_generator.process(tests, harness_status)
+            });
+    }
+}
+
+metadata_generator.setup();
+// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/tct-manual-w3c-tests/sandbox/Makefile.am b/tct-manual-w3c-tests/sandbox/Makefile.am
new file mode 100644 (file)
index 0000000..9e57cae
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c
+sandbox_SCRIPTS = *
+sandboxdir = /opt/tct-manual-w3c-tests/sandbox
+EXTRA_DIST = $(sandbox_SCRIPTS)
diff --git a/tct-manual-w3c-tests/sandbox/w3c/COPYING b/tct-manual-w3c-tests/sandbox/w3c/COPYING
new file mode 100644 (file)
index 0000000..091a642
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+with some modification:
+1. the necessary adjustment on reference path to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/sandbox/w3c/Makefile.am b/tct-manual-w3c-tests/sandbox/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..971339a
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = support
+sandboxw3c_SCRIPTS = *
+sandboxw3cdir = /opt/tct-manual-w3c-tests/sandbox/w3c
+EXTRA_DIST = $(sandboxw3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/sandbox/w3c/sandbox_007.htm b/tct-manual-w3c-tests/sandbox/w3c/sandbox_007.htm
new file mode 100644 (file)
index 0000000..889ad68
--- /dev/null
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <title>HTML5 Sandbox: Block form submission inside sandbox iframe</title>
+    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
+    <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+    <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#sandboxed-forms-browsing-context-flag" />
+    <meta name="assert" content="Block form submission inside sandbox iframe." />
+    <script src="support/sandbox_helper.js" type="text/javascript"></script>
+</head>
+<body>
+    <pre>Description: Block form submission inside iframe with sandbox attribute.</pre>
+    <table id='testtable' border='1'>
+        <tr>
+            <td>Test Result</td>
+            <td>Test Assertion</td>
+        </tr>
+        <tr>
+            <td id='test_0_result'>Manual</td>
+            <td id='test_0_assertion'>
+                <div>Steps:</div> 
+                <div>1. Click button "Submit Form".</div>
+                <br />
+                <div>Test passes if there is no red on the page and there is no navigation in the below iframe after following the above steps.</div>
+            </td>
+        </tr>
+    </table>
+    <br />
+    <div id="testframe">
+        <pre>iframe with sandbox="allow-scripts allow-same-origin allow-top-navigation"</pre>
+        <iframe src="support/iframe_sandbox_007.htm" sandbox="allow-scripts allow-same-origin allow-top-navigation" style="height: 100px; width: 300px;"></iframe>
+    </div>
+    <script type="text/javascript">
+        DisableTestForNonSupportingBrowsers();
+    </script>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/sandbox/w3c/support/Makefile.am b/tct-manual-w3c-tests/sandbox/w3c/support/Makefile.am
new file mode 100644 (file)
index 0000000..9fb4058
--- /dev/null
@@ -0,0 +1,3 @@
+support_SCRIPTS = *
+supportdir = /opt/tct-manual-w3c-tests/sandbox/w3c/support
+EXTRA_DIST = $(support_SCRIPTS)
diff --git a/tct-manual-w3c-tests/sandbox/w3c/support/iframe_sandbox_007.htm b/tct-manual-w3c-tests/sandbox/w3c/support/iframe_sandbox_007.htm
new file mode 100644 (file)
index 0000000..4809359
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Form submission</title>
+</head>
+<body>
+    <form id="form1" action="./standalone-fail.htm">
+      <span>Name: </span><input type="text" name="name" value="browser" /><br />
+      <input id="submitButton" type="submit" value="Submit Form" />
+    </form>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/sandbox/w3c/support/sandbox_helper.js b/tct-manual-w3c-tests/sandbox/w3c/support/sandbox_helper.js
new file mode 100644 (file)
index 0000000..1472cbf
--- /dev/null
@@ -0,0 +1,14 @@
+function IsSandboxSupported() {
+    if ('sandbox' in document.createElement('iframe')) {
+        return true;
+    }
+    return false;
+}
+
+function DisableTestForNonSupportingBrowsers() {
+    //check if sandbox is supported by the browser
+    if (!IsSandboxSupported()) {
+        document.getElementById('testframe').innerHTML = "FAIL: Your browser does not support the sandbox attribute on the iframe element.";
+        document.getElementById('testframe').style.color = "Red";
+    }
+}
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/sandbox/w3c/support/standalone-fail.htm b/tct-manual-w3c-tests/sandbox/w3c/support/standalone-fail.htm
new file mode 100644 (file)
index 0000000..1725ef0
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <title>Page with FAIL message</title>
+</head>
+<body>
+    <div style="color: Red">FAIL!!!</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/sandbox/w3c/support/standalone-iframe-content.htm b/tct-manual-w3c-tests/sandbox/w3c/support/standalone-iframe-content.htm
new file mode 100644 (file)
index 0000000..e543c21
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <title>Page with a message</title>
+</head>
+<body>
+    <div>Hello World.</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/sessionhistory/Makefile.am b/tct-manual-w3c-tests/sessionhistory/Makefile.am
new file mode 100644 (file)
index 0000000..468dafb
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = support
+sessionhistory_SCRIPTS = *
+sessionhistorydir = /opt/tct-manual-w3c-tests/sessionhistory
+EXTRA_DIST = $(sessionhistory_SCRIPTS)
diff --git a/tct-manual-w3c-tests/sessionhistory/history_forward_basic.html b/tct-manual-w3c-tests/sessionhistory/history_forward_basic.html
new file mode 100644 (file)
index 0000000..cb3be3c
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Yugang <yugang.fan@intel.com>
+        Ge, Qing <qingx.ge@intel.com>
+        Cui, Jieqiong <jieqiongx.cui@intel.com>
+
+ -->
+
+<html>
+  <head>
+    <title>Session History Test: history_forward_basic</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2012/WD-html5-20121025/history.html#the-history-interface" />
+    <meta name="flags" content="interact" />
+    <meta name="assert" content="Check if the history.forward method works well." />
+  </head>
+  <body>
+    <div id="log"></div>
+    <iframe id="testIframe" name="testIframe" width="200" height="100" src="support/001.html">
+    </iframe>
+    <br>
+    <input type="button" value="forward" onclick="forward_click()" />
+    <p>
+      Assertion: When click the button "forward", the iframe in the top of page will be changed from "001" to "002".
+    </p>
+    <ul>
+      <li>Test passes if the iframe in the top of page is changed to "002"</li>
+    </ul>
+    <script>
+        window.setTimeout(function () { document.getElementById("testIframe").src = "support/002.html"; }, 100);
+        window.setTimeout(function () { window.history.back(); }, 200);
+        function forward_click() {
+            document.getElementById("testIframe").contentWindow.history.forward();
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/sessionhistory/support/001.html b/tct-manual-w3c-tests/sessionhistory/support/001.html
new file mode 100644 (file)
index 0000000..b503f7c
--- /dev/null
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+
+Authors:
+         Fan,Yugang <yugang.fan@intel.com>
+         Ge, Qing <qingx.ge@intel.com> 
+
+ -->
+
+<html>
+  <head>
+    <title>001</title>
+  </head>
+  <body>
+    001
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/sessionhistory/support/002.html b/tct-manual-w3c-tests/sessionhistory/support/002.html
new file mode 100644 (file)
index 0000000..ffba2ad
--- /dev/null
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+
+Authors:
+         Fan,Yugang <yugang.fan@intel.com>
+         Ge, Qing <qingx.ge@intel.com> 
+
+ -->
+
+<html>
+  <head>
+    <title>002</title>
+  </head>
+  <body>
+    002
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/sessionhistory/support/Makefile.am b/tct-manual-w3c-tests/sessionhistory/support/Makefile.am
new file mode 100644 (file)
index 0000000..4fec1b4
--- /dev/null
@@ -0,0 +1,3 @@
+support_SCRIPTS = *
+supportdir = /opt/tct-manual-w3c-tests/sessionhistory/support
+EXTRA_DIST = $(support_SCRIPTS)
diff --git a/tct-manual-w3c-tests/sessionhistory/support/support.js b/tct-manual-w3c-tests/sessionhistory/support/support.js
new file mode 100644 (file)
index 0000000..ef3fd28
--- /dev/null
@@ -0,0 +1,430 @@
+/*
+
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+
+Authors:
+         Fan,Yugang <yugang.fan@intel.com>
+         Ge, Qing <qingx.ge@intel.com> 
+
+*/
+  
+var debug = 0;
+var loadTimeout = 500;
+var t;
+var srcPage = "./support/001.html"
+var srcLen = 0;
+var newPage = "";
+var replacestate = false;
+var path = "127.0.0.1:8080";
+var port = "8080";
+var ip = "127.0.0.1";
+
+function getPagename(url)
+{
+        var tmp= new Array();
+        tmp=url.split("/");
+        var pp = tmp[tmp.length-1];
+        tmp=pp.split("?");
+        return tmp[0];
+}
+
+function showInfo(info, clear){
+        var testIframe= document.getElementById("testIframe");
+       if (debug == 1){
+               testIframe.style.display = "";
+               if (info == null){
+                       return;
+               }
+       } else {
+               testIframe.style.display = "none";
+       }
+}
+
+function showWindowHistory(){
+        showInfo("State: "+window.history.state, 0);
+        showInfo("Length: "+window.history.length, 0);
+        showInfo("Location: "+window.location.href, 0);
+}
+
+function showHistory(){
+               showInfo("Len="+srcLen+", Newlen="+document.getElementById("testIframe").contentWindow.history.length, 0);
+               showInfo("Location: "+document.getElementById("testIframe").contentWindow.location.href, 0);
+               showInfo("Pagename: "+getPagename(document.getElementById("testIframe").contentWindow.location.href), 0);
+}
+
+//Go APIs test
+function historyGoCheck03(){
+        showHistory();
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+       t.done();
+}
+
+function historyGoCheck02(){
+       showHistory();
+        document.getElementById("testIframe").contentWindow.history.go(-1);
+       setTimeout(t.step_func(historyGoCheck03), loadTimeout);
+}
+
+function historyGoCheck01(){
+        document.getElementById("testIframe").src = newPage;
+        setTimeout(t.step_func(historyGoCheck02), loadTimeout);//1000
+}
+
+//Len test
+function historyLenCheck02(){
+       showHistory();
+       assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        assert_equals(document.getElementById("testIframe").contentWindow.history.length, srcLen+1, "Current history length");
+       t.done();
+}
+
+function historyLenCheck01(){
+        document.getElementById("testIframe").src = newPage;
+       setTimeout(t.step_func(historyLenCheck02), loadTimeout);
+}
+
+//Back APIs test
+function historyBackCheck03(){
+        showHistory();
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+        t.done();
+}
+
+function historyBackCheck02(){
+        showHistory();
+        document.getElementById("testIframe").contentWindow.history.back();
+        setTimeout(t.step_func(historyBackCheck03), loadTimeout);
+}
+
+function historyBackCheck01(){
+        document.getElementById("testIframe").src = newPage;
+        setTimeout(t.step_func(historyBackCheck02), loadTimeout);//1000
+}
+
+//Forward APIs test
+function historyForwardCheck04(){
+        showHistory();
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+}
+
+function historyForwardCheck03(){
+        showHistory();
+       document.getElementById("testIframe").contentWindow.history.forward();
+        setTimeout(t.step_func(historyForwardCheck04), loadTimeout);
+}
+
+function historyForwardCheck02(){
+        showHistory();
+        document.getElementById("testIframe").contentWindow.history.back();
+        setTimeout(t.step_func(historyForwardCheck03), loadTimeout);
+}
+
+function historyForwardCheck01(){
+        document.getElementById("testIframe").src = newPage;
+        setTimeout(t.step_func(historyForwardCheck02), loadTimeout);//1000
+}
+
+//State Test
+function locationStateCheck02(){
+        document.getElementById("testIframe").contentWindow.history.back();    
+}
+
+function locationStateCheck01(){
+       document.getElementById("testIframe").contentWindow.onpopstate = t.step_func(function(e) {
+               assert_equals(e.state.page, "test01");
+               t.done();
+       });
+       document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title 1", getPagename(newPage));
+       document.getElementById("testIframe").contentWindow.history.pushState({page: "test02"}, "title 2", getPagename(srcPage));
+       setTimeout(t.step_func(locationStateCheck02), loadTimeout);
+}
+
+//replaceState Test
+function locationreplaceStateCheck02(){
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+}
+
+function locationreplaceStateCheck01(){
+        document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", getPagename(newPage));
+       document.getElementById("testIframe").contentWindow.location.reload();
+       setTimeout(t.step_func(locationreplaceStateCheck02), 1000);
+}
+
+//pushState Test
+function locationpushStateCheck02(){
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+}
+
+function locationpushStateCheck01(){
+        document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", getPagename(newPage));
+        document.getElementById("testIframe").contentWindow.location.reload();
+        setTimeout(t.step_func(locationpushStateCheck02), loadTimeout);
+}
+
+//Href APIs test
+function locationHrefCheck02(){
+       assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+}
+
+function locationHrefCheck01(){
+       document.getElementById("testIframe").contentWindow.location.href = newPage;
+        setTimeout(t.step_func(locationHrefCheck02), loadTimeout);
+}
+
+//Assign APIs test
+function locationAssignCheck02(){
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+}
+
+function locationAssignCheck01(){
+        document.getElementById("testIframe").contentWindow.location.assign(newPage);
+        setTimeout(t.step_func(locationAssignCheck02), loadTimeout);
+}
+
+//Reload APIs test
+function locationReloadCheck03(){
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+       t.done();
+}
+
+function locationReloadCheck02(){
+        document.getElementById("testIframe").contentWindow.location.reload();
+        setTimeout(t.step_func(locationReloadCheck03), loadTimeout);
+}
+
+function locationReloadCheck01(){
+        document.getElementById("testIframe").contentWindow.location.assign(newPage);
+        setTimeout(t.step_func(locationReloadCheck02), loadTimeout);
+}
+
+//Replace APIs test
+function locationReplaceCheck04(){
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+       t.done();
+}
+
+function locationReplaceCheck03(){
+        document.getElementById("testIframe").contentWindow.history.back();
+       setTimeout(t.step_func(locationReplaceCheck04), loadTimeout);
+}
+
+function locationReplaceCheck02(){
+        document.getElementById("testIframe").contentWindow.location.replace("./support/003.html");
+        setTimeout(t.step_func(locationReplaceCheck03), loadTimeout);
+}
+
+function locationReplaceCheck01(){
+        document.getElementById("testIframe").contentWindow.location.assign(newPage);
+        setTimeout(t.step_func(locationReplaceCheck02), loadTimeout);
+}
+
+//Resolve APIs test
+function locationResolveCheck01(){
+        assert_equals(document.getElementById("testIframe").contentWindow.location.href, window.location.resolveURL(srcPage), "Current page absolute URL");
+        t.done();
+}
+
+function historybackPushstate(){
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title",getPagename(newPage));
+    setTimeout(t.step_func(historybackReload), 2000);
+}
+function historybackReload(){
+    document.getElementById("testIframe").contentWindow.location.reload();
+    setTimeout(t.step_func(historybackFinalCheck), loadTimeout);
+}
+function historybackFinalCheck(){
+    if(!replacestate){
+        document.getElementById("testIframe").contentWindow.history.back();
+        setTimeout(t.step_func(historyassert),loadTimeout);
+    }else{
+        setTimeout(t.step_func(historyassert_new),loadTimeout);
+        replacestate = false;
+    }
+    t.done();
+}
+
+function historybackReplacestate(){
+    replacestate = true;
+    document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", getPagename(newPage));
+    setTimeout(t.step_func(historybackReload), 2000);
+}
+
+function historyforwordPushstate(){
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", getPagename(newPage));
+    setTimeout(t.step_func(historyforwordReload), 2000);
+}
+function historyforwordReload(){
+    document.getElementById("testIframe").contentWindow.location.reload();
+    setTimeout(t.step_func(historyback), loadTimeout);
+}
+function historyforwordFinalCheck(){
+    if(!replacestate){
+        document.getElementById("testIframe").contentWindow.history.forward();
+        srcPage=newPage;
+        setTimeout(t.step_func(historyassert),loadTimeout);
+    }else{
+        setTimeout(t.step_func(historyassert_new),loadTimeout);
+        replacestate = false;
+    }
+    t.done();
+}
+function historyforwordReplacestate(){
+    replacestate = true;
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", "001.html");
+    document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", getPagename(newPage));
+    setTimeout(t.step_func(historyforwordReload), loadTimeout);
+}
+function historygoPushstate(){
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", getPagename(newPage));
+    setTimeout(t.step_func(historygoReload), loadTimeout);
+}
+function historygoReload(){
+    document.getElementById("testIframe").contentWindow.location.reload();
+    setTimeout(t.step_func(historygoFinalCheck), loadTimeout);
+}
+function historygoFinalCheck(){
+    if(!replacestate){
+        document.getElementById("testIframe").contentWindow.history.go(-1);
+        setTimeout(t.step_func(historyassert),loadTimeout);
+    }else{
+        setTimeout(t.step_func(historyassert_new),loadTimeout);
+        replacestate = false;
+    }
+    t.done();
+}
+function historygoReplacestate(){
+    replacestate = true;
+    document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", getPagename(newPage));
+    setTimeout(t.step_func(historygoReload), 2000);
+}
+function historylengthPushstate(){
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", getPagename(newPage));
+    var historyLength = document.getElementById("testIframe").contentWindow.history.length;
+    //history's quota is max 100 in Tizen (chrome is max 50)
+    //if history's quota comes to max, new "history" is not pushed and it will be replaced.
+    assert_true((historyLength == srcLen) || (historyLength == srcLen +1), "Current history length increased");
+    t.done();
+}
+function historylengthReplacestate(){
+    document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", getPagename(newPage));
+    assert_equals(document.getElementById("testIframe").contentWindow.history.length, srcLen, "Current history length");
+    t.done();
+}
+function historylengthFinalCheck(){
+    assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+    t.done();
+}
+function historyPushstate(){
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", getPagename(newPage));
+    document.getElementById("testIframe").contentWindow.location.reload();
+    assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+    t.done();
+}
+function historyPushstate_back(){
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", getPagename(newPage));
+    setTimeout(t.step_func(function() {
+        document.getElementById("testIframe").contentWindow.history.back();
+        setTimeout(t.step_func(historyassert),loadTimeout);
+    }), loadTimeout);
+    t.done();
+}
+function historyPushstate_null(){
+    document.getElementById("testIframe").contentWindow.history.pushState(null, "title", newPage);
+    setTimeout(t.step_func(function() {
+        document.getElementById("testIframe").contentWindow.location.reload();
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+   }), loadTimeout);
+}
+function historyPushstate_noparam() {
+    document.getElementById("testIframe").contentWindow.history.pushState();
+    setTimeout(t.step_func(function() {
+        document.getElementById("testIframe").contentWindow.location.reload();
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+       t.done();
+    }), loadTimeout);
+}
+function historyPushstate_urlnull() {
+    document.getElementById("testIframe").contentWindow.history.pushState({page: "test01"}, "title", null);
+    setTimeout(t.step_func(function() {
+        document.getElementById("testIframe").contentWindow.location.reload();
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+        t.done();
+    }), loadTimeout);
+}
+function historyReplacestate(){
+    document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", getPagename(newPage));
+    setTimeout(t.step_func(function() {
+        document.getElementById("testIframe").contentWindow.location.reload();
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+    }), loadTimeout);
+}
+function historyReplacestate_back(){
+    document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", getPagename(newPage));
+    document.getElementById("testIframe").contentWindow.location.reload();
+    setTimeout(t.step_func(function() {
+        document.getElementById("testIframe").contentWindow.history.back();
+        setTimeout(t.step_func(historyassert_new),loadTimeout);
+    }), loadTimeout);
+    t.done();
+}
+function historyReplacestate_datanull(){
+    document.getElementById("testIframe").contentWindow.history.replaceState(null, "title", newPage);
+    setTimeout(t.step_func(function() {
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+        t.done();
+    }), loadTimeout);
+}
+function historyReplacestate_noparam(){
+    document.getElementById("testIframe").contentWindow.history.replaceState();
+    setTimeout(t.step_func(function() {
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+        t.done();
+    }), loadTimeout);
+}
+function historyReplacestate_urlnull(){
+    document.getElementById("testIframe").contentWindow.history.replaceState({page: "test01"}, "title", null);
+    setTimeout(t.step_func(function() {
+        assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+        t.done();
+    }), loadTimeout);
+}
+function historyassert(){
+    assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(srcPage), "Current page name");
+}
+function historyassert_new(){
+    assert_equals(getPagename(document.getElementById("testIframe").contentWindow.location.href), getPagename(newPage), "Current page name");
+}
+function historyback(){
+    document.getElementById("testIframe").contentWindow.history.back();
+    setTimeout(historyforwordFinalCheck,100);
+}
diff --git a/tct-manual-w3c-tests/svg/Makefile.am b/tct-manual-w3c-tests/svg/Makefile.am
new file mode 100644 (file)
index 0000000..b35fd77
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c
+svg_SCRIPTS = *
+svgdir = /opt/tct-manual-w3c-tests/svg
+EXTRA_DIST = $(svg_SCRIPTS)
diff --git a/tct-manual-w3c-tests/svg/svg_label_inline.html b/tct-manual-w3c-tests/svg/svg_label_inline.html
new file mode 100644 (file)
index 0000000..6a7a4fa
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Xu, Yi <yix.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>Inline SVG Test: svg_label_inline</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the SVG inside HTML label element parses correctly" />
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <label style="width:100px;height:100px;display:block; border:red 1px solid;">
+      <svg width="100px" height="100px" >
+        <rect width="100px" height="100px" fill="green"/>
+      </svg>
+    </label>
+    <p>SVG inside HTML label element</p>
+    <p id="testdetails">
+      <ul>
+        <li>Pass if appearing on the page a green rectangle with red border.</li>
+        <li>Fail if appearing on the page other.</li>
+      </ul>
+    </p>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/svg/w3c/COPYING b/tct-manual-w3c-tests/svg/w3c/COPYING
new file mode 100644 (file)
index 0000000..88e5279
--- /dev/null
@@ -0,0 +1,11 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without any modification.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/svg/w3c/Makefile.am b/tct-manual-w3c-tests/svg/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..7c59210
--- /dev/null
@@ -0,0 +1,3 @@
+svgw3c_SCRIPTS = *
+svgw3cdir = /opt/tct-manual-w3c-tests/svg/w3c
+EXTRA_DIST = $(svgw3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_001.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_001.html
new file mode 100644 (file)
index 0000000..8ca1ad2
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG inside HTML OBJECT element parses correctly" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+
+        <script type="text/javascript">
+            function RunTest()
+            {
+                try
+                {
+                    var svgNS = "http://www.w3.org/2000/svg";
+                    if(document.getElementsByTagName("object")[0].childNodes[1].localName=="svg" && document.getElementsByTagName("rect")[0].namespaceURI==svgNS)
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","green");
+                    }
+                    else
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","red");
+                    }
+                }
+                catch(ex)
+                {
+                    document.getElementsByTagName("rect")[0].setAttribute("fill","red")
+                }
+            }
+        </script>
+    </head>
+
+    <body onLoad="RunTest()">
+        <div class="testdata">
+            <p id="instructions"> Test passes if a green rectangle is visible on the page below this line. </p>
+        </div>
+            
+        <object>
+            <svg width="100px" height="100px" >
+                <rect  width="100px" height="100px" fill="none"/>
+            </svg>
+        </object>
+    </body>
+    
+</html>
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_003.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_003.html
new file mode 100644 (file)
index 0000000..8e11c2d
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+    <head>     
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG inside HTML BUTTON element parses correctly" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 
+
+        <script type="text/javascript">
+            function RunTest()
+            {
+                try
+                {
+                    var svgNS = "http://www.w3.org/2000/svg";
+                    if(document.getElementsByTagName("button")[0].childNodes[1].localName=="svg" && document.getElementsByTagName("rect")[0].namespaceURI==svgNS)
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","green");
+                    }
+                    else
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","red");
+                    }
+                }
+                catch(ex)
+                {
+                    document.getElementsByTagName("rect")[0].setAttribute("fill","red")
+                }
+            }
+        </script>
+    </head>
+
+    <body onLoad="RunTest()">
+
+        <div class="testdata">
+            <p id="instructions">Test passes if the button has a green rectangle while 'FillerText1' and 'FillerText3' are on either side of the button.</p>
+        </div>
+        <div>
+            FillerText1
+            <button>
+                <svg width="100px" height="100px">
+                   <rect width="100px" height="100px" fill="none" />
+                </svg>
+
+            </button>
+            FillerText3
+        </div>
+    </body>
+</html>
+
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_004.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_004.html
new file mode 100644 (file)
index 0000000..864a833
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG inside HTML CAPTION element parses correctly" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />       
+
+        <script type="text/javascript">
+            function RunTest()
+            {
+                try
+                {
+                    var svgNS = "http://www.w3.org/2000/svg";
+                    if(document.getElementsByTagName("caption")[0].childNodes[1].localName=="svg" && document.getElementsByTagName("rect")[0].namespaceURI==svgNS)
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","green");
+                    }
+                    else
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","red");
+                    }
+                }
+                catch(ex)
+                {
+                    document.getElementsByTagName("rect")[0].setAttribute("fill","red")
+                }
+            }
+        </script>
+    </head>
+    
+    <body onLoad="RunTest()">
+        <div class="testdata">
+            <p id="instructions">Test passes if a green square appears above and centered relative to the table.</p>
+        </div>
+        <div>
+            <table border="1">
+                <caption>
+                    <svg width="100px" height="100px">
+                        <rect width="100px" height="100px" fill="none" />
+                    </svg>
+                </caption>
+                <thead>
+                    <th>FillerText</th>
+                    <th>FillerText</th>
+                    <th>FillerText</th>
+                </thead>
+                <tr>
+                    <td>FillerText</td>
+                    <td>FillerText</td>
+                    <td>FillerText</td>
+                </tr>
+                <tr>
+                    <td>FillerText</td>
+                    <td>FillerText</td>
+                    <td>FillerText</td>
+                </tr>
+                <tr>
+                    <td>FillerText</td>
+                    <td>FillerText</td>
+                    <td>FillerText</td>
+                </tr>
+            </table>
+        </div>
+    </body>
+</html>
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_005.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_005.html
new file mode 100644 (file)
index 0000000..ff59a48
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG inside HTML FORM element parses correctly" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />       
+
+        <script type="text/javascript">
+            function RunTest()
+            {
+                try
+                {
+                    var svgNS = "http://www.w3.org/2000/svg";
+                    if(document.getElementsByTagName("form")[0].childNodes[1].localName=="svg" && document.getElementsByTagName("rect")[0].namespaceURI==svgNS)
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","green");
+                    }
+                    else
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","red");
+                    }
+                }
+                catch(ex)
+                {
+                    document.getElementsByTagName("rect")[0].setAttribute("fill","red")
+                }
+            }
+        </script>
+    </head>
+
+    <body onLoad="RunTest()">
+        <div class="testdata">
+            <p id="instructions">Test passes if green rectangle is visible below 'FillerText1'.</p>
+        </div>
+        <div>
+            FillerText1
+            <form>
+                <svg width="100px" height="100px"> 
+                    <rect width="100px" height="100px" fill="none" />
+                </svg>
+            </form>
+            
+        </div>
+    </body>
+</html>
+
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_006.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_006.html
new file mode 100644 (file)
index 0000000..f214011
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>   
+    <svg width="100px" height="100px">
+        <rect width="100px" height="100px" fill="none" />
+    </svg>
+
+    <head>
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG inside HTML 'HTML' element parses correctly" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 
+        <script type="text/javascript">
+            function RunTest()
+            {
+                try
+                {
+                    if(document.body.childNodes[0].localName=="svg")
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","green");
+                    }
+                    else
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","red");
+                    }
+                }
+                catch(ex)
+                {
+                    document.getElementsByTagName("rect")[0].setAttribute("fill","red")
+                }
+            }
+        </script>
+    </head>
+
+    <body onLoad="RunTest()">
+        <div class="testdata">
+            <p id="instructions">Test passes if a green rectangle is visible on the page above this line.</p>
+        </div>
+    </body>
+</html>
+
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_008.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_008.html
new file mode 100644 (file)
index 0000000..348ff0b
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG inside HTML 'BODY' element parses correctly" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+
+        <script type="text/javascript">
+            function RunTest()
+            {
+                try
+                {
+                    if(document.body.childNodes[3].localName=="svg")
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","green");
+                    }
+                    else
+                    {
+                        document.getElementsByTagName("rect")[0].setAttribute("fill","red");
+                    }
+                }
+                catch(ex)
+                {
+                    document.getElementsByTagName("rect")[0].setAttribute("fill","red")
+                }
+            }
+        </script>
+    </head>
+
+    <body onLoad="RunTest()">
+        <div class="testdata">
+            <p id="instructions"> Test passes if a green rectangle is visible on the page below this line. </p>
+        </div>
+        <svg width="100px" height="100px" >
+            <rect x="0" y="0" width="100px" height="100px" />
+        </svg>
+
+    </body>
+</html>
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_011.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_011.html
new file mode 100644 (file)
index 0000000..f56f1b8
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+    <head>      
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG elements are styled using ID Selector" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 
+        
+        <style>
+            #d1
+            {
+                fill: green;
+            }
+        </style>
+    </head>
+    
+    <body>
+        <div class="testdata">
+            <p id="instructions">Test passes if a green square is visible below this line.</p>
+        </div>
+        <div id="d1">
+            <svg width="100px" height="100px">
+                <rect width="100px" height="100px" />
+            </svg>
+        </div>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/svg/w3c/foreign_content_013.html b/tct-manual-w3c-tests/svg/w3c/foreign_content_013.html
new file mode 100644 (file)
index 0000000..e88aae9
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>HTML 5 Foreign Content SVG in HTML </title>
+        <meta description="Test to verify SVG elements are styled using CLASS Selector" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+
+        <style>
+            .svg1
+            {
+                fill: green ;
+            }
+        </style>
+    </head>
+
+    <body>
+        <div class="testdata">
+            <p id="instructions">Test passes if a green square is visible below this line. </p>
+        </div>
+        <div id="d1">
+            <svg class="svg1" width="100px" height="100px">
+                <rect  width="100px" height="100px"/>
+            </svg>
+        </div>
+    </body>
+</html>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/tct-manual-w3c-tests.spec b/tct-manual-w3c-tests/tct-manual-w3c-tests.spec
new file mode 100644 (file)
index 0000000..363a538
--- /dev/null
@@ -0,0 +1,146 @@
+%define _unpackaged_files_terminate_build 0 
+
+Summary: Webapi w3c manual test suite
+Name: tct-manual-w3c-tests
+Version: 2.3.3
+Release: 1
+License: BSD
+Group: System/Libraries
+Source: %name-%version.tar.gz
+
+%description
+This is webapi w3c manual test suite package
+
+%prep
+%setup -q
+
+
+%build
+./autogen
+./configure --prefix=/usr
+make
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+############## generate crx, wgt packge ####################
+crx_installer="chromium-browser"
+wgt_installer="wrt-installer"
+
+cp -a $RPM_BUILD_ROOT  $RPM_BUILD_DIR/%name
+cp -a manifest.json    $RPM_BUILD_DIR/%name
+cp -a custom.png       $RPM_BUILD_DIR/%name
+
+pre_dir=`pwd`
+cd $RPM_BUILD_DIR/%name
+
+cat > index.html << EOF
+<!doctype html>
+<head>
+    <meta http-equiv="Refresh" content="1; url=opt/%name/testkit/web/index.html?testsuite=/usr/share/%name/tests.xml">
+</head>
+EOF
+
+#create crx
+if [[ %TYPE == "all" || %TYPE == "crx" ]]; then
+    echo %TYPE
+    which $crx_installer > /dev/null 2>&1
+    if [ $? -eq 0 ]; then
+        export DISPLAY=:0
+        cp -f $pre_dir/config.xml.crx ./config.xml
+        $crx_installer --user-data-dir=/tmp  --pack-extension=../%name
+        mv ../%name.crx  $RPM_BUILD_ROOT/opt/%name/
+    fi
+fi
+
+#create zip
+cp -f $pre_dir/config.xml.crx ./config.xml
+cd $RPM_BUILD_DIR
+zip -Drq %name-%version-%release.zip %name
+cd $RPM_BUILD_DIR/%name
+
+#create wgt
+cp -f $pre_dir/config.xml.wgt ./config.xml
+zip -rq $RPM_BUILD_ROOT/opt/%name/%name.wgt *
+
+cd $pre_dir
+rm -rf $RPM_BUILD_DIR/%name
+
+
+mkdir -p $RPM_BUILD_ROOT/opt/unpacked_crx/%name
+########################## end ##############################
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+/opt/%name
+/usr/share/%name
+/opt/unpacked_crx/%name
+
+
+%changelog
+
+
+%post
+############## install/uninstall crx, wgt packge ####################
+crx_installer="chromium-browser"
+wgt_installer="wrt-installer"
+
+which $crx_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    crx_install_dir="/opt/unpacked_crx/%name"
+    cd $crx_install_dir
+    [ -e /opt/%name/%name.crx ] && unzip /opt/%name/%name.crx
+    cd -
+fi
+
+which $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    [ -e /opt/%name/%name.wgt ] && $wgt_installer -i /opt/%name/%name.wgt
+    if [ $? -eq 0 ]; then
+        echo "Install /opt/%name/%name.wgt to /opt/usr/apps/`wrt-launcher -l 2> /dev/null | grep %name | tail -n 1 | awk '{ print $NF }'` done"
+        echo "$(wrt-launcher -l | awk '/%name/ { print $(NF-1); exit }') sdbd rw" | smackload
+    else
+        echo "Install /opt/%name/%name.wgt fail ..."
+    fi
+    sync
+fi
+
+
+%postun
+crx_installer="chromium-browser"
+wgt_installer="wrt-installer"
+which $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    package_id=`wrt-launcher -l 2> /dev/null | grep %name | tail -n 1 | awk '{ print $NF }'`
+    if [ -n "$(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')" ]; then
+        for i in $(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')
+        do
+            kill -9 $i
+            if [ "$?" -ne 0 ]; then
+                echo "Kill the processes of %name fail ..."
+            else
+               echo "Kill the processes of %name done"
+           fi
+        done
+    fi
+
+    if [ -n "$package_id" ]; then
+        $wgt_installer -un $package_id
+       if [ "$?" -ne 0 ]; then
+                echo "Uninstall %name fail ..."
+        else
+                echo "Uninstall %name done"
+        fi
+        sync
+    fi
+
+fi
+
+rm -rf /opt/unpacked_crx/%name
+########################## end ##############################
diff --git a/tct-manual-w3c-tests/testcase.xsl b/tct-manual-w3c-tests/testcase.xsl
new file mode 100644 (file)
index 0000000..8623c28
--- /dev/null
@@ -0,0 +1,181 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+       <xsl:output method="html" version="1.0" encoding="UTF-8"
+               indent="yes" />
+       <xsl:template match="/">
+               <html>
+                       <STYLE type="text/css">
+                               @import "tests.css";
+                       </STYLE>
+
+                       <body>
+                               <div id="testcasepage">
+                                       <div id="title">
+                                               <table>
+                                                       <tr>
+                                                               <td>
+                                                                       <h1>Test Cases</h1>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       <div id="suites">
+                                               <table>
+                                                       <tr>
+                                                               <th>Test Suite</th>
+                                                               <th>Total</th>
+                                                               <th>Auto</th>
+                                                               <th>Manual</th>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>
+                                                                       Total
+                                                               </td>
+                                                               <td>
+                                                                       <xsl:value-of select="count(test_definition/suite/set//testcase)" />
+                                                               </td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition/suite/set//testcase[@execution_type = 'auto'])" />
+                                                               </td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition/suite/set//testcase[@execution_type != 'auto'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <tr>
+                                                                       <td>
+                                                                               <xsl:value-of select="@name" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase)" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set/testcase[@execution_type = 'auto'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set/testcase[@execution_type != 'auto'])" />
+                                                                       </td>
+                                                               </tr>
+                                                       </xsl:for-each>
+                                               </table>
+                                       </div>
+                                       <div id="title">
+                                               <table>
+                                                       <tr>
+                                                               <td class="title">
+                                                                       <h1>Detailed Test Cases</h1>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       <div id="cases">
+                                               <xsl:for-each select="test_definition/suite">
+                                                       <xsl:sort select="@name" />
+                                                       <p>
+                                                               Test Suite:
+                                                               <xsl:value-of select="@name" />
+                                                       </p>
+                                                       <table>
+                                                               <tr>
+                                                                       <th>Case_ID</th>
+                                                                       <th>Purpose</th>
+                                                                       <th>Type</th>
+                                                                       <th>Component</th>
+                                                                       <th>Execution Type</th>
+                                                                       <th>Description</th>
+                                                                       <th>Specification</th>
+                                                               </tr>
+                                                               <xsl:for-each select=".//set">
+                                                                       <xsl:sort select="@name" />
+                                                                       <tr>
+                                                                               <td colspan="7">
+                                                                                       Test Set:
+                                                                                       <xsl:value-of select="@name" />
+                                                                               </td>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//testcase">
+                                                                               <xsl:sort select="@id" />
+                                                                               <tr>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@id" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@purpose" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@type" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@component" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@execution_type" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <p>
+                                                                                                       Pre_condition:
+                                                                                                       <xsl:value-of select=".//description/pre_condition" />
+                                                                                               </p>
+                                                                                               <p>
+                                                                                                       Post_condition:
+                                                                                                       <xsl:value-of select=".//description/post_condition" />
+                                                                                               </p>
+                                                                                               <p>
+                                                                                                       Test Script Entry:
+                                                                                                       <xsl:value-of select=".//description/test_script_entry" />
+                                                                                               </p>
+                                                                                               <p>
+                                                                                                       Steps:
+                                                                                                       <p />
+                                                                                                       <xsl:for-each select=".//description/steps/step">
+                                                                                                               <xsl:sort select="@order" />
+                                                                                                               Step
+                                                                                                               <xsl:value-of select="@order" />
+                                                                                                               :
+                                                                                                               <xsl:value-of select="./step_desc" />
+                                                                                                               ;
+                                                                                                               <p />
+                                                                                                               Expected Result:
+                                                                                                               <xsl:value-of select="./expected" />
+                                                                                                               <p />
+                                                                                                       </xsl:for-each>
+                                                                                               </p>
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:call-template name="br-replace">
+                                                                                                       <xsl:with-param name="word" select=".//spec" />
+                                                                                               </xsl:call-template>
+                                                                                       </td>
+                                                                               </tr>
+                                                                       </xsl:for-each>
+                                                               </xsl:for-each>
+                                                       </table>
+                                               </xsl:for-each>
+                                       </div>
+                               </div>
+                       </body>
+               </html>
+       </xsl:template>
+       <xsl:template name="br-replace">
+               <xsl:param name="word" />
+               <xsl:variable name="cr">
+                       <xsl:text>
+</xsl:text>
+               </xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="contains($word,$cr)">
+                               <xsl:value-of select="substring-before($word,$cr)" />
+                               <br />
+                               <xsl:call-template name="br-replace">
+                                       <xsl:with-param name="word" select="substring-after($word,$cr)" />
+                               </xsl:call-template>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <xsl:value-of select="$word" />
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/testkit/Makefile.am b/tct-manual-w3c-tests/testkit/Makefile.am
new file mode 100644 (file)
index 0000000..a361e32
--- /dev/null
@@ -0,0 +1,4 @@
+
+testkit_SCRIPTS = web/*
+testkitdir = /opt/tct-manual-w3c-tests/testkit/web
+EXTRA_DIST = $(testkit_SCRIPTS)
diff --git a/tct-manual-w3c-tests/testkit/web/index.html b/tct-manual-w3c-tests/testkit/web/index.html
new file mode 100644 (file)
index 0000000..370d9b7
--- /dev/null
@@ -0,0 +1,1140 @@
+<!doctype html>
+<!--
+# Copyright (C) 2012 Intel Corporation
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#
+# Authors:
+#              Wang, Jing <jing.j.wang@intel.com>
+#              Tang, Shaofeng  <shaofeng.tang@intel.com>
+-->
+<head>
+<meta name="viewport" content="width=device-width">
+<script src="jquery.js"></script>
+<script>
+       var iTest = 0;
+
+       var Tests;
+       var statusNode;
+       var oTestFrame;
+       var statusFrame;
+       var frmset;
+       var xmldoc;
+
+       var startTime;
+       var defTime = 2000;
+       var timeout;
+       var winCloseTimeout = 5000;
+       var blockCheckTime = 10;
+
+       var server = "http://127.0.0.1:8000";
+       var need_ajax = true;
+
+       var hidestatus;
+       var ttestsuite;
+       var tpriority;
+       var tstatus;
+       var ttype;
+       var tcategory;
+       var texecutiontype;
+
+       var manualcaseslist;
+
+       var cursuite;
+       var curset;
+
+       var last_test_page = "";
+       var current_page_uri = "";
+
+       var activetest = true;
+
+       var manualcases = function() {
+               this.casesid = "";
+               this.index = 0;
+               this.result = "";
+       };
+
+       function getTestPageParam(uri, param) {
+               var uri_local = uri;
+               var iLen = param.length;
+               var iStart = uri_local.indexOf(param);
+               if (iStart == -1)
+                       return "";
+               iStart += iLen + 1;
+               var iEnd = uri_local.indexOf("&", iStart);
+               if (iEnd == -1)
+                       return uri_local.substring(iStart);
+
+               return uri_local.substring(iStart, iEnd);
+       }
+
+       function Parm(data, name) {
+               var p;
+               ts = $(data).find(name);
+               if (ts) {
+                       t = $(ts).get(0);
+                       if (t)
+                               p = $(t).text().trim();
+               }
+
+               if (p) {
+                       var rawVal = decodeURI(p);
+                       if (rawVal.indexOf(',') < 0)
+                               p = rawVal;
+                       else
+                               p = rawVal.split(',');
+               }
+
+               return p;
+       }
+
+       function getParms() {
+               var parms = new Array();
+               var str = location.search.substring(1);
+               var items = str.split('&');
+               for ( var i = 0; i < items.length; i++) {
+                       var pos = items[i].indexOf('=');
+                       if (pos > 0) {
+                               var key = items[i].substring(0, pos);
+                               var val = items[i].substring(pos + 1);
+                               if (!parms[key]) {
+                                       var rawVal = decodeURI(val);
+                                       if (rawVal.indexOf(',') < 0)
+                                               parms[key] = rawVal;
+                                       else
+                                               parms[key] = rawVal.split(',');
+                               }
+                       }
+               }
+
+               ttestsuite = parms["testsuite"];
+               tpriority = parms["priority"];
+               hidestatus = parms["hidestatus"];
+               tstatus = parms["status"];
+               ttype = parms["type"];
+               tcategory = parms["category"];
+               texecutiontype = parms["execution_type"];
+               if (need_ajax) {
+                       $.ajax({
+                               async : false,
+                               type : "GET",
+                               url : server + "/get_params",
+                               dataType : "xml",
+                               success : function(data) {
+                                       hidestatus = Parm(data, 'hidestatus');
+                               },
+                               error : function(x, t, e) {
+                                       print_error_log("getParms", e);
+                               }
+                       });
+               }
+       }
+
+       function runTestsuite_nofilter(xml) {
+               xmldoc = xml;
+               Tests = $(xml).find("testcase");
+               doTest();
+       }
+
+       function runTestsuite(xml) {
+               xmldoc = xml;
+               $(xml).find("testcase").each(
+                               function() {
+                                       var v, vType;
+                                       v = $(this).attr('execution_type');
+
+                                       if (texecutiontype && texecutiontype == "manual")
+                                               vType = "manual";
+                                       else if (texecutiontype && texecutiontype == "auto")
+                                               vType = "auto";
+                                       else if (!texecutiontype)
+                                               vType = [ "auto", "manual" ];
+                                       else
+                                               vType = "auto";
+
+                                       if (v != vType && $.inArray(v, vType) < 0)
+                                               $(this).remove();
+                                       v = $(this).attr('priority');
+                                       if (tpriority && v != tpriority
+                                                       && $.inArray(v, tpriority) < 0)
+                                               $(this).remove();
+                                       v = $(this).attr('status');
+                                       if (tstatus && v != tstatus && $.inArray(v, tstatus) < 0)
+                                               $(this).remove();
+                                       v = $(this).attr('type');
+                                       if (ttype && v != ttype && $.inArray(v, ttype) < 0)
+                                               $(this).remove();
+                                       var categories = $(this).find("categories > category");
+                                       if (categories.length > 0 && tcategory) {
+                                               var i;
+                                               var found = false;
+                                               for (i = 0; i < categories.length; i++) {
+                                                       var category = $(categories).get(i);
+                                                       if ($(category).text().trim() != tcategory
+                                                                       && $.inArray($(category).text().trim(),
+                                                                                       tcategory) < 0) {
+                                                               found = true;
+                                                               break;
+                                                       }
+                                               }
+                                               if (!found)
+                                                       $(this).remove();
+                                       }
+
+                                       $(this).attr('result', "N/A");
+                               });
+               Tests = $(xml).find("testcase");
+               xmldoc = xml;
+               save_result();
+               doTest();
+       }
+
+       function precheck_init() {
+               server_url = "http://127.0.0.1:8000/check_server";
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "GET",
+                       success : init_test,
+                       error : function(x, t, e) {
+                               print_error_log("can't find a http server",
+                                               "run widget in the standalone mode");
+                               need_ajax = false;
+                               init();
+                       }
+               });
+       }
+
+       function init() {
+               getParms();
+
+               oTestFrame = document.getElementById('testframe');
+               if (!oTestFrame)
+                       return;
+
+               statusFrame = document.getElementById('statusframe');
+               if (!statusFrame)
+                       return;
+
+               var statusWin = statusFrame.contentWindow;
+               if (!statusWin)
+                       return;
+
+               statusNode = statusWin.document.createElement("div");
+               if (!statusNode)
+                       return;
+               statusWin.document.body.appendChild(statusNode);
+
+               frmset = $($('#main')).get(0);
+               if (!frmset)
+                       return;
+
+               if (hidestatus && hidestatus == "1")
+                       $(frmset).attr('rows', "0, *");
+               if (need_ajax) {
+                       $.ajax({
+                               async : false,
+                               type : "GET",
+                               url : server + '/get_testsuite',
+                               dataType : "xml",
+                               success : runTestsuite_nofilter,
+                               error : function(x, t, e) {
+                                       print_error_log("init", e);
+                               }
+                       });
+               }
+               if (!xmldoc) {
+                       if (!ttestsuite) {
+                               ttestsuite = 'tests.xml';
+                       }
+                       $.ajax({
+                               async : false,
+                               type : "GET",
+                               url : ttestsuite,
+                               dataType : "xml",
+                               success : runTestsuite,
+                               error : function(x, t, e) {
+                                       print_error_log("init", e);
+                               }
+                       });
+               }
+       }
+
+       function escape_html(s) {
+               return s.replace(/\&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g,
+                               "&quot;").replace(/'/g, "&#39;");
+       }
+
+       function check_timeout(time) {
+               if (time == 11) {
+                       report('BLOCK', "Time is out");
+               }
+               sleep_time = time * 50;
+               setTimeout("CheckResult('yes', " + time + ")", sleep_time);
+       }
+
+       function CheckResult(need_check_block, sleep_time) {
+               var message = "";
+               var total_num = "";
+               var locator_key = "";
+               var value = "";
+
+               var oTestWin = oTestFrame.contentWindow;
+               var oTestDoc = oTestWin.document;
+               var case_uri = current_page_uri;
+
+               try {
+                       if (oTestWin.document.readyState == "complete") {
+                               total_num = getTestPageParam(case_uri, "total_num");
+                               locator_key = getTestPageParam(case_uri, "locator_key");
+                               value = getTestPageParam(case_uri, "value");
+
+                               oPass = $(oTestDoc).find(".pass");
+                               oFail = $(oTestDoc).find(".fail");
+
+                               // Test page has parameters
+                               if (total_num != "" && locator_key != "" && value != "") {
+                                       if (locator_key == "id") {
+                                               var results;
+                                               var passes;
+                                               var fails;
+
+                                               var oRes = $(oTestDoc).find("table#results");
+                                               if (oRes) {
+                                                       results = $(oRes).find('tr');
+                                                       passes = $(oRes).find('tr.pass');
+                                                       fails = $(oRes).find('tr.fail');
+                                               }
+
+                                               if (passes.length + fails.length == total_num) {
+                                                       var i = 1;
+                                                       for (i = 1; i <= total_num; i++) {
+                                                               if (i.toString() != value) {
+                                                                       continue;
+                                                               }
+                                                               var rest = results[i].childNodes[0].textContent;
+                                                               var desc = results[i].childNodes[1].textContent;
+                                                               var msg = results[i].childNodes[2].textContent;
+                                                               if (rest && rest.toUpperCase() == "PASS")
+                                                                       report('PASS', msg);
+                                                               else
+                                                                       report('FAIL', msg);
+                                                               break;
+                                                       }
+                                               } else {
+                                                       var i;
+                                                       for (i = 0; i < fails.length; i++) {
+                                                               var desccell = fails[i].childNodes[1];
+                                                               if (desccell)
+                                                                       message += "\n###Test Start###\n"
+                                                                                       + desccell.textContent
+                                                                                       + "\n###Test End###\n";
+                                                               var msgcell = fails[i].childNodes[2];
+                                                               if (msgcell)
+                                                                       message += "###Error1 Start###\n"
+                                                                                       + msgcell.textContent
+                                                                                       + "\n###Error1 End###";
+                                                       }
+                                                       report('FAIL', message);
+                                               }
+                                       } else if (locator_key == "test_name") {
+                                               // Place holder
+                                       } else if (locator_key == "msg") {
+                                               // Place holder
+                                       } else {
+                                               alert("Unknown locator key");
+                                       }
+                               } else if (oPass.length > 0 && oFail.length == 0) {
+                                       if (oTestWin.resultdiv)
+                                               message = oTestWin.resultdiv.innerHTML;
+                                       report('PASS', message);
+                               } else if (oFail.length > 0) {
+                                       var oRes = $($(oTestDoc).find("table#results")).get(0);
+                                       // Get error log
+                                       if (oRes) {
+                                               var fails = $(oRes).find('tr.fail');
+                                               var i;
+                                               for (i = 0; i < fails.length; i++) {
+                                                       var desccell = fails[i].childNodes[1];
+                                                       if (desccell)
+                                                               message += "\n###Test Start###\n"
+                                                                               + desccell.textContent + "\n###Test End###\n";
+                                                       var msgcell = fails[i].childNodes[2];
+                                                       if (msgcell)
+                                                               message += "###Error2 Start###\n"
+                                                                               + msgcell.textContent
+                                                                               + "\n###Error2 End###";
+                                               }
+                                       }
+                                       report('FAIL', message);
+                               } else // oFail.length==0 && oPass.length==0
+                               if (need_check_block == 'yes') {
+                                       next_sleep_time = sleep_time + 1;
+                                       check_timeout(next_sleep_time);
+                                       return;
+                               }
+                       } else // not complete
+                       if (need_check_block == 'yes') {
+                               next_sleep_time = sleep_time + 1;
+                               check_timeout(next_sleep_time);
+                               return;
+                       }
+               } catch (e) {
+                       report('BLOCK', e);
+               }
+       }
+
+       function report(result, log) {
+
+               if (iTest >= Tests.length)
+                       return;
+               $(Tests[iTest]).attr('result', result);
+               var doc = $.parseXML("<result_info>" + "<actual_result>" + result
+                               + "</actual_result>" + "<start>" + startTime + "</start>"
+                               + "<end>" + new Date() + "</end>" + "<stdout>"
+                               + escape_html(log) + "</stdout>" + "</result_info>");
+               $(Tests[iTest]).append(doc.documentElement);
+
+               statusNode.innerHTML = "Test #" + (iTest + 1) + "/" + Tests.length
+                               + "(" + result + ") " + current_page_uri;
+
+               try {
+                       var starts = log.indexOf('value:');
+                       var stops = log.lastIndexOf(',');
+                       var resultinfo = log.substring(starts + 6, stops);
+                       $(Tests[iTest]).find("measurement").attr('value', resultinfo);
+               } catch (e) {
+               }
+
+               iTest++;
+
+               if (activetest) {
+                       doTest();
+               } else {
+                       activetest = true;
+               }
+       }
+
+       function doTest() {
+               while (iTest < Tests.length) {
+                       if ($(Tests[iTest]).attr('execution_type') != 'auto') {
+                               iTest++;
+                               continue;
+                       }
+                       var ts = $(Tests[iTest]).find('test_script_entry');
+                       if (ts.length == 0) {
+                               iTest++;
+                               continue;
+                       }
+                       var it = $(ts).get(0);
+                       var tstr = $(it).attr('timeout');
+                       if (!tstr)
+                               timeout = 8 * defTime;
+                       else {
+                               var t;
+                               try {
+                                       t = parseInt(tstr) * 1000;
+                               } catch (e) {
+                                       t = 8 * defTime;
+                               }
+                               timeout = t;
+                       }
+
+                       pset = $(Tests[iTest]).parent().attr('name');
+                       psuite = $(Tests[iTest]).parent().parent().attr('name');
+
+                       startTime = new Date();
+
+                       current_page_uri = $(it).text();
+                       var index = current_page_uri.indexOf("?");
+                       var test_page = "";
+                       if (need_ajax) {
+                               var svr = server + "/test_hint";
+                               $.ajax({
+                                       async : false,
+                                       type : "POST",
+                                       url : svr,
+                                       data : {
+                                               suite : psuite,
+                                               set : pset,
+                                               testcase : current_page_uri
+                                       },
+                                       error : function(x, t, e) {
+                                               print_error_log("doTest", e);
+                                       }
+                               });
+                       }
+                       if (index >= 0)
+                               test_page = current_page_uri.substring(0, index);
+                       else
+                               test_page = current_page_uri;
+
+                       // Don't load the same test page again
+                       if (test_page == last_test_page) {
+                               print_error_log("test page url is the same as the last one",
+                                               test_page);
+                               activetest = false;
+                               CheckResult('yes', 0);
+                               continue;
+                       }
+
+                       if ((current_page_uri.indexOf("2DTransforms") != -1)
+                                       || (current_page_uri.indexOf("3DTransforms") != -1)) {
+                               oTestFrame.height = 500000 + "px";
+                       } else {
+                               oTestFrame.height = 2500 + "px";
+                       }
+                       oTestFrame.src = current_page_uri;
+                       last_test_page = test_page;
+                       if (oTestFrame.attachEvent) {
+                               oTestFrame.attachEvent("onload", function() {
+                                       CheckResult('yes', 0);
+                               });
+                       } else {
+                               oTestFrame.onload = function() {
+                                       CheckResult('yes', 0);
+                               };
+                       }
+                       return;
+               }
+               doManualTest();
+       }
+
+       function doManualTest() {
+               manualcaseslist = new Array();
+               var iTemp1 = 0, iTemp2 = 0;
+               while (iTemp1 < Tests.length) {
+                       if ($(Tests[iTemp1]).attr('execution_type') == 'manual') {
+                               parent.document.getElementById("statusframe").height = 385 + "px";
+                               manualcaseslist[iTemp2] = new manualcases();
+                               manualcaseslist[iTemp2].casesid = $(Tests[iTemp1]).attr('id');
+                               manualcaseslist[iTemp2].index = iTemp1;
+                               manualcaseslist[iTemp2].result = $(Tests[iTemp1])
+                                               .attr('result');
+                               iTemp2++;
+                       }
+                       iTemp1++;
+               }
+               if (iTemp2 > 0) {
+                       winCloseTimeout = 50000;
+                       statusFrame.src = "./manualharness.html";
+                       $(frmset).attr('rows', "100,*");
+               } else if (iTest == Tests.length) {
+                       setTimeout("PublishResult()", 2000);
+               }
+               oTestFrame.src = '';
+       }
+
+       function PublishResult() {
+               $(frmset).attr('rows', "0, *");
+               results = oTestFrame.contentWindow;
+               var resultXML;
+               resultXML = "<title>HTML5 Test Result XML</title>";
+               resultXML += "<head> <style type='text/css'>\
+html {font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;}\
+section#summary {margin-bottom:1em;}\
+table#results {\
+    border-collapse:collapse;\
+    table-layout:fixed;\
+    width:80%;\
+}\
+table#results th:first-child,\
+table#results td:first-child {\
+    width:40%;\
+}\
+table#results th:last-child,\
+table#results td:last-child {\
+    width:30%;\
+}\
+table#results th {\
+    padding:0;\
+    padding-bottom:0.5em;\
+    text-align:left;\
+    border-bottom:medium solid black;\
+}\
+table#results td {\
+    padding:1em;\
+    padding-bottom:0.5em;\
+    border-bottom:thin solid black;\
+}\
+</style><head>";
+
+               resultXML += "<section id='summary'>";
+               resultXML += "<h2>Summary</h2>";
+               var ipass = $(xmldoc).find("testcase[result='PASS']").length;
+               var failList = $(xmldoc).find("testcase[result='FAIL']");
+               var ifail = failList.length;
+               resultXML += "<h3>Total:" + Tests.length
+                               + " Pass:<span style='color:green;'>" + ipass
+                               + "</span> Fail:<span style='color:red;'>" + ifail
+                               + "</span></h3>";
+               resultXML += "</section>";
+
+               resultXML += "<p><table id='results'> <tr> <th> TestSet </th> <th> Pass </th> <th> Fail </th></tr>";
+               var Sets = $(xmldoc).find("set");
+               var i = 0;
+               for (i = 0; i < Sets.length; i++) {
+                       ipass = $(Sets[i]).find("testcase[result='PASS']").length;
+                       ifail = $(Sets[i]).find("testcase[result='FAIL']").length;
+                       resultXML += "<tr>";
+                       resultXML += "<td>" + $(Sets[i]).attr('name') + "</td>";
+                       resultXML += "<td style='color:green;'>" + ipass
+                                       + "</td><td style='color:red;'>" + ifail + "</td>";
+                       resultXML += "</tr>";
+               }
+               resultXML += "</table>";
+
+               if (ifail > 0) {
+                       resultXML += "<section id='failedlist'>";
+                       resultXML += "<h2>Fails</h2>";
+                       resultXML += "<ul>";
+                       for (i = 0; i < failList.length; i++) {
+                               var ts = $(failList[i]).find("test_script_entry");
+                               if (ts.length > 0) {
+                                       var t = ts.get(0);
+                                       resultXML += "<li style='color:red;'>" + $(t).text()
+                                                       + "</li>";
+                               }
+                       }
+                       resultXML += "</ul>";
+                       resultXML += "</section>";
+               }
+
+               resultXML += "<h2>Details</h2>";
+               resultXML += "<form method='post' id='resultform'> <textarea id='results' style='width: 80%; height: 90%;' name='filecontent' disabled='disabled'>"
+                               + save_result() + "</textarea></form>";
+               setTimeout("window.open('','_self','');window.close()", winCloseTimeout);
+               results.document.writeln(resultXML);
+       }
+
+       function save_result() {
+               var svr = server + "/save_result";
+               var testid = (new Date()).getTime();
+               var contents = (new XMLSerializer()).serializeToString(xmldoc);
+               if (need_ajax) {
+                       $.ajax({
+                               async : false,
+                               type : "POST",
+                               url : svr,
+                               data : {
+                                       filename : testid,
+                                       filecontent : contents
+                               },
+                               error : function(x, t, e) {
+                                       print_error_log("doTest", e);
+                               }
+                       });
+               }
+               return contents;
+       }
+       // merge code from application.js
+       function init_test() {
+               var session_id = Math.round(Math.random() * 10000);
+               init_message_frame();
+               save_session_id(session_id);
+               sync_session_id(session_id);
+               start_test();
+       }
+
+       function init_message_frame() {
+               messageFrame = document.getElementById('messageframe');
+               messageWin = messageFrame.contentWindow;
+               messageNode = messageWin.document.getElementById('message_div');
+               if (null == messageNode) {
+                       messageNode = messageWin.document.createElement("div");
+                       messageNode.id = "message_div";
+                       messageWin.document.body.appendChild(messageNode);
+                       messageNode.innerHTML = "Message Area";
+               }
+               return messageNode;
+       }
+
+       function print_error_log(command, message) {
+               messageFrame = document.getElementById('messageframe');
+               messageFrame.height = 160 + "px";
+               messageNode = init_message_frame();
+               messageNode.innerHTML = "Message Area<div id=\"log_title\"></div><br/>Command: <div id=\"log_command\">"
+                               + command
+                               + "</div><br/>Message: <div id=\"log_message\">"
+                               + message + "</div>";
+       }
+
+       function save_session_id(session_id) {
+               statusFrame = document.getElementById('statusframe');
+               statusFrame.height = 270 + "px";
+               statusWin = statusFrame.contentWindow;
+               sessionIdNode = statusWin.document.getElementById('session_id_div');
+               if (null == sessionIdNode) {
+                       sessionIdNode = statusWin.document.createElement("div");
+                       sessionIdNode.id = "session_id_div";
+                       statusWin.document.body.appendChild(sessionIdNode);
+                       sessionIdNode.innerHTML = "Session ID: <div id=\"session_id\">"
+                                       + session_id
+                                       + "</div><br/><div id=\"execution_progress\"></div><br/>";
+               }
+       }
+
+       function sync_session_id(session_id) {
+               var server_url = server + "/init_session_id";
+               server_url += "?session_id=" + session_id;
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "GET",
+                       error : function(x, t, e) {
+                               print_error_log("sync_session_id", e);
+                       }
+               });
+       }
+
+       function get_session_id() {
+               statusFrame = document.getElementById('statusframe');
+               statusWin = statusFrame.contentWindow;
+               sessionIdNode = statusWin.document.getElementById('session_id');
+               return sessionIdNode.innerHTML;
+       }
+
+       function close_window(){
+               //for tct-webgl-nonw3c-tests run by tizen-tool emulator html,window.parent.close() no function,must call window.close, why?
+               if(window.parent != window.self){
+                       window.open('','_self','');
+                       window.close();
+                       window.parent.onbeforeunload = null;
+                       window.parent.close();
+               }
+               else{
+                       window.open('','_self','');
+                       window.close();
+               }
+       }
+       function start_test() {
+               try {
+                       var task = ask_test_task();
+               } catch (e) {
+                       print_error_log("start_test_ask_test_task", e);
+               }
+               try {
+                       if (task == 1) {
+                               print_error_log("start_test_execute_test_task",
+                                               "Invalid session");
+                       } else if (task == -1) {
+                               print_error_log("restart client process activated",
+                                               "this window will be closed in 2sec");
+                               close_window();
+                               //setTimeout("window.open('','_self','');window.close()", 2000);
+                       } else if (task == null) {
+                               print_error_log(
+                                               "get auto case failed, client will be restarted later",
+                                               "this window will be closed in 2sec");
+                               close_window();
+                               //setTimeout("window.open('','_self','');window.close()", 2000);
+                       } else if (task != 0) {
+                               var progress = check_execution_progress();
+                               execute_test_task(task, progress);
+                       } else {
+                               execute_manual_test();
+                       }
+               } catch (e) {
+                       print_error_log("start_test_execute_test_task", e);
+               }
+       }
+
+       function ask_generate_xml() {
+               var server_url = server + "/generate_xml";
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "GET",
+                       error : function(x, t, e) {
+                               print_error_log("ask_generate_xml", e);
+                       }
+               });
+               close_window();
+               //setTimeout("window.open('','_self','');window.close()", winCloseTimeout);
+       }
+
+       function extract_all_manual() {
+               var server_url = server + "/manual_cases";
+               var tasks = null;
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "GET",
+                       dataType : "text",
+                       success : function(txt) {
+                               task = $.parseJSON(txt);
+                               if (0 == task.none) {
+                                       task = null;
+                               }
+                       },
+                       error : function(x, t, e) {
+                               print_error_log("extract_all_manual", e);
+                       }
+               });
+               return task;
+       }
+
+       function ask_test_task() {
+               var server_url = server + "/auto_test_task";
+               var task = null;
+               session_id = get_session_id();
+               server_url += "?session_id=" + session_id;
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "GET",
+                       dataType : "text",
+                       success : function(txt) {
+                               task = $.parseJSON(txt);
+                               if (task.none == 0) {
+                                       task = 0;
+                               }
+                               if (task.invalid == 0) {
+                                       task = 1;
+                               }
+                               if (task.stop == 0) {
+                                       task = -1;
+                               }
+                       },
+                       error : function(x, t, e) {
+                               print_error_log("ask_test_task", e);
+                       }
+               });
+               return task;
+       }
+
+       function check_execution_progress() {
+               var server_url = server + "/check_execution_progress";
+               var progress = null;
+               session_id = get_session_id();
+               server_url += "?session_id=" + session_id;
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "GET",
+                       dataType : "text",
+                       success : function(txt) {
+                               progress = $.parseJSON(txt);
+                       },
+                       error : function(x, t, e) {
+                               print_error_log("check_execution_progress", e);
+                       }
+               });
+               return progress;
+       }
+
+       function ask_next_step() {
+               var server_url = server + "/ask_next_step";
+               var next_step = null;
+               session_id = get_session_id();
+               server_url += "?session_id=" + session_id;
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "GET",
+                       dataType : "text",
+                       success : function(txt) {
+                               next_step = $.parseJSON(txt);
+                       },
+                       error : function(x, t, e) {
+                               print_error_log("ask_next_step", e);
+                       }
+               });
+               return next_step;
+       }
+
+       function init_status_frame() {
+               statusFrame = document.getElementById('statusframe');
+               statusWin = statusFrame.contentWindow;
+               statusNode = statusWin.document.getElementById('status_div');
+               if (null == statusNode) {
+                       statusNode = statusWin.document.createElement("div");
+                       statusNode.id = "status_div";
+                       statusWin.document.body.appendChild(statusNode);
+               }
+               return statusNode;
+       }
+
+       function execute_test_task(json_task, json_progress) {
+               try {
+                       oTestFrame = document.getElementById('testframe');
+                       statusNode = init_status_frame();
+                       // update execution progress
+                       statusFrame = document.getElementById('statusframe');
+                       statusWin = statusFrame.contentWindow;
+                       progressNode = statusWin.document
+                                       .getElementById('execution_progress');
+                       progressNode.innerHTML = "Total:" + json_progress.total
+                                       + ", Current:" + json_progress.current;
+                       // update case info
+                       statusNode.innerHTML = "Test Purpose:<div id=\"test_purpose_div\">"
+                                       + json_task.purpose
+                                       + "</div><br/>Test Entry:<div id=\"test_entry_div\">"
+                                       + json_task.entry
+                                       + "</div><br/>Last Test Result:<div id=\"test_result_div\">"
+                                       + json_progress.last_test_result + "</div>";
+                       current_page_uri = json_task.entry;
+                       case_id_str = json_task.case_id;
+                       var index = current_page_uri.indexOf("?");
+                       var test_page = "";
+                       if (index >= 0)
+                               test_page = current_page_uri.substring(0, index);
+                       else
+                               test_page = current_page_uri;
+                       // Get how many times to check BLOCK result
+                       if (json_task.onload_delay) {
+                               calculate_block_check_time(parseInt(json_task.onload_delay) * 1000);
+                       } else {
+                               print_error_log("execute_test_task",
+                                               "can't get attribute onload_delay from task: "
+                                                               + json_task.purpose);
+                       }
+                       // Don't load the same test page again
+                       if (test_page == last_test_page) {
+                               print_error_log("test page url is the same as the last one",
+                                               test_page);
+                               extract_case_result('yes', 0);
+                               return;
+                       }
+                       if ((current_page_uri.indexOf("2DTransforms") != -1)
+                                       || (current_page_uri.indexOf("3DTransforms") != -1)) {
+                               oTestFrame.height = 500000 + "px";
+                       } else {
+                               oTestFrame.height = 2500 + "px";
+                       }
+                       oTestFrame.src = current_page_uri;
+                       last_test_page = test_page;
+                       if (oTestFrame.attachEvent) {
+                               oTestFrame.attachEvent("onload", function() {
+                                       extract_case_result('yes', 0);
+                               });
+                       } else {
+                               oTestFrame.onload = function() {
+                                       extract_case_result('yes', 0);
+                               };
+                       }
+               } catch (e) {
+                       print_error_log("execute_test_task", e);
+               }
+       }
+
+       function calculate_block_check_time(onload_delay) {
+               blockCheckTime = Math.ceil((Math.sqrt(onload_delay * 4 + 25) - 5) / 10);
+       }
+
+       function check_block_result_again(time) {
+               sleep_time = time * 50;
+               if (time == blockCheckTime) {
+                       setTimeout("extract_case_result('no', " + time + ")", sleep_time);
+                       return;
+               }
+               setTimeout("extract_case_result('yes', " + time + ")", sleep_time);
+       }
+
+       function extract_case_result(need_check_block, sleep_time) {
+               oTestFrame = document.getElementById('testframe');
+               var oTestWin = oTestFrame.contentWindow;
+               var oTestDoc = oTestFrame.contentWindow.document;
+               var result = "BLOCK";
+               var case_msg = "";
+
+               oPass = $(oTestDoc).find(".pass");
+               oFail = $(oTestDoc).find(".fail");
+               case_uri = current_page_uri;
+
+               total_num = getTestPageParam(case_uri, "total_num");
+               locator_key = getTestPageParam(case_uri, "locator_key");
+               value = getTestPageParam(case_uri, "value");
+
+               if (total_num != "" && locator_key != "" && value != "") {
+                       if (locator_key == "id") {
+                               var results;
+                               var passes;
+                               var fails;
+
+                               var oRes = $(oTestDoc).find("table#results");
+                               if (oRes) {
+                                       results = $(oRes).find('tr');
+                                       passes = $(oRes).find('tr.pass');
+                                       fails = $(oRes).find('tr.fail');
+                               }
+                               if (passes.length + fails.length == total_num) {
+                                       var i = 1;
+                                       for (i = 1; i <= total_num; i++) {
+                                               if (i.toString() != value) {
+                                                       continue;
+                                               }
+                                               var rest = results[i].childNodes[0].textContent;
+                                               var desc = results[i].childNodes[1].textContent;
+                                               case_msg = results[i].childNodes[2].textContent;                                        
+                                               if (rest && rest.toUpperCase() == "PASS") {
+                                                       result = "PASS";
+                                               } else {
+                                                       result = "FAIL";
+                                               }
+                                               break;
+                                       }
+                               } else {
+                                       var i;
+                                       for (i = 0; i < fails.length; i++) {
+                                               var desccell = fails[i].childNodes[1];
+                                               if (desccell) {
+                                                       case_msg += "\n###Test Start###\n" + desccell.textContent
+                                                                       + "\n###Test End###\n";
+                                               }
+                                               var msgcell = fails[i].childNodes[2];
+                                               if (msgcell) {
+                                                       case_msg += "###Error1 Start###\n"
+                                                                       + msgcell.textContent + "\n###Error1 End###";
+                                               }
+                                       }
+                                       result = "FAIL";
+                               }
+                       }
+               } else if (oPass.length > 0 && oFail.length == 0) {
+                       if (oTestWin.resultdiv) {
+                               case_msg = oTestWin.resultdiv.innerHTML;
+                       }
+                       result = "PASS";
+               } else if (oFail.length > 0) {
+                       var oRes = $($(oTestDoc).find("table#results")).get(0);
+                       // Get error log
+                       if (oRes) {
+                               var fails = $(oRes).find('tr.fail');
+                               var i;
+                               for (i = 0; i < fails.length; i++) {
+                                       var desccell = fails[i].childNodes[1];
+                                       if (desccell) {
+                                               case_msg += "\n###Test Start###\n" + desccell.textContent
+                                                               + "\n###Test End###\n";
+                                       }
+                                       var msgcell = fails[i].childNodes[2];
+                                       if (msgcell) {
+                                               case_msg += "###Error2 Start###\n" + msgcell.textContent
+                                                               + "\n###Error2 End###";                                         
+                                       }
+                               }
+                       }
+                       result = "FAIL";
+               } else {
+                       if (need_check_block == 'yes') {
+                               next_sleep_time = sleep_time + 1;
+                               check_block_result_again(next_sleep_time);
+                               return;
+                       }
+               }
+               var next_step = ask_next_step();
+               commit_test_result(result, case_msg);
+               if (next_step.step == "continue") {
+                       start_test();
+               } else {
+                       print_error_log("memory collection process activated",
+                                       "this window will be closed in 2sec");
+                       close_window();
+                       //setTimeout("window.open('','_self','');window.close()", 2000);
+               }
+       }
+
+       var manual_test_step = function() {
+               this.order = 0;
+               this.desc = "";
+               this.expected = "";
+       };
+
+       var manual_cases = function() {
+               this.casesid = "";
+               this.index = 0;
+               this.result = "";
+               this.entry = "";
+               this.pre_con = "";
+               this.post_con = "";
+               this.purpose = "";
+               this.steps = new Array();
+       };
+
+       function execute_manual_test() {
+               manualcaseslist = new Array();
+               tasks = extract_all_manual();
+               if (tasks != null){
+                       for ( var i = 0; i < tasks.length; i++) {
+                               if (parent.document.getElementById("statusframe"))
+                                       parent.document.getElementById("statusframe").height = 385 + "px";
+                               manualcaseslist[i] = new manual_cases();
+                               manualcaseslist[i].casesid = tasks[i].case_id;
+                               manualcaseslist[i].index = i;
+                               manualcaseslist[i].entry = tasks[i].entry;
+                               manualcaseslist[i].pre_con = tasks[i].pre_condition;
+                               manualcaseslist[i].post_con = tasks[i].post_condition;
+                               manualcaseslist[i].purpose = tasks[i].purpose;
+
+                               if (tasks[i].steps != undefined) {
+                                       for ( var j = 0; j < tasks[i].steps.length; j++) {
+                                               this_manual_step = new manual_test_step();
+                                               this_manual_step.order = parseInt(tasks[i].steps[j].order);
+                                               this_manual_step.desc = tasks[i].steps[j].step_desc;
+                                               this_manual_step.expected = tasks[i].steps[j].expected;
+                                               manualcaseslist[i].steps[this_manual_step.order - 1] = this_manual_step;
+                                       }
+                               }
+                       }
+                       if (tasks.length > 0) {
+                               statusFrame.src = "./manual_harness.html";
+                               $($($('#main')).get(0)).attr('rows', "100,*");
+                       }
+                       oTestFrame = document.getElementById('testframe');
+                       oTestFrame.src = '';
+               }
+               else {
+                       // No manual cases, generate the result.
+                       ask_generate_xml();
+               }
+       }
+
+       function commit_test_result(result, msg) {
+               statusFrame = document.getElementById('statusframe');
+               purposeNode = statusWin.document.getElementById('test_purpose_div');
+               session_id = get_session_id();
+               var purpose_str = purposeNode.innerHTML
+               var server_url = server + "/commit_result";
+               $.ajax({
+                       async : false,
+                       url : server_url,
+                       type : "POST",
+                       data : {
+                               "case_id" : case_id_str,
+                               "purpose" : purpose_str,
+                               "result" : result,
+                               "msg" : "[Message]" + msg,
+                               "session_id" : session_id
+                       },
+                       dataType : "json",
+                       beforeSend : function(x) {
+                               if (x && x.overrideMimeType) {
+                                       x.overrideMimeType("application/j-son;charset=UTF-8");
+                               }
+                       },
+                       error : function(x, t, e) {
+                               print_error_log("commit_test_result", e);
+                       }
+               });
+       }
+</script>
+</head>
+<body id="main" onload='precheck_init()'>
+       <iframe frameborder="1" height="30px" width="100%" id="messageframe"></iframe>
+       <iframe frameborder="1" height="30px" width="100%" id="statusframe"></iframe>
+       <iframe frameborder="1" height="2500px" width="100%" id="testframe" allowFullScreen="true" mozAllowFullScreen="true" webkitAllowFullscreen="true"></iframe>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/testkit/web/jquery.js b/tct-manual-w3c-tests/testkit/web/jquery.js
new file mode 100644 (file)
index 0000000..eda55db
--- /dev/null
@@ -0,0 +1,9300 @@
+/*!
+ * jQuery JavaScript Library v1.7
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Thu Nov 3 16:18:21 2011 -0400
+ */
+(function( window, undefined ) {
+
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document,
+       navigator = window.navigator,
+       location = window.location;
+var jQuery = (function() {
+
+// Define a local copy of jQuery
+var jQuery = function( selector, context ) {
+               // The jQuery object is actually just the init constructor 'enhanced'
+               return new jQuery.fn.init( selector, context, rootjQuery );
+       },
+
+       // Map over jQuery in case of overwrite
+       _jQuery = window.jQuery,
+
+       // Map over the $ in case of overwrite
+       _$ = window.$,
+
+       // A central reference to the root jQuery(document)
+       rootjQuery,
+
+       // A simple way to check for HTML strings or ID strings
+       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
+       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
+
+       // Check if a string has a non-whitespace character in it
+       rnotwhite = /\S/,
+
+       // Used for trimming whitespace
+       trimLeft = /^\s+/,
+       trimRight = /\s+$/,
+
+       // Check for digits
+       rdigit = /\d/,
+
+       // Match a standalone tag
+       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+       // JSON RegExp
+       rvalidchars = /^[\],:{}\s]*$/,
+       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
+       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
+
+       // Useragent RegExp
+       rwebkit = /(webkit)[ \/]([\w.]+)/,
+       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
+       rmsie = /(msie) ([\w.]+)/,
+       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
+
+       // Matches dashed string for camelizing
+       rdashAlpha = /-([a-z]|[0-9])/ig,
+       rmsPrefix = /^-ms-/,
+
+       // Used by jQuery.camelCase as callback to replace()
+       fcamelCase = function( all, letter ) {
+               return ( letter + "" ).toUpperCase();
+       },
+
+       // Keep a UserAgent string for use with jQuery.browser
+       userAgent = navigator.userAgent,
+
+       // For matching the engine and version of the browser
+       browserMatch,
+
+       // The deferred used on DOM ready
+       readyList,
+
+       // The ready event handler
+       DOMContentLoaded,
+
+       // Save a reference to some core methods
+       toString = Object.prototype.toString,
+       hasOwn = Object.prototype.hasOwnProperty,
+       push = Array.prototype.push,
+       slice = Array.prototype.slice,
+       trim = String.prototype.trim,
+       indexOf = Array.prototype.indexOf,
+
+       // [[Class]] -> type pairs
+       class2type = {};
+
+jQuery.fn = jQuery.prototype = {
+       constructor: jQuery,
+       init: function( selector, context, rootjQuery ) {
+               var match, elem, ret, doc;
+
+               // Handle $(""), $(null), or $(undefined)
+               if ( !selector ) {
+                       return this;
+               }
+
+               // Handle $(DOMElement)
+               if ( selector.nodeType ) {
+                       this.context = this[0] = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // The body element only exists once, optimize finding it
+               if ( selector === "body" && !context && document.body ) {
+                       this.context = document;
+                       this[0] = document.body;
+                       this.selector = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // Handle HTML strings
+               if ( typeof selector === "string" ) {
+                       // Are we dealing with HTML string or an ID?
+                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+                               // Assume that strings that start and end with <> are HTML and skip the regex check
+                               match = [ null, selector, null ];
+
+                       } else {
+                               match = quickExpr.exec( selector );
+                       }
+
+                       // Verify a match, and that no context was specified for #id
+                       if ( match && (match[1] || !context) ) {
+
+                               // HANDLE: $(html) -> $(array)
+                               if ( match[1] ) {
+                                       context = context instanceof jQuery ? context[0] : context;
+                                       doc = ( context ? context.ownerDocument || context : document );
+
+                                       // If a single string is passed in and it's a single tag
+                                       // just do a createElement and skip the rest
+                                       ret = rsingleTag.exec( selector );
+
+                                       if ( ret ) {
+                                               if ( jQuery.isPlainObject( context ) ) {
+                                                       selector = [ document.createElement( ret[1] ) ];
+                                                       jQuery.fn.attr.call( selector, context, true );
+
+                                               } else {
+                                                       selector = [ doc.createElement( ret[1] ) ];
+                                               }
+
+                                       } else {
+                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
+                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
+                                       }
+
+                                       return jQuery.merge( this, selector );
+
+                               // HANDLE: $("#id")
+                               } else {
+                                       elem = document.getElementById( match[2] );
+
+                                       // Check parentNode to catch when Blackberry 4.6 returns
+                                       // nodes that are no longer in the document #6963
+                                       if ( elem && elem.parentNode ) {
+                                               // Handle the case where IE and Opera return items
+                                               // by name instead of ID
+                                               if ( elem.id !== match[2] ) {
+                                                       return rootjQuery.find( selector );
+                                               }
+
+                                               // Otherwise, we inject the element directly into the jQuery object
+                                               this.length = 1;
+                                               this[0] = elem;
+                                       }
+
+                                       this.context = document;
+                                       this.selector = selector;
+                                       return this;
+                               }
+
+                       // HANDLE: $(expr, $(...))
+                       } else if ( !context || context.jquery ) {
+                               return ( context || rootjQuery ).find( selector );
+
+                       // HANDLE: $(expr, context)
+                       // (which is just equivalent to: $(context).find(expr)
+                       } else {
+                               return this.constructor( context ).find( selector );
+                       }
+
+               // HANDLE: $(function)
+               // Shortcut for document ready
+               } else if ( jQuery.isFunction( selector ) ) {
+                       return rootjQuery.ready( selector );
+               }
+
+               if ( selector.selector !== undefined ) {
+                       this.selector = selector.selector;
+                       this.context = selector.context;
+               }
+
+               return jQuery.makeArray( selector, this );
+       },
+
+       // Start with an empty selector
+       selector: "",
+
+       // The current version of jQuery being used
+       jquery: "1.7",
+
+       // The default length of a jQuery object is 0
+       length: 0,
+
+       // The number of elements contained in the matched element set
+       size: function() {
+               return this.length;
+       },
+
+       toArray: function() {
+               return slice.call( this, 0 );
+       },
+
+       // Get the Nth element in the matched element set OR
+       // Get the whole matched element set as a clean array
+       get: function( num ) {
+               return num == null ?
+
+                       // Return a 'clean' array
+                       this.toArray() :
+
+                       // Return just the object
+                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
+       },
+
+       // Take an array of elements and push it onto the stack
+       // (returning the new matched element set)
+       pushStack: function( elems, name, selector ) {
+               // Build a new jQuery matched element set
+               var ret = this.constructor();
+
+               if ( jQuery.isArray( elems ) ) {
+                       push.apply( ret, elems );
+
+               } else {
+                       jQuery.merge( ret, elems );
+               }
+
+               // Add the old object onto the stack (as a reference)
+               ret.prevObject = this;
+
+               ret.context = this.context;
+
+               if ( name === "find" ) {
+                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
+               } else if ( name ) {
+                       ret.selector = this.selector + "." + name + "(" + selector + ")";
+               }
+
+               // Return the newly-formed element set
+               return ret;
+       },
+
+       // Execute a callback for every element in the matched set.
+       // (You can seed the arguments with an array of args, but this is
+       // only used internally.)
+       each: function( callback, args ) {
+               return jQuery.each( this, callback, args );
+       },
+
+       ready: function( fn ) {
+               // Attach the listeners
+               jQuery.bindReady();
+
+               // Add the callback
+               readyList.add( fn );
+
+               return this;
+       },
+
+       eq: function( i ) {
+               return i === -1 ?
+                       this.slice( i ) :
+                       this.slice( i, +i + 1 );
+       },
+
+       first: function() {
+               return this.eq( 0 );
+       },
+
+       last: function() {
+               return this.eq( -1 );
+       },
+
+       slice: function() {
+               return this.pushStack( slice.apply( this, arguments ),
+                       "slice", slice.call(arguments).join(",") );
+       },
+
+       map: function( callback ) {
+               return this.pushStack( jQuery.map(this, function( elem, i ) {
+                       return callback.call( elem, i, elem );
+               }));
+       },
+
+       end: function() {
+               return this.prevObject || this.constructor(null);
+       },
+
+       // For internal use only.
+       // Behaves like an Array's method, not like a jQuery method.
+       push: push,
+       sort: [].sort,
+       splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+       var options, name, src, copy, copyIsArray, clone,
+               target = arguments[0] || {},
+               i = 1,
+               length = arguments.length,
+               deep = false;
+
+       // Handle a deep copy situation
+       if ( typeof target === "boolean" ) {
+               deep = target;
+               target = arguments[1] || {};
+               // skip the boolean and the target
+               i = 2;
+       }
+
+       // Handle case when target is a string or something (possible in deep copy)
+       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+               target = {};
+       }
+
+       // extend jQuery itself if only one argument is passed
+       if ( length === i ) {
+               target = this;
+               --i;
+       }
+
+       for ( ; i < length; i++ ) {
+               // Only deal with non-null/undefined values
+               if ( (options = arguments[ i ]) != null ) {
+                       // Extend the base object
+                       for ( name in options ) {
+                               src = target[ name ];
+                               copy = options[ name ];
+
+                               // Prevent never-ending loop
+                               if ( target === copy ) {
+                                       continue;
+                               }
+
+                               // Recurse if we're merging plain objects or arrays
+                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+                                       if ( copyIsArray ) {
+                                               copyIsArray = false;
+                                               clone = src && jQuery.isArray(src) ? src : [];
+
+                                       } else {
+                                               clone = src && jQuery.isPlainObject(src) ? src : {};
+                                       }
+
+                                       // Never move original objects, clone them
+                                       target[ name ] = jQuery.extend( deep, clone, copy );
+
+                               // Don't bring in undefined values
+                               } else if ( copy !== undefined ) {
+                                       target[ name ] = copy;
+                               }
+                       }
+               }
+       }
+
+       // Return the modified object
+       return target;
+};
+
+jQuery.extend({
+       noConflict: function( deep ) {
+               if ( window.$ === jQuery ) {
+                       window.$ = _$;
+               }
+
+               if ( deep && window.jQuery === jQuery ) {
+                       window.jQuery = _jQuery;
+               }
+
+               return jQuery;
+       },
+
+       // Is the DOM ready to be used? Set to true once it occurs.
+       isReady: false,
+
+       // A counter to track how many items to wait for before
+       // the ready event fires. See #6781
+       readyWait: 1,
+
+       // Hold (or release) the ready event
+       holdReady: function( hold ) {
+               if ( hold ) {
+                       jQuery.readyWait++;
+               } else {
+                       jQuery.ready( true );
+               }
+       },
+
+       // Handle when the DOM is ready
+       ready: function( wait ) {
+               // Either a released hold or an DOMready/load event and not yet ready
+               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
+                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+                       if ( !document.body ) {
+                               return setTimeout( jQuery.ready, 1 );
+                       }
+
+                       // Remember that the DOM is ready
+                       jQuery.isReady = true;
+
+                       // If a normal DOM Ready event fired, decrement, and wait if need be
+                       if ( wait !== true && --jQuery.readyWait > 0 ) {
+                               return;
+                       }
+
+                       // If there are functions bound, to execute
+                       readyList.fireWith( document, [ jQuery ] );
+
+                       // Trigger any bound ready events
+                       if ( jQuery.fn.trigger ) {
+                               jQuery( document ).trigger( "ready" ).unbind( "ready" );
+                       }
+               }
+       },
+
+       bindReady: function() {
+               if ( readyList ) {
+                       return;
+               }
+
+               readyList = jQuery.Callbacks( "once memory" );
+
+               // Catch cases where $(document).ready() is called after the
+               // browser event has already occurred.
+               if ( document.readyState === "complete" ) {
+                       // Handle it asynchronously to allow scripts the opportunity to delay ready
+                       return setTimeout( jQuery.ready, 1 );
+               }
+
+               // Mozilla, Opera and webkit nightlies currently support this event
+               if ( document.addEventListener ) {
+                       // Use the handy event callback
+                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+
+                       // A fallback to window.onload, that will always work
+                       window.addEventListener( "load", jQuery.ready, false );
+
+               // If IE event model is used
+               } else if ( document.attachEvent ) {
+                       // ensure firing before onload,
+                       // maybe late but safe also for iframes
+                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
+
+                       // A fallback to window.onload, that will always work
+                       window.attachEvent( "onload", jQuery.ready );
+
+                       // If IE and not a frame
+                       // continually check to see if the document is ready
+                       var toplevel = false;
+
+                       try {
+                               toplevel = window.frameElement == null;
+                       } catch(e) {}
+
+                       if ( document.documentElement.doScroll && toplevel ) {
+                               doScrollCheck();
+                       }
+               }
+       },
+
+       // See test/unit/core.js for details concerning isFunction.
+       // Since version 1.3, DOM methods and functions like alert
+       // aren't supported. They return false on IE (#2968).
+       isFunction: function( obj ) {
+               return jQuery.type(obj) === "function";
+       },
+
+       isArray: Array.isArray || function( obj ) {
+               return jQuery.type(obj) === "array";
+       },
+
+       // A crude way of determining if an object is a window
+       isWindow: function( obj ) {
+               return obj && typeof obj === "object" && "setInterval" in obj;
+       },
+
+       isNumeric: function( obj ) {
+               return obj != null && rdigit.test( obj ) && !isNaN( obj );
+       },
+
+       type: function( obj ) {
+               return obj == null ?
+                       String( obj ) :
+                       class2type[ toString.call(obj) ] || "object";
+       },
+
+       isPlainObject: function( obj ) {
+               // Must be an Object.
+               // Because of IE, we also have to check the presence of the constructor property.
+               // Make sure that DOM nodes and window objects don't pass through, as well
+               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+                       return false;
+               }
+
+               try {
+                       // Not own constructor property must be Object
+                       if ( obj.constructor &&
+                               !hasOwn.call(obj, "constructor") &&
+                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
+                               return false;
+                       }
+               } catch ( e ) {
+                       // IE8,9 Will throw exceptions on certain host objects #9897
+                       return false;
+               }
+
+               // Own properties are enumerated firstly, so to speed up,
+               // if last one is own, then all properties are own.
+
+               var key;
+               for ( key in obj ) {}
+
+               return key === undefined || hasOwn.call( obj, key );
+       },
+
+       isEmptyObject: function( obj ) {
+               for ( var name in obj ) {
+                       return false;
+               }
+               return true;
+       },
+
+       error: function( msg ) {
+               throw msg;
+       },
+
+       parseJSON: function( data ) {
+               if ( typeof data !== "string" || !data ) {
+                       return null;
+               }
+
+               // Make sure leading/trailing whitespace is removed (IE can't handle it)
+               data = jQuery.trim( data );
+
+               // Attempt to parse using the native JSON parser first
+               if ( window.JSON && window.JSON.parse ) {
+                       return window.JSON.parse( data );
+               }
+
+               // Make sure the incoming data is actual JSON
+               // Logic borrowed from http://json.org/json2.js
+               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
+                       .replace( rvalidtokens, "]" )
+                       .replace( rvalidbraces, "")) ) {
+
+                       return ( new Function( "return " + data ) )();
+
+               }
+               jQuery.error( "Invalid JSON: " + data );
+       },
+
+       // Cross-browser xml parsing
+       parseXML: function( data ) {
+               var xml, tmp;
+               try {
+                       if ( window.DOMParser ) { // Standard
+                               tmp = new DOMParser();
+                               xml = tmp.parseFromString( data , "text/xml" );
+                       } else { // IE
+                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
+                               xml.async = "false";
+                               xml.loadXML( data );
+                       }
+               } catch( e ) {
+                       xml = undefined;
+               }
+               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
+                       jQuery.error( "Invalid XML: " + data );
+               }
+               return xml;
+       },
+
+       noop: function() {},
+
+       // Evaluates a script in a global context
+       // Workarounds based on findings by Jim Driscoll
+       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
+       globalEval: function( data ) {
+               if ( data && rnotwhite.test( data ) ) {
+                       // We use execScript on Internet Explorer
+                       // We use an anonymous function so that context is window
+                       // rather than jQuery in Firefox
+                       ( window.execScript || function( data ) {
+                               window[ "eval" ].call( window, data );
+                       } )( data );
+               }
+       },
+
+       // Convert dashed to camelCase; used by the css and data modules
+       // Microsoft forgot to hump their vendor prefix (#9572)
+       camelCase: function( string ) {
+               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+       },
+
+       nodeName: function( elem, name ) {
+               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+       },
+
+       // args is for internal usage only
+       each: function( object, callback, args ) {
+               var name, i = 0,
+                       length = object.length,
+                       isObj = length === undefined || jQuery.isFunction( object );
+
+               if ( args ) {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.apply( object[ name ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.apply( object[ i++ ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+
+               // A special, fast, case for the most common use of each
+               } else {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               return object;
+       },
+
+       // Use native String.trim function wherever possible
+       trim: trim ?
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               trim.call( text );
+               } :
+
+               // Otherwise use our own trimming functionality
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
+               },
+
+       // results is for internal usage only
+       makeArray: function( array, results ) {
+               var ret = results || [];
+
+               if ( array != null ) {
+                       // The window, strings (and functions) also have 'length'
+                       // The extra typeof function check is to prevent crashes
+                       // in Safari 2 (See: #3039)
+                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
+                       var type = jQuery.type( array );
+
+                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
+                               push.call( ret, array );
+                       } else {
+                               jQuery.merge( ret, array );
+                       }
+               }
+
+               return ret;
+       },
+
+       inArray: function( elem, array, i ) {
+               var len;
+
+               if ( array ) {
+                       if ( indexOf ) {
+                               return indexOf.call( array, elem, i );
+                       }
+
+                       len = array.length;
+                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
+
+                       for ( ; i < len; i++ ) {
+                               // Skip accessing in sparse arrays
+                               if ( i in array && array[ i ] === elem ) {
+                                       return i;
+                               }
+                       }
+               }
+
+               return -1;
+       },
+
+       merge: function( first, second ) {
+               var i = first.length,
+                       j = 0;
+
+               if ( typeof second.length === "number" ) {
+                       for ( var l = second.length; j < l; j++ ) {
+                               first[ i++ ] = second[ j ];
+                       }
+
+               } else {
+                       while ( second[j] !== undefined ) {
+                               first[ i++ ] = second[ j++ ];
+                       }
+               }
+
+               first.length = i;
+
+               return first;
+       },
+
+       grep: function( elems, callback, inv ) {
+               var ret = [], retVal;
+               inv = !!inv;
+
+               // Go through the array, only saving the items
+               // that pass the validator function
+               for ( var i = 0, length = elems.length; i < length; i++ ) {
+                       retVal = !!callback( elems[ i ], i );
+                       if ( inv !== retVal ) {
+                               ret.push( elems[ i ] );
+                       }
+               }
+
+               return ret;
+       },
+
+       // arg is for internal usage only
+       map: function( elems, callback, arg ) {
+               var value, key, ret = [],
+                       i = 0,
+                       length = elems.length,
+                       // jquery objects are treated as arrays
+                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
+
+               // Go through the array, translating each of the items to their
+               if ( isArray ) {
+                       for ( ; i < length; i++ ) {
+                               value = callback( elems[ i ], i, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+
+               // Go through every key on the object,
+               } else {
+                       for ( key in elems ) {
+                               value = callback( elems[ key ], key, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+               }
+
+               // Flatten any nested arrays
+               return ret.concat.apply( [], ret );
+       },
+
+       // A global GUID counter for objects
+       guid: 1,
+
+       // Bind a function to a context, optionally partially applying any
+       // arguments.
+       proxy: function( fn, context ) {
+               if ( typeof context === "string" ) {
+                       var tmp = fn[ context ];
+                       context = fn;
+                       fn = tmp;
+               }
+
+               // Quick check to determine if target is callable, in the spec
+               // this throws a TypeError, but we will just return undefined.
+               if ( !jQuery.isFunction( fn ) ) {
+                       return undefined;
+               }
+
+               // Simulated bind
+               var args = slice.call( arguments, 2 ),
+                       proxy = function() {
+                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
+                       };
+
+               // Set the guid of unique handler to the same of original handler, so it can be removed
+               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+
+               return proxy;
+       },
+
+       // Mutifunctional method to get and set values to a collection
+       // The value/s can optionally be executed if it's a function
+       access: function( elems, key, value, exec, fn, pass ) {
+               var length = elems.length;
+
+               // Setting many attributes
+               if ( typeof key === "object" ) {
+                       for ( var k in key ) {
+                               jQuery.access( elems, k, key[k], exec, fn, value );
+                       }
+                       return elems;
+               }
+
+               // Setting one attribute
+               if ( value !== undefined ) {
+                       // Optionally, function values get executed if exec is true
+                       exec = !pass && exec && jQuery.isFunction(value);
+
+                       for ( var i = 0; i < length; i++ ) {
+                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+                       }
+
+                       return elems;
+               }
+
+               // Getting an attribute
+               return length ? fn( elems[0], key ) : undefined;
+       },
+
+       now: function() {
+               return ( new Date() ).getTime();
+       },
+
+       // Use of jQuery.browser is frowned upon.
+       // More details: http://docs.jquery.com/Utilities/jQuery.browser
+       uaMatch: function( ua ) {
+               ua = ua.toLowerCase();
+
+               var match = rwebkit.exec( ua ) ||
+                       ropera.exec( ua ) ||
+                       rmsie.exec( ua ) ||
+                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
+                       [];
+
+               return { browser: match[1] || "", version: match[2] || "0" };
+       },
+
+       sub: function() {
+               function jQuerySub( selector, context ) {
+                       return new jQuerySub.fn.init( selector, context );
+               }
+               jQuery.extend( true, jQuerySub, this );
+               jQuerySub.superclass = this;
+               jQuerySub.fn = jQuerySub.prototype = this();
+               jQuerySub.fn.constructor = jQuerySub;
+               jQuerySub.sub = this.sub;
+               jQuerySub.fn.init = function init( selector, context ) {
+                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
+                               context = jQuerySub( context );
+                       }
+
+                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
+               };
+               jQuerySub.fn.init.prototype = jQuerySub.fn;
+               var rootjQuerySub = jQuerySub(document);
+               return jQuerySub;
+       },
+
+       browser: {}
+});
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
+       class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+       jQuery.browser[ browserMatch.browser ] = true;
+       jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+       jQuery.browser.safari = true;
+}
+
+// IE doesn't match non-breaking spaces with \s
+if ( rnotwhite.test( "\xA0" ) ) {
+       trimLeft = /^[\s\xA0]+/;
+       trimRight = /[\s\xA0]+$/;
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+       DOMContentLoaded = function() {
+               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+               jQuery.ready();
+       };
+
+} else if ( document.attachEvent ) {
+       DOMContentLoaded = function() {
+               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+               if ( document.readyState === "complete" ) {
+                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
+                       jQuery.ready();
+               }
+       };
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+       if ( jQuery.isReady ) {
+               return;
+       }
+
+       try {
+               // If IE is used, use the trick by Diego Perini
+               // http://javascript.nwbox.com/IEContentLoaded/
+               document.documentElement.doScroll("left");
+       } catch(e) {
+               setTimeout( doScrollCheck, 1 );
+               return;
+       }
+
+       // and execute any waiting functions
+       jQuery.ready();
+}
+
+// Expose jQuery as an AMD module, but only for AMD loaders that
+// understand the issues with loading multiple versions of jQuery
+// in a page that all might call define(). The loader will indicate
+// they have special allowances for multiple jQuery versions by
+// specifying define.amd.jQuery = true. Register as a named module,
+// since jQuery can be concatenated with other files that may use define,
+// but not use a proper concatenation script that understands anonymous
+// AMD modules. A named AMD is safest and most robust way to register.
+// Lowercase jquery is used because AMD module names are derived from
+// file names, and jQuery is normally delivered in a lowercase file name.
+if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
+       define( "jquery", [], function () { return jQuery; } );
+}
+
+return jQuery;
+
+})();
+
+
+// String to Object flags format cache
+var flagsCache = {};
+
+// Convert String-formatted flags into Object-formatted ones and store in cache
+function createFlags( flags ) {
+       var object = flagsCache[ flags ] = {},
+               i, length;
+       flags = flags.split( /\s+/ );
+       for ( i = 0, length = flags.length; i < length; i++ ) {
+               object[ flags[i] ] = true;
+       }
+       return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ *     flags:  an optional list of space-separated flags that will change how
+ *                     the callback list behaves
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible flags:
+ *
+ *     once:                   will ensure the callback list can only be fired once (like a Deferred)
+ *
+ *     memory:                 will keep track of previous values and will call any callback added
+ *                                     after the list has been fired right away with the latest "memorized"
+ *                                     values (like a Deferred)
+ *
+ *     unique:                 will ensure a callback can only be added once (no duplicate in the list)
+ *
+ *     stopOnFalse:    interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( flags ) {
+
+       // Convert flags from String-formatted to Object-formatted
+       // (we check in cache first)
+       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
+
+       var // Actual callback list
+               list = [],
+               // Stack of fire calls for repeatable lists
+               stack = [],
+               // Last fire value (for non-forgettable lists)
+               memory,
+               // Flag to know if list is currently firing
+               firing,
+               // First callback to fire (used internally by add and fireWith)
+               firingStart,
+               // End of the loop when firing
+               firingLength,
+               // Index of currently firing callback (modified by remove if needed)
+               firingIndex,
+               // Add one or several callbacks to the list
+               add = function( args ) {
+                       var i,
+                               length,
+                               elem,
+                               type,
+                               actual;
+                       for ( i = 0, length = args.length; i < length; i++ ) {
+                               elem = args[ i ];
+                               type = jQuery.type( elem );
+                               if ( type === "array" ) {
+                                       // Inspect recursively
+                                       add( elem );
+                               } else if ( type === "function" ) {
+                                       // Add if not in unique mode and callback is not in
+                                       if ( !flags.unique || !self.has( elem ) ) {
+                                               list.push( elem );
+                                       }
+                               }
+                       }
+               },
+               // Fire callbacks
+               fire = function( context, args ) {
+                       args = args || [];
+                       memory = !flags.memory || [ context, args ];
+                       firing = true;
+                       firingIndex = firingStart || 0;
+                       firingStart = 0;
+                       firingLength = list.length;
+                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {
+                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
+                                       memory = true; // Mark as halted
+                                       break;
+                               }
+                       }
+                       firing = false;
+                       if ( list ) {
+                               if ( !flags.once ) {
+                                       if ( stack && stack.length ) {
+                                               memory = stack.shift();
+                                               self.fireWith( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               } else if ( memory === true ) {
+                                       self.disable();
+                               } else {
+                                       list = [];
+                               }
+                       }
+               },
+               // Actual Callbacks object
+               self = {
+                       // Add a callback or a collection of callbacks to the list
+                       add: function() {
+                               if ( list ) {
+                                       var length = list.length;
+                                       add( arguments );
+                                       // Do we need to add the callbacks to the
+                                       // current firing batch?
+                                       if ( firing ) {
+                                               firingLength = list.length;
+                                       // With memory, if we're not firing then
+                                       // we should call right away, unless previous
+                                       // firing was halted (stopOnFalse)
+                                       } else if ( memory && memory !== true ) {
+                                               firingStart = length;
+                                               fire( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Remove a callback from the list
+                       remove: function() {
+                               if ( list ) {
+                                       var args = arguments,
+                                               argIndex = 0,
+                                               argLength = args.length;
+                                       for ( ; argIndex < argLength ; argIndex++ ) {
+                                               for ( var i = 0; i < list.length; i++ ) {
+                                                       if ( args[ argIndex ] === list[ i ] ) {
+                                                               // Handle firingIndex and firingLength
+                                                               if ( firing ) {
+                                                                       if ( i <= firingLength ) {
+                                                                               firingLength--;
+                                                                               if ( i <= firingIndex ) {
+                                                                                       firingIndex--;
+                                                                               }
+                                                                       }
+                                                               }
+                                                               // Remove the element
+                                                               list.splice( i--, 1 );
+                                                               // If we have some unicity property then
+                                                               // we only need to do this once
+                                                               if ( flags.unique ) {
+                                                                       break;
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               }
+                               return this;
+                       },
+                       // Control if a given callback is in the list
+                       has: function( fn ) {
+                               if ( list ) {
+                                       var i = 0,
+                                               length = list.length;
+                                       for ( ; i < length; i++ ) {
+                                               if ( fn === list[ i ] ) {
+                                                       return true;
+                                               }
+                                       }
+                               }
+                               return false;
+                       },
+                       // Remove all callbacks from the list
+                       empty: function() {
+                               list = [];
+                               return this;
+                       },
+                       // Have the list do nothing anymore
+                       disable: function() {
+                               list = stack = memory = undefined;
+                               return this;
+                       },
+                       // Is it disabled?
+                       disabled: function() {
+                               return !list;
+                       },
+                       // Lock the list in its current state
+                       lock: function() {
+                               stack = undefined;
+                               if ( !memory || memory === true ) {
+                                       self.disable();
+                               }
+                               return this;
+                       },
+                       // Is it locked?
+                       locked: function() {
+                               return !stack;
+                       },
+                       // Call all callbacks with the given context and arguments
+                       fireWith: function( context, args ) {
+                               if ( stack ) {
+                                       if ( firing ) {
+                                               if ( !flags.once ) {
+                                                       stack.push( [ context, args ] );
+                                               }
+                                       } else if ( !( flags.once && memory ) ) {
+                                               fire( context, args );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Call all the callbacks with the given arguments
+                       fire: function() {
+                               self.fireWith( this, arguments );
+                               return this;
+                       },
+                       // To know if the callbacks have already been called at least once
+                       fired: function() {
+                               return !!memory;
+                       }
+               };
+
+       return self;
+};
+
+
+
+
+var // Static reference to slice
+       sliceDeferred = [].slice;
+
+jQuery.extend({
+
+       Deferred: function( func ) {
+               var doneList = jQuery.Callbacks( "once memory" ),
+                       failList = jQuery.Callbacks( "once memory" ),
+                       progressList = jQuery.Callbacks( "memory" ),
+                       state = "pending",
+                       lists = {
+                               resolve: doneList,
+                               reject: failList,
+                               notify: progressList
+                       },
+                       promise = {
+                               done: doneList.add,
+                               fail: failList.add,
+                               progress: progressList.add,
+
+                               state: function() {
+                                       return state;
+                               },
+
+                               // Deprecated
+                               isResolved: doneList.fired,
+                               isRejected: failList.fired,
+
+                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
+                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
+                                       return this;
+                               },
+                               always: function() {
+                                       return deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
+                               },
+                               pipe: function( fnDone, fnFail, fnProgress ) {
+                                       return jQuery.Deferred(function( newDefer ) {
+                                               jQuery.each( {
+                                                       done: [ fnDone, "resolve" ],
+                                                       fail: [ fnFail, "reject" ],
+                                                       progress: [ fnProgress, "notify" ]
+                                               }, function( handler, data ) {
+                                                       var fn = data[ 0 ],
+                                                               action = data[ 1 ],
+                                                               returned;
+                                                       if ( jQuery.isFunction( fn ) ) {
+                                                               deferred[ handler ](function() {
+                                                                       returned = fn.apply( this, arguments );
+                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {
+                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
+                                                                       } else {
+                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
+                                                                       }
+                                                               });
+                                                       } else {
+                                                               deferred[ handler ]( newDefer[ action ] );
+                                                       }
+                                               });
+                                       }).promise();
+                               },
+                               // Get a promise for this deferred
+                               // If obj is provided, the promise aspect is added to the object
+                               promise: function( obj ) {
+                                       if ( obj == null ) {
+                                               obj = promise;
+                                       } else {
+                                               for ( var key in promise ) {
+                                                       obj[ key ] = promise[ key ];
+                                               }
+                                       }
+                                       return obj;
+                               }
+                       },
+                       deferred = promise.promise({}),
+                       key;
+
+               for ( key in lists ) {
+                       deferred[ key ] = lists[ key ].fire;
+                       deferred[ key + "With" ] = lists[ key ].fireWith;
+               }
+
+               // Handle state
+               deferred.done( function() {
+                       state = "resolved";
+               }, failList.disable, progressList.lock ).fail( function() {
+                       state = "rejected";
+               }, doneList.disable, progressList.lock );
+
+               // Call given func if any
+               if ( func ) {
+                       func.call( deferred, deferred );
+               }
+
+               // All done!
+               return deferred;
+       },
+
+       // Deferred helper
+       when: function( firstParam ) {
+               var args = sliceDeferred.call( arguments, 0 ),
+                       i = 0,
+                       length = args.length,
+                       pValues = new Array( length ),
+                       count = length,
+                       pCount = length,
+                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
+                               firstParam :
+                               jQuery.Deferred(),
+                       promise = deferred.promise();
+               function resolveFunc( i ) {
+                       return function( value ) {
+                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               if ( !( --count ) ) {
+                                       deferred.resolveWith( deferred, args );
+                               }
+                       };
+               }
+               function progressFunc( i ) {
+                       return function( value ) {
+                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               deferred.notifyWith( promise, pValues );
+                       };
+               }
+               if ( length > 1 ) {
+                       for ( ; i < length; i++ ) {
+                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
+                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
+                               } else {
+                                       --count;
+                               }
+                       }
+                       if ( !count ) {
+                               deferred.resolveWith( deferred, args );
+                       }
+               } else if ( deferred !== firstParam ) {
+                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
+               }
+               return promise;
+       }
+});
+
+
+
+
+jQuery.support = (function() {
+
+       var div = document.createElement( "div" ),
+               documentElement = document.documentElement,
+               all,
+               a,
+               select,
+               opt,
+               input,
+               marginDiv,
+               support,
+               fragment,
+               body,
+               testElementParent,
+               testElement,
+               testElementStyle,
+               tds,
+               events,
+               eventName,
+               i,
+               isSupported;
+
+       // Preliminary tests
+       div.setAttribute("className", "t");
+       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>";
+
+
+       all = div.getElementsByTagName( "*" );
+       a = div.getElementsByTagName( "a" )[ 0 ];
+
+       // Can't get basic test support
+       if ( !all || !all.length || !a ) {
+               return {};
+       }
+
+       // First batch of supports tests
+       select = document.createElement( "select" );
+       opt = select.appendChild( document.createElement("option") );
+       input = div.getElementsByTagName( "input" )[ 0 ];
+
+       support = {
+               // IE strips leading whitespace when .innerHTML is used
+               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
+
+               // Make sure that tbody elements aren't automatically inserted
+               // IE will insert them into empty tables
+               tbody: !div.getElementsByTagName( "tbody" ).length,
+
+               // Make sure that link elements get serialized correctly by innerHTML
+               // This requires a wrapper element in IE
+               htmlSerialize: !!div.getElementsByTagName( "link" ).length,
+
+               // Get the style information from getAttribute
+               // (IE uses .cssText instead)
+               style: /top/.test( a.getAttribute("style") ),
+
+               // Make sure that URLs aren't manipulated
+               // (IE normalizes it by default)
+               hrefNormalized: ( a.getAttribute( "href" ) === "/a" ),
+
+               // Make sure that element opacity exists
+               // (IE uses filter instead)
+               // Use a regex to work around a WebKit issue. See #5145
+               opacity: /^0.55/.test( a.style.opacity ),
+
+               // Verify style float existence
+               // (IE uses styleFloat instead of cssFloat)
+               cssFloat: !!a.style.cssFloat,
+
+               // Make sure unknown elements (like HTML5 elems) are handled appropriately
+               unknownElems: !!div.getElementsByTagName( "nav" ).length,
+
+               // Make sure that if no value is specified for a checkbox
+               // that it defaults to "on".
+               // (WebKit defaults to "" instead)
+               checkOn: ( input.value === "on" ),
+
+               // Make sure that a selected-by-default option has a working selected property.
+               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+               optSelected: opt.selected,
+
+               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
+               getSetAttribute: div.className !== "t",
+
+               // Tests for enctype support on a form(#6743)
+               enctype: !!document.createElement("form").enctype,
+
+               // Will be defined later
+               submitBubbles: true,
+               changeBubbles: true,
+               focusinBubbles: false,
+               deleteExpando: true,
+               noCloneEvent: true,
+               inlineBlockNeedsLayout: false,
+               shrinkWrapBlocks: false,
+               reliableMarginRight: true
+       };
+
+       // Make sure checked status is properly cloned
+       input.checked = true;
+       support.noCloneChecked = input.cloneNode( true ).checked;
+
+       // Make sure that the options inside disabled selects aren't marked as disabled
+       // (WebKit marks them as disabled)
+       select.disabled = true;
+       support.optDisabled = !opt.disabled;
+
+       // Test to see if it's possible to delete an expando from an element
+       // Fails in Internet Explorer
+       try {
+               delete div.test;
+       } catch( e ) {
+               support.deleteExpando = false;
+       }
+
+       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
+               div.attachEvent( "onclick", function() {
+                       // Cloning a node shouldn't copy over any
+                       // bound event handlers (IE does this)
+                       support.noCloneEvent = false;
+               });
+               div.cloneNode( true ).fireEvent( "onclick" );
+       }
+
+       // Check if a radio maintains its value
+       // after being appended to the DOM
+       input = document.createElement("input");
+       input.value = "t";
+       input.setAttribute("type", "radio");
+       support.radioValue = input.value === "t";
+
+       input.setAttribute("checked", "checked");
+       div.appendChild( input );
+       fragment = document.createDocumentFragment();
+       fragment.appendChild( div.lastChild );
+
+       // WebKit doesn't clone checked state correctly in fragments
+       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+       div.innerHTML = "";
+
+       // Figure out if the W3C box model works as expected
+       div.style.width = div.style.paddingLeft = "1px";
+
+       // We don't want to do body-related feature tests on frameset
+       // documents, which lack a body. So we use
+       // document.getElementsByTagName("body")[0], which is undefined in
+       // frameset documents, while document.body isn’t. (7398)
+       body = document.getElementsByTagName("body")[ 0 ];
+       // We use our own, invisible, body unless the body is already present
+       // in which case we use a div (#9239)
+       testElement = document.createElement( body ? "div" : "body" );
+       testElementStyle = {
+               visibility: "hidden",
+               width: 0,
+               height: 0,
+               border: 0,
+               margin: 0,
+               background: "none"
+       };
+       if ( body ) {
+               jQuery.extend( testElementStyle, {
+                       position: "absolute",
+                       left: "-999px",
+                       top: "-999px"
+               });
+       }
+       for ( i in testElementStyle ) {
+               testElement.style[ i ] = testElementStyle[ i ];
+       }
+       testElement.appendChild( div );
+       testElementParent = body || documentElement;
+       testElementParent.insertBefore( testElement, testElementParent.firstChild );
+
+       // Check if a disconnected checkbox will retain its checked
+       // value of true after appended to the DOM (IE6/7)
+       support.appendChecked = input.checked;
+
+       support.boxModel = div.offsetWidth === 2;
+
+       if ( "zoom" in div.style ) {
+               // Check if natively block-level elements act like inline-block
+               // elements when setting their display to 'inline' and giving
+               // them layout
+               // (IE < 8 does this)
+               div.style.display = "inline";
+               div.style.zoom = 1;
+               support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
+
+               // Check if elements with layout shrink-wrap their children
+               // (IE 6 does this)
+               div.style.display = "";
+               div.innerHTML = "<div style='width:4px;'></div>";
+               support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
+       }
+
+       div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
+       tds = div.getElementsByTagName( "td" );
+
+       // Check if table cells still have offsetWidth/Height when they are set
+       // to display:none and there are still other visible table cells in a
+       // table row; if so, offsetWidth/Height are not reliable for use when
+       // determining if an element has been hidden directly using
+       // display:none (it is still safe to use offsets if a parent element is
+       // hidden; don safety goggles and see bug #4512 for more information).
+       // (only IE 8 fails this test)
+       isSupported = ( tds[ 0 ].offsetHeight === 0 );
+
+       tds[ 0 ].style.display = "";
+       tds[ 1 ].style.display = "none";
+
+       // Check if empty table cells still have offsetWidth/Height
+       // (IE < 8 fail this test)
+       support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
+       div.innerHTML = "";
+
+       // Check if div with explicit width and no margin-right incorrectly
+       // gets computed margin-right based on width of container. For more
+       // info see bug #3333
+       // Fails in WebKit before Feb 2011 nightlies
+       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+       if ( document.defaultView && document.defaultView.getComputedStyle ) {
+               marginDiv = document.createElement( "div" );
+               marginDiv.style.width = "0";
+               marginDiv.style.marginRight = "0";
+               div.appendChild( marginDiv );
+               support.reliableMarginRight =
+                       ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
+       }
+
+       // Technique from Juriy Zaytsev
+       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
+       // We only care about the case where non-standard event systems
+       // are used, namely in IE. Short-circuiting here helps us to
+       // avoid an eval call (in setAttribute) which can cause CSP
+       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
+       if ( div.attachEvent ) {
+               for( i in {
+                       submit: 1,
+                       change: 1,
+                       focusin: 1
+               } ) {
+                       eventName = "on" + i;
+                       isSupported = ( eventName in div );
+                       if ( !isSupported ) {
+                               div.setAttribute( eventName, "return;" );
+                               isSupported = ( typeof div[ eventName ] === "function" );
+                       }
+                       support[ i + "Bubbles" ] = isSupported;
+               }
+       }
+
+       // Run fixed position tests at doc ready to avoid a crash
+       // related to the invisible body in IE8
+       jQuery(function() {
+               var container, outer, inner, table, td, offsetSupport,
+                       conMarginTop = 1,
+                       ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",
+                       vb = "visibility:hidden;border:0;",
+                       style = "style='" + ptlm + "border:5px solid #000;padding:0;'",
+                       html = "<div " + style + "><div></div></div>" +
+                                                       "<table " + style + " cellpadding='0' cellspacing='0'>" +
+                                                       "<tr><td></td></tr></table>";
+
+               // Reconstruct a container
+               body = document.getElementsByTagName("body")[0];
+               if ( !body ) {
+                       // Return for frameset docs that don't have a body
+                       // These tests cannot be done
+                       return;
+               }
+
+               container = document.createElement("div");
+               container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
+               body.insertBefore( container, body.firstChild );
+
+               // Construct a test element
+               testElement = document.createElement("div");
+               testElement.style.cssText = ptlm + vb;
+
+               testElement.innerHTML = html;
+               container.appendChild( testElement );
+               outer = testElement.firstChild;
+               inner = outer.firstChild;
+               td = outer.nextSibling.firstChild.firstChild;
+
+               offsetSupport = {
+                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
+                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
+               };
+
+               inner.style.position = "fixed";
+               inner.style.top = "20px";
+
+               // safari subtracts parent border width here which is 5px
+               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
+               inner.style.position = inner.style.top = "";
+
+               outer.style.overflow = "hidden";
+               outer.style.position = "relative";
+
+               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
+               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
+
+               body.removeChild( container );
+               testElement = container = null;
+
+               jQuery.extend( support, offsetSupport );
+       });
+
+       testElement.innerHTML = "";
+       testElementParent.removeChild( testElement );
+
+       // Null connected elements to avoid leaks in IE
+       testElement = fragment = select = opt = body = marginDiv = div = input = null;
+
+       return support;
+})();
+
+// Keep track of boxModel
+jQuery.boxModel = jQuery.support.boxModel;
+
+
+
+
+var rbrace = /^(?:\{.*\}|\[.*\])$/,
+       rmultiDash = /([A-Z])/g;
+
+jQuery.extend({
+       cache: {},
+
+       // Please use with caution
+       uuid: 0,
+
+       // Unique for each copy of jQuery on the page
+       // Non-digits removed to match rinlinejQuery
+       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
+
+       // The following elements throw uncatchable exceptions if you
+       // attempt to add expando properties to them.
+       noData: {
+               "embed": true,
+               // Ban all objects except for Flash (which handle expandos)
+               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
+               "applet": true
+       },
+
+       hasData: function( elem ) {
+               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
+               return !!elem && !isEmptyDataObject( elem );
+       },
+
+       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var privateCache, thisCache, ret,
+                       internalKey = jQuery.expando,
+                       getByName = typeof name === "string",
+
+                       // We have to handle DOM nodes and JS objects differently because IE6-7
+                       // can't GC object references properly across the DOM-JS boundary
+                       isNode = elem.nodeType,
+
+                       // Only DOM nodes need the global jQuery cache; JS object data is
+                       // attached directly to the object so GC can occur automatically
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // Only defining an ID for JS objects if its cache already exists allows
+                       // the code to shortcut on the same path as a DOM node with no cache
+                       id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando,
+                       isEvents = name === "events";
+
+               // Avoid doing any more work than we need to when trying to get data on an
+               // object that has no data at all
+               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
+                       return;
+               }
+
+               if ( !id ) {
+                       // Only DOM nodes need a new unique ID for each element since their data
+                       // ends up in the global cache
+                       if ( isNode ) {
+                               elem[ jQuery.expando ] = id = ++jQuery.uuid;
+                       } else {
+                               id = jQuery.expando;
+                       }
+               }
+
+               if ( !cache[ id ] ) {
+                       cache[ id ] = {};
+
+                       // Avoids exposing jQuery metadata on plain JS objects when the object
+                       // is serialized using JSON.stringify
+                       if ( !isNode ) {
+                               cache[ id ].toJSON = jQuery.noop;
+                       }
+               }
+
+               // An object can be passed to jQuery.data instead of a key/value pair; this gets
+               // shallow copied over onto the existing cache
+               if ( typeof name === "object" || typeof name === "function" ) {
+                       if ( pvt ) {
+                               cache[ id ] = jQuery.extend( cache[ id ], name );
+                       } else {
+                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );
+                       }
+               }
+
+               privateCache = thisCache = cache[ id ];
+
+               // jQuery data() is stored in a separate object inside the object's internal data
+               // cache in order to avoid key collisions between internal data and user-defined
+               // data.
+               if ( !pvt ) {
+                       if ( !thisCache.data ) {
+                               thisCache.data = {};
+                       }
+
+                       thisCache = thisCache.data;
+               }
+
+               if ( data !== undefined ) {
+                       thisCache[ jQuery.camelCase( name ) ] = data;
+               }
+
+               // Users should not attempt to inspect the internal events object using jQuery.data,
+               // it is undocumented and subject to change. But does anyone listen? No.
+               if ( isEvents && !thisCache[ name ] ) {
+                       return privateCache.events;
+               }
+
+               // Check for both converted-to-camel and non-converted data property names
+               // If a data property was specified
+               if ( getByName ) {
+
+                       // First Try to find as-is property data
+                       ret = thisCache[ name ];
+
+                       // Test for null|undefined property data
+                       if ( ret == null ) {
+
+                               // Try to find the camelCased property
+                               ret = thisCache[ jQuery.camelCase( name ) ];
+                       }
+               } else {
+                       ret = thisCache;
+               }
+
+               return ret;
+       },
+
+       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var thisCache, i, l,
+
+                       // Reference to internal data cache key
+                       internalKey = jQuery.expando,
+
+                       isNode = elem.nodeType,
+
+                       // See jQuery.data for more information
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // See jQuery.data for more information
+                       id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
+
+               // If there is already no cache entry for this object, there is no
+               // purpose in continuing
+               if ( !cache[ id ] ) {
+                       return;
+               }
+
+               if ( name ) {
+
+                       thisCache = pvt ? cache[ id ] : cache[ id ].data;
+
+                       if ( thisCache ) {
+
+                               // Support space separated names
+                               if ( jQuery.isArray( name ) ) {
+                                       name = name;
+                               } else if ( name in thisCache ) {
+                                       name = [ name ];
+                               } else {
+
+                                       // split the camel cased version by spaces
+                                       name = jQuery.camelCase( name );
+                                       if ( name in thisCache ) {
+                                               name = [ name ];
+                                       } else {
+                                               name = name.split( " " );
+                                       }
+                               }
+
+                               for ( i = 0, l = name.length; i < l; i++ ) {
+                                       delete thisCache[ name[i] ];
+                               }
+
+                               // If there is no data left in the cache, we want to continue
+                               // and let the cache object itself get destroyed
+                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
+                                       return;
+                               }
+                       }
+               }
+
+               // See jQuery.data for more information
+               if ( !pvt ) {
+                       delete cache[ id ].data;
+
+                       // Don't destroy the parent cache unless the internal data object
+                       // had been the only thing left in it
+                       if ( !isEmptyDataObject(cache[ id ]) ) {
+                               return;
+                       }
+               }
+
+               // Browsers that fail expando deletion also refuse to delete expandos on
+               // the window, but it will allow it on all other JS objects; other browsers
+               // don't care
+               // Ensure that `cache` is not a window object #10080
+               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
+                       delete cache[ id ];
+               } else {
+                       cache[ id ] = null;
+               }
+
+               // We destroyed the cache and need to eliminate the expando on the node to avoid
+               // false lookups in the cache for entries that no longer exist
+               if ( isNode ) {
+                       // IE does not allow us to delete expando properties from nodes,
+                       // nor does it have a removeAttribute function on Document nodes;
+                       // we must handle all of these cases
+                       if ( jQuery.support.deleteExpando ) {
+                               delete elem[ jQuery.expando ];
+                       } else if ( elem.removeAttribute ) {
+                               elem.removeAttribute( jQuery.expando );
+                       } else {
+                               elem[ jQuery.expando ] = null;
+                       }
+               }
+       },
+
+       // For internal use only.
+       _data: function( elem, name, data ) {
+               return jQuery.data( elem, name, data, true );
+       },
+
+       // A method for determining if a DOM node can handle the data expando
+       acceptData: function( elem ) {
+               if ( elem.nodeName ) {
+                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
+
+                       if ( match ) {
+                               return !(match === true || elem.getAttribute("classid") !== match);
+                       }
+               }
+
+               return true;
+       }
+});
+
+jQuery.fn.extend({
+       data: function( key, value ) {
+               var parts, attr, name,
+                       data = null;
+
+               if ( typeof key === "undefined" ) {
+                       if ( this.length ) {
+                               data = jQuery.data( this[0] );
+
+                               if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
+                                       attr = this[0].attributes;
+                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
+                                               name = attr[i].name;
+
+                                               if ( name.indexOf( "data-" ) === 0 ) {
+                                                       name = jQuery.camelCase( name.substring(5) );
+
+                                                       dataAttr( this[0], name, data[ name ] );
+                                               }
+                                       }
+                                       jQuery._data( this[0], "parsedAttrs", true );
+                               }
+                       }
+
+                       return data;
+
+               } else if ( typeof key === "object" ) {
+                       return this.each(function() {
+                               jQuery.data( this, key );
+                       });
+               }
+
+               parts = key.split(".");
+               parts[1] = parts[1] ? "." + parts[1] : "";
+
+               if ( value === undefined ) {
+                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+                       // Try to fetch any internally stored data first
+                       if ( data === undefined && this.length ) {
+                               data = jQuery.data( this[0], key );
+                               data = dataAttr( this[0], key, data );
+                       }
+
+                       return data === undefined && parts[1] ?
+                               this.data( parts[0] ) :
+                               data;
+
+               } else {
+                       return this.each(function() {
+                               var $this = jQuery( this ),
+                                       args = [ parts[0], value ];
+
+                               $this.triggerHandler( "setData" + parts[1] + "!", args );
+                               jQuery.data( this, key, value );
+                               $this.triggerHandler( "changeData" + parts[1] + "!", args );
+                       });
+               }
+       },
+
+       removeData: function( key ) {
+               return this.each(function() {
+                       jQuery.removeData( this, key );
+               });
+       }
+});
+
+function dataAttr( elem, key, data ) {
+       // If nothing was found internally, try to fetch any
+       // data from the HTML5 data-* attribute
+       if ( data === undefined && elem.nodeType === 1 ) {
+
+               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
+
+               data = elem.getAttribute( name );
+
+               if ( typeof data === "string" ) {
+                       try {
+                               data = data === "true" ? true :
+                               data === "false" ? false :
+                               data === "null" ? null :
+                               jQuery.isNumeric( data ) ? parseFloat( data ) :
+                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
+                                       data;
+                       } catch( e ) {}
+
+                       // Make sure we set the data so it isn't changed later
+                       jQuery.data( elem, key, data );
+
+               } else {
+                       data = undefined;
+               }
+       }
+
+       return data;
+}
+
+// checks a cache object for emptiness
+function isEmptyDataObject( obj ) {
+       for ( var name in obj ) {
+
+               // if the public data object is empty, the private is still empty
+               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
+                       continue;
+               }
+               if ( name !== "toJSON" ) {
+                       return false;
+               }
+       }
+
+       return true;
+}
+
+
+
+
+function handleQueueMarkDefer( elem, type, src ) {
+       var deferDataKey = type + "defer",
+               queueDataKey = type + "queue",
+               markDataKey = type + "mark",
+               defer = jQuery._data( elem, deferDataKey );
+       if ( defer &&
+               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
+               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
+               // Give room for hard-coded callbacks to fire first
+               // and eventually mark/queue something else on the element
+               setTimeout( function() {
+                       if ( !jQuery._data( elem, queueDataKey ) &&
+                               !jQuery._data( elem, markDataKey ) ) {
+                               jQuery.removeData( elem, deferDataKey, true );
+                               defer.fire();
+                       }
+               }, 0 );
+       }
+}
+
+jQuery.extend({
+
+       _mark: function( elem, type ) {
+               if ( elem ) {
+                       type = ( type || "fx" ) + "mark";
+                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
+               }
+       },
+
+       _unmark: function( force, elem, type ) {
+               if ( force !== true ) {
+                       type = elem;
+                       elem = force;
+                       force = false;
+               }
+               if ( elem ) {
+                       type = type || "fx";
+                       var key = type + "mark",
+                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
+                       if ( count ) {
+                               jQuery._data( elem, key, count );
+                       } else {
+                               jQuery.removeData( elem, key, true );
+                               handleQueueMarkDefer( elem, type, "mark" );
+                       }
+               }
+       },
+
+       queue: function( elem, type, data ) {
+               var q;
+               if ( elem ) {
+                       type = ( type || "fx" ) + "queue";
+                       q = jQuery._data( elem, type );
+
+                       // Speed up dequeue by getting out quickly if this is just a lookup
+                       if ( data ) {
+                               if ( !q || jQuery.isArray(data) ) {
+                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );
+                               } else {
+                                       q.push( data );
+                               }
+                       }
+                       return q || [];
+               }
+       },
+
+       dequeue: function( elem, type ) {
+               type = type || "fx";
+
+               var queue = jQuery.queue( elem, type ),
+                       fn = queue.shift(),
+                       hooks = {};
+
+               // If the fx queue is dequeued, always remove the progress sentinel
+               if ( fn === "inprogress" ) {
+                       fn = queue.shift();
+               }
+
+               if ( fn ) {
+                       // Add a progress sentinel to prevent the fx queue from being
+                       // automatically dequeued
+                       if ( type === "fx" ) {
+                               queue.unshift( "inprogress" );
+                       }
+
+                       jQuery._data( elem, type + ".run", hooks );
+                       fn.call( elem, function() {
+                               jQuery.dequeue( elem, type );
+                       }, hooks );
+               }
+
+               if ( !queue.length ) {
+                       jQuery.removeData( elem, type + "queue " + type + ".run", true );
+                       handleQueueMarkDefer( elem, type, "queue" );
+               }
+       }
+});
+
+jQuery.fn.extend({
+       queue: function( type, data ) {
+               if ( typeof type !== "string" ) {
+                       data = type;
+                       type = "fx";
+               }
+
+               if ( data === undefined ) {
+                       return jQuery.queue( this[0], type );
+               }
+               return this.each(function() {
+                       var queue = jQuery.queue( this, type, data );
+
+                       if ( type === "fx" && queue[0] !== "inprogress" ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       },
+       dequeue: function( type ) {
+               return this.each(function() {
+                       jQuery.dequeue( this, type );
+               });
+       },
+       // Based off of the plugin by Clint Helfers, with permission.
+       // http://blindsignals.com/index.php/2009/07/jquery-delay/
+       delay: function( time, type ) {
+               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+               type = type || "fx";
+
+               return this.queue( type, function( next, hooks ) {
+                       var timeout = setTimeout( next, time );
+                       hooks.stop = function() {
+                               clearTimeout( timeout );
+                       };
+               });
+       },
+       clearQueue: function( type ) {
+               return this.queue( type || "fx", [] );
+       },
+       // Get a promise resolved when queues of a certain type
+       // are emptied (fx is the type by default)
+       promise: function( type, object ) {
+               if ( typeof type !== "string" ) {
+                       object = type;
+                       type = undefined;
+               }
+               type = type || "fx";
+               var defer = jQuery.Deferred(),
+                       elements = this,
+                       i = elements.length,
+                       count = 1,
+                       deferDataKey = type + "defer",
+                       queueDataKey = type + "queue",
+                       markDataKey = type + "mark",
+                       tmp;
+               function resolve() {
+                       if ( !( --count ) ) {
+                               defer.resolveWith( elements, [ elements ] );
+                       }
+               }
+               while( i-- ) {
+                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
+                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
+                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
+                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
+                               count++;
+                               tmp.add( resolve );
+                       }
+               }
+               resolve();
+               return defer.promise();
+       }
+});
+
+
+
+
+var rclass = /[\n\t\r]/g,
+       rspace = /\s+/,
+       rreturn = /\r/g,
+       rtype = /^(?:button|input)$/i,
+       rfocusable = /^(?:button|input|object|select|textarea)$/i,
+       rclickable = /^a(?:rea)?$/i,
+       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
+       getSetAttribute = jQuery.support.getSetAttribute,
+       nodeHook, boolHook, fixSpecified;
+
+jQuery.fn.extend({
+       attr: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.attr );
+       },
+
+       removeAttr: function( name ) {
+               return this.each(function() {
+                       jQuery.removeAttr( this, name );
+               });
+       },
+
+       prop: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.prop );
+       },
+
+       removeProp: function( name ) {
+               name = jQuery.propFix[ name ] || name;
+               return this.each(function() {
+                       // try/catch handles cases where IE balks (such as removing a property on window)
+                       try {
+                               this[ name ] = undefined;
+                               delete this[ name ];
+                       } catch( e ) {}
+               });
+       },
+
+       addClass: function( value ) {
+               var classNames, i, l, elem,
+                       setClass, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).addClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( value && typeof value === "string" ) {
+                       classNames = value.split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !elem.className && classNames.length === 1 ) {
+                                               elem.className = value;
+
+                                       } else {
+                                               setClass = " " + elem.className + " ";
+
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
+                                                               setClass += classNames[ c ] + " ";
+                                                       }
+                                               }
+                                               elem.className = jQuery.trim( setClass );
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       removeClass: function( value ) {
+               var classNames, i, l, elem, className, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).removeClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( (value && typeof value === "string") || value === undefined ) {
+                       classNames = ( value || "" ).split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 && elem.className ) {
+                                       if ( value ) {
+                                               className = (" " + elem.className + " ").replace( rclass, " " );
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
+                                               }
+                                               elem.className = jQuery.trim( className );
+
+                                       } else {
+                                               elem.className = "";
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       toggleClass: function( value, stateVal ) {
+               var type = typeof value,
+                       isBool = typeof stateVal === "boolean";
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( i ) {
+                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
+                       });
+               }
+
+               return this.each(function() {
+                       if ( type === "string" ) {
+                               // toggle individual class names
+                               var className,
+                                       i = 0,
+                                       self = jQuery( this ),
+                                       state = stateVal,
+                                       classNames = value.split( rspace );
+
+                               while ( (className = classNames[ i++ ]) ) {
+                                       // check each className given, space seperated list
+                                       state = isBool ? state : !self.hasClass( className );
+                                       self[ state ? "addClass" : "removeClass" ]( className );
+                               }
+
+                       } else if ( type === "undefined" || type === "boolean" ) {
+                               if ( this.className ) {
+                                       // store className if set
+                                       jQuery._data( this, "__className__", this.className );
+                               }
+
+                               // toggle whole className
+                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+                       }
+               });
+       },
+
+       hasClass: function( selector ) {
+               var className = " " + selector + " ",
+                       i = 0,
+                       l = this.length;
+               for ( ; i < l; i++ ) {
+                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+                               return true;
+                       }
+               }
+
+               return false;
+       },
+
+       val: function( value ) {
+               var hooks, ret, isFunction,
+                       elem = this[0];
+
+               if ( !arguments.length ) {
+                       if ( elem ) {
+                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
+
+                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
+                                       return ret;
+                               }
+
+                               ret = elem.value;
+
+                               return typeof ret === "string" ?
+                                       // handle most common string cases
+                                       ret.replace(rreturn, "") :
+                                       // handle cases where value is null/undef or number
+                                       ret == null ? "" : ret;
+                       }
+
+                       return undefined;
+               }
+
+               isFunction = jQuery.isFunction( value );
+
+               return this.each(function( i ) {
+                       var self = jQuery(this), val;
+
+                       if ( this.nodeType !== 1 ) {
+                               return;
+                       }
+
+                       if ( isFunction ) {
+                               val = value.call( this, i, self.val() );
+                       } else {
+                               val = value;
+                       }
+
+                       // Treat null/undefined as ""; convert numbers to string
+                       if ( val == null ) {
+                               val = "";
+                       } else if ( typeof val === "number" ) {
+                               val += "";
+                       } else if ( jQuery.isArray( val ) ) {
+                               val = jQuery.map(val, function ( value ) {
+                                       return value == null ? "" : value + "";
+                               });
+                       }
+
+                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
+
+                       // If set returns undefined, fall back to normal setting
+                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
+                               this.value = val;
+                       }
+               });
+       }
+});
+
+jQuery.extend({
+       valHooks: {
+               option: {
+                       get: function( elem ) {
+                               // attributes.value is undefined in Blackberry 4.7 but
+                               // uses .value. See #6932
+                               var val = elem.attributes.value;
+                               return !val || val.specified ? elem.value : elem.text;
+                       }
+               },
+               select: {
+                       get: function( elem ) {
+                               var value, i, max, option,
+                                       index = elem.selectedIndex,
+                                       values = [],
+                                       options = elem.options,
+                                       one = elem.type === "select-one";
+
+                               // Nothing was selected
+                               if ( index < 0 ) {
+                                       return null;
+                               }
+
+                               // Loop through all the selected options
+                               i = one ? index : 0;
+                               max = one ? index + 1 : options.length;
+                               for ( ; i < max; i++ ) {
+                                       option = options[ i ];
+
+                                       // Don't return options that are disabled or in a disabled optgroup
+                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
+                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
+
+                                               // Get the specific value for the option
+                                               value = jQuery( option ).val();
+
+                                               // We don't need an array for one selects
+                                               if ( one ) {
+                                                       return value;
+                                               }
+
+                                               // Multi-Selects return an array
+                                               values.push( value );
+                                       }
+                               }
+
+                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
+                               if ( one && !values.length && options.length ) {
+                                       return jQuery( options[ index ] ).val();
+                               }
+
+                               return values;
+                       },
+
+                       set: function( elem, value ) {
+                               var values = jQuery.makeArray( value );
+
+                               jQuery(elem).find("option").each(function() {
+                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+                               });
+
+                               if ( !values.length ) {
+                                       elem.selectedIndex = -1;
+                               }
+                               return values;
+                       }
+               }
+       },
+
+       attrFn: {
+               val: true,
+               css: true,
+               html: true,
+               text: true,
+               data: true,
+               width: true,
+               height: true,
+               offset: true
+       },
+
+       attr: function( elem, name, value, pass ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set attributes on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return undefined;
+               }
+
+               if ( pass && name in jQuery.attrFn ) {
+                       return jQuery( elem )[ name ]( value );
+               }
+
+               // Fallback to prop when attributes are not supported
+               if ( !("getAttribute" in elem) ) {
+                       return jQuery.prop( elem, name, value );
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               // All attributes are lowercase
+               // Grab necessary hook if one is defined
+               if ( notxml ) {
+                       name = name.toLowerCase();
+                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
+               }
+
+               if ( value !== undefined ) {
+
+                       if ( value === null ) {
+                               jQuery.removeAttr( elem, name );
+                               return undefined;
+
+                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               elem.setAttribute( name, "" + value );
+                               return value;
+                       }
+
+               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
+                       return ret;
+
+               } else {
+
+                       ret = elem.getAttribute( name );
+
+                       // Non-existent attributes return null, we normalize to undefined
+                       return ret === null ?
+                               undefined :
+                               ret;
+               }
+       },
+
+       removeAttr: function( elem, value ) {
+               var propName, attrNames, name, l,
+                       i = 0;
+
+               if ( elem.nodeType === 1 ) {
+                       attrNames = ( value || "" ).split( rspace );
+                       l = attrNames.length;
+
+                       for ( ; i < l; i++ ) {
+                               name = attrNames[ i ].toLowerCase();
+                               propName = jQuery.propFix[ name ] || name;
+
+                               // See #9699 for explanation of this approach (setting first, then removal)
+                               jQuery.attr( elem, name, "" );
+                               elem.removeAttribute( getSetAttribute ? name : propName );
+
+                               // Set corresponding property to false for boolean attributes
+                               if ( rboolean.test( name ) && propName in elem ) {
+                                       elem[ propName ] = false;
+                               }
+                       }
+               }
+       },
+
+       attrHooks: {
+               type: {
+                       set: function( elem, value ) {
+                               // We can't allow the type property to be changed (since it causes problems in IE)
+                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
+                                       jQuery.error( "type property can't be changed" );
+                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+                                       // Setting the type on a radio button after the value resets the value in IE6-9
+                                       // Reset value to it's default in case type is set after value
+                                       // This is for element creation
+                                       var val = elem.value;
+                                       elem.setAttribute( "type", value );
+                                       if ( val ) {
+                                               elem.value = val;
+                                       }
+                                       return value;
+                               }
+                       }
+               },
+               // Use the value property for back compat
+               // Use the nodeHook for button elements in IE6/7 (#1954)
+               value: {
+                       get: function( elem, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.get( elem, name );
+                               }
+                               return name in elem ?
+                                       elem.value :
+                                       null;
+                       },
+                       set: function( elem, value, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.set( elem, value, name );
+                               }
+                               // Does not return so that setAttribute is also used
+                               elem.value = value;
+                       }
+               }
+       },
+
+       propFix: {
+               tabindex: "tabIndex",
+               readonly: "readOnly",
+               "for": "htmlFor",
+               "class": "className",
+               maxlength: "maxLength",
+               cellspacing: "cellSpacing",
+               cellpadding: "cellPadding",
+               rowspan: "rowSpan",
+               colspan: "colSpan",
+               usemap: "useMap",
+               frameborder: "frameBorder",
+               contenteditable: "contentEditable"
+       },
+
+       prop: function( elem, name, value ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set properties on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return undefined;
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               if ( notxml ) {
+                       // Fix name and attach hooks
+                       name = jQuery.propFix[ name ] || name;
+                       hooks = jQuery.propHooks[ name ];
+               }
+
+               if ( value !== undefined ) {
+                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               return ( elem[ name ] = value );
+                       }
+
+               } else {
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+                               return ret;
+
+                       } else {
+                               return elem[ name ];
+                       }
+               }
+       },
+
+       propHooks: {
+               tabIndex: {
+                       get: function( elem ) {
+                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+                               var attributeNode = elem.getAttributeNode("tabindex");
+
+                               return attributeNode && attributeNode.specified ?
+                                       parseInt( attributeNode.value, 10 ) :
+                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+                                               0 :
+                                               undefined;
+                       }
+               }
+       }
+});
+
+// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
+jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
+
+// Hook for boolean attributes
+boolHook = {
+       get: function( elem, name ) {
+               // Align boolean attributes with corresponding properties
+               // Fall back to attribute presence where some booleans are not supported
+               var attrNode,
+                       property = jQuery.prop( elem, name );
+               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
+                       name.toLowerCase() :
+                       undefined;
+       },
+       set: function( elem, value, name ) {
+               var propName;
+               if ( value === false ) {
+                       // Remove boolean attributes when set to false
+                       jQuery.removeAttr( elem, name );
+               } else {
+                       // value is true since we know at this point it's type boolean and not false
+                       // Set boolean attributes to the same name and set the DOM property
+                       propName = jQuery.propFix[ name ] || name;
+                       if ( propName in elem ) {
+                               // Only set the IDL specifically if it already exists on the element
+                               elem[ propName ] = true;
+                       }
+
+                       elem.setAttribute( name, name.toLowerCase() );
+               }
+               return name;
+       }
+};
+
+// IE6/7 do not support getting/setting some attributes with get/setAttribute
+if ( !getSetAttribute ) {
+
+       fixSpecified = {
+               name: true,
+               id: true
+       };
+
+       // Use this for any attribute in IE6/7
+       // This fixes almost every IE6/7 issue
+       nodeHook = jQuery.valHooks.button = {
+               get: function( elem, name ) {
+                       var ret;
+                       ret = elem.getAttributeNode( name );
+                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
+                               ret.nodeValue :
+                               undefined;
+               },
+               set: function( elem, value, name ) {
+                       // Set the existing or create a new attribute node
+                       var ret = elem.getAttributeNode( name );
+                       if ( !ret ) {
+                               ret = document.createAttribute( name );
+                               elem.setAttributeNode( ret );
+                       }
+                       return ( ret.nodeValue = value + "" );
+               }
+       };
+
+       // Apply the nodeHook to tabindex
+       jQuery.attrHooks.tabindex.set = nodeHook.set;
+
+       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
+       // This is for removals
+       jQuery.each([ "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       set: function( elem, value ) {
+                               if ( value === "" ) {
+                                       elem.setAttribute( name, "auto" );
+                                       return value;
+                               }
+                       }
+               });
+       });
+
+       // Set contenteditable to false on removals(#10429)
+       // Setting to empty string throws an error as an invalid value
+       jQuery.attrHooks.contenteditable = {
+               get: nodeHook.get,
+               set: function( elem, value, name ) {
+                       if ( value === "" ) {
+                               value = "false";
+                       }
+                       nodeHook.set( elem, value, name );
+               }
+       };
+}
+
+
+// Some attributes require a special call on IE
+if ( !jQuery.support.hrefNormalized ) {
+       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       get: function( elem ) {
+                               var ret = elem.getAttribute( name, 2 );
+                               return ret === null ? undefined : ret;
+                       }
+               });
+       });
+}
+
+if ( !jQuery.support.style ) {
+       jQuery.attrHooks.style = {
+               get: function( elem ) {
+                       // Return undefined in the case of empty string
+                       // Normalize to lowercase since IE uppercases css property names
+                       return elem.style.cssText.toLowerCase() || undefined;
+               },
+               set: function( elem, value ) {
+                       return ( elem.style.cssText = "" + value );
+               }
+       };
+}
+
+// Safari mis-reports the default selected property of an option
+// Accessing the parent's selectedIndex property fixes it
+if ( !jQuery.support.optSelected ) {
+       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
+               get: function( elem ) {
+                       var parent = elem.parentNode;
+
+                       if ( parent ) {
+                               parent.selectedIndex;
+
+                               // Make sure that it also works with optgroups, see #5701
+                               if ( parent.parentNode ) {
+                                       parent.parentNode.selectedIndex;
+                               }
+                       }
+                       return null;
+               }
+       });
+}
+
+// IE6/7 call enctype encoding
+if ( !jQuery.support.enctype ) {
+       jQuery.propFix.enctype = "encoding";
+}
+
+// Radios and checkboxes getter/setter
+if ( !jQuery.support.checkOn ) {
+       jQuery.each([ "radio", "checkbox" ], function() {
+               jQuery.valHooks[ this ] = {
+                       get: function( elem ) {
+                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+                               return elem.getAttribute("value") === null ? "on" : elem.value;
+                       }
+               };
+       });
+}
+jQuery.each([ "radio", "checkbox" ], function() {
+       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
+               set: function( elem, value ) {
+                       if ( jQuery.isArray( value ) ) {
+                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
+                       }
+               }
+       });
+});
+
+
+
+
+var rnamespaces = /\.(.*)$/,
+       rformElems = /^(?:textarea|input|select)$/i,
+       rperiod = /\./g,
+       rspaces = / /g,
+       rescape = /[^\w\s.|`]/g,
+       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
+       rhoverHack = /\bhover(\.\S+)?/,
+       rkeyEvent = /^key/,
+       rmouseEvent = /^(?:mouse|contextmenu)|click/,
+       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
+       quickParse = function( selector ) {
+               var quick = rquickIs.exec( selector );
+               if ( quick ) {
+                       //   0  1    2   3
+                       // [ _, tag, id, class ]
+                       quick[1] = ( quick[1] || "" ).toLowerCase();
+                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
+               }
+               return quick;
+       },
+       quickIs = function( elem, m ) {
+               return (
+                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
+                       (!m[2] || elem.id === m[2]) &&
+                       (!m[3] || m[3].test( elem.className ))
+               );
+       },
+       hoverHack = function( events ) {
+               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
+       };
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+       add: function( elem, types, handler, data, selector ) {
+
+               var elemData, eventHandle, events,
+                       t, tns, type, namespaces, handleObj,
+                       handleObjIn, quick, handlers, special;
+
+               // Don't attach events to noData or text/comment nodes (allow plain objects tho)
+               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
+                       return;
+               }
+
+               // Caller can pass in an object of custom data in lieu of the handler
+               if ( handler.handler ) {
+                       handleObjIn = handler;
+                       handler = handleObjIn.handler;
+               }
+
+               // Make sure that the handler has a unique ID, used to find/remove it later
+               if ( !handler.guid ) {
+                       handler.guid = jQuery.guid++;
+               }
+
+               // Init the element's event structure and main handler, if this is the first
+               events = elemData.events;
+               if ( !events ) {
+                       elemData.events = events = {};
+               }
+               eventHandle = elemData.handle;
+               if ( !eventHandle ) {
+                       elemData.handle = eventHandle = function( e ) {
+                               // Discard the second event of a jQuery.event.trigger() and
+                               // when an event is called after a page has unloaded
+                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
+                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
+                                       undefined;
+                       };
+                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
+                       eventHandle.elem = elem;
+               }
+
+               // Handle multiple events separated by a space
+               // jQuery(...).bind("mouseover mouseout", fn);
+               types = hoverHack(types).split( " " );
+               for ( t = 0; t < types.length; t++ ) {
+
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = tns[1];
+                       namespaces = ( tns[2] || "" ).split( "." ).sort();
+
+                       // If event changes its type, use the special event handlers for the changed type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // If selector defined, determine special event api type, otherwise given type
+                       type = ( selector ? special.delegateType : special.bindType ) || type;
+
+                       // Update special based on newly reset type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // handleObj is passed to all event handlers
+                       handleObj = jQuery.extend({
+                               type: type,
+                               origType: tns[1],
+                               data: data,
+                               handler: handler,
+                               guid: handler.guid,
+                               selector: selector,
+                               namespace: namespaces.join(".")
+                       }, handleObjIn );
+
+                       // Delegated event; pre-analyze selector so it's processed quickly on event dispatch
+                       if ( selector ) {
+                               handleObj.quick = quickParse( selector );
+                               if ( !handleObj.quick && jQuery.expr.match.POS.test( selector ) ) {
+                                       handleObj.isPositional = true;
+                               }
+                       }
+
+                       // Init the event handler queue if we're the first
+                       handlers = events[ type ];
+                       if ( !handlers ) {
+                               handlers = events[ type ] = [];
+                               handlers.delegateCount = 0;
+
+                               // Only use addEventListener/attachEvent if the special events handler returns false
+                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+                                       // Bind the global event handler to the element
+                                       if ( elem.addEventListener ) {
+                                               elem.addEventListener( type, eventHandle, false );
+
+                                       } else if ( elem.attachEvent ) {
+                                               elem.attachEvent( "on" + type, eventHandle );
+                                       }
+                               }
+                       }
+
+                       if ( special.add ) {
+                               special.add.call( elem, handleObj );
+
+                               if ( !handleObj.handler.guid ) {
+                                       handleObj.handler.guid = handler.guid;
+                               }
+                       }
+
+                       // Add to the element's handler list, delegates in front
+                       if ( selector ) {
+                               handlers.splice( handlers.delegateCount++, 0, handleObj );
+                       } else {
+                               handlers.push( handleObj );
+                       }
+
+                       // Keep track of which events have ever been used, for event optimization
+                       jQuery.event.global[ type ] = true;
+               }
+
+               // Nullify elem to prevent memory leaks in IE
+               elem = null;
+       },
+
+       global: {},
+
+       // Detach an event or set of events from an element
+       remove: function( elem, types, handler, selector ) {
+
+               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
+                       t, tns, type, namespaces, origCount,
+                       j, events, special, handle, eventType, handleObj;
+
+               if ( !elemData || !(events = elemData.events) ) {
+                       return;
+               }
+
+               // Once for each type.namespace in types; type may be omitted
+               types = hoverHack( types || "" ).split(" ");
+               for ( t = 0; t < types.length; t++ ) {
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = tns[1];
+                       namespaces = tns[2];
+
+                       // Unbind all events (on this namespace, if provided) for the element
+                       if ( !type ) {
+                               namespaces = namespaces? "." + namespaces : "";
+                               for ( j in events ) {
+                                       jQuery.event.remove( elem, j + namespaces, handler, selector );
+                               }
+                               return;
+                       }
+
+                       special = jQuery.event.special[ type ] || {};
+                       type = ( selector? special.delegateType : special.bindType ) || type;
+                       eventType = events[ type ] || [];
+                       origCount = eventType.length;
+                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+
+                       // Only need to loop for special events or selective removal
+                       if ( handler || namespaces || selector || special.remove ) {
+                               for ( j = 0; j < eventType.length; j++ ) {
+                                       handleObj = eventType[ j ];
+
+                                       if ( !handler || handler.guid === handleObj.guid ) {
+                                               if ( !namespaces || namespaces.test( handleObj.namespace ) ) {
+                                                       if ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) {
+                                                               eventType.splice( j--, 1 );
+
+                                                               if ( handleObj.selector ) {
+                                                                       eventType.delegateCount--;
+                                                               }
+                                                               if ( special.remove ) {
+                                                                       special.remove.call( elem, handleObj );
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               }
+                       } else {
+                               // Removing all events
+                               eventType.length = 0;
+                       }
+
+                       // Remove generic event handler if we removed something and no more handlers exist
+                       // (avoids potential for endless recursion during removal of special event handlers)
+                       if ( eventType.length === 0 && origCount !== eventType.length ) {
+                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+                                       jQuery.removeEvent( elem, type, elemData.handle );
+                               }
+
+                               delete events[ type ];
+                       }
+               }
+
+               // Remove the expando if it's no longer used
+               if ( jQuery.isEmptyObject( events ) ) {
+                       handle = elemData.handle;
+                       if ( handle ) {
+                               handle.elem = null;
+                       }
+
+                       // removeData also checks for emptiness and clears the expando if empty
+                       // so use it instead of delete
+                       jQuery.removeData( elem, [ "events", "handle" ], true );
+               }
+       },
+
+       // Events that are safe to short-circuit if no handlers are attached.
+       // Native DOM events should not be added, they may have inline handlers.
+       customEvent: {
+               "getData": true,
+               "setData": true,
+               "changeData": true
+       },
+
+       trigger: function( event, data, elem, onlyHandlers ) {
+               // Don't do events on text and comment nodes
+               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
+                       return;
+               }
+
+               // Event object or event type
+               var type = event.type || event,
+                       namespaces = [],
+                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
+
+               if ( type.indexOf( "!" ) >= 0 ) {
+                       // Exclusive events trigger only for the exact event (no namespaces)
+                       type = type.slice(0, -1);
+                       exclusive = true;
+               }
+
+               if ( type.indexOf( "." ) >= 0 ) {
+                       // Namespaced trigger; create a regexp to match event type in handle()
+                       namespaces = type.split(".");
+                       type = namespaces.shift();
+                       namespaces.sort();
+               }
+
+               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
+                       // No jQuery handlers for this event type, and it can't have inline handlers
+                       return;
+               }
+
+               // Caller can pass in an Event, Object, or just an event type string
+               event = typeof event === "object" ?
+                       // jQuery.Event object
+                       event[ jQuery.expando ] ? event :
+                       // Object literal
+                       new jQuery.Event( type, event ) :
+                       // Just the event type (string)
+                       new jQuery.Event( type );
+
+               event.type = type;
+               event.isTrigger = true;
+               event.exclusive = exclusive;
+               event.namespace = namespaces.join( "." );
+               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
+
+               // triggerHandler() and global events don't bubble or run the default action
+               if ( onlyHandlers || !elem ) {
+                       event.preventDefault();
+               }
+
+               // Handle a global trigger
+               if ( !elem ) {
+
+                       // TODO: Stop taunting the data cache; remove global events and always attach to document
+                       cache = jQuery.cache;
+                       for ( i in cache ) {
+                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {
+                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
+                               }
+                       }
+                       return;
+               }
+
+               // Clean up the event in case it is being reused
+               event.result = undefined;
+               if ( !event.target ) {
+                       event.target = elem;
+               }
+
+               // Clone any incoming data and prepend the event, creating the handler arg list
+               data = data != null ? jQuery.makeArray( data ) : [];
+               data.unshift( event );
+
+               // Allow special events to draw outside the lines
+               special = jQuery.event.special[ type ] || {};
+               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
+                       return;
+               }
+
+               // Determine event propagation path in advance, per W3C events spec (#9951)
+               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+               eventPath = [[ elem, special.bindType || type ]];
+               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
+
+                       bubbleType = special.delegateType || type;
+                       old = null;
+                       for ( cur = elem.parentNode; cur; cur = cur.parentNode ) {
+                               eventPath.push([ cur, bubbleType ]);
+                               old = cur;
+                       }
+
+                       // Only add window if we got to document (e.g., not plain obj or detached DOM)
+                       if ( old && old === elem.ownerDocument ) {
+                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
+                       }
+               }
+
+               // Fire handlers on the event path
+               for ( i = 0; i < eventPath.length; i++ ) {
+
+                       cur = eventPath[i][0];
+                       event.type = eventPath[i][1];
+
+                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
+                       if ( handle ) {
+                               handle.apply( cur, data );
+                       }
+                       handle = ontype && cur[ ontype ];
+                       if ( handle && jQuery.acceptData( cur ) ) {
+                               handle.apply( cur, data );
+                       }
+
+                       if ( event.isPropagationStopped() ) {
+                               break;
+                       }
+               }
+               event.type = type;
+
+               // If nobody prevented the default action, do it now
+               if ( !event.isDefaultPrevented() ) {
+
+                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
+                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
+
+                               // Call a native DOM method on the target with the same name name as the event.
+                               // Can't use an .isFunction() check here because IE6/7 fails that test.
+                               // Don't do default actions on window, that's where global variables be (#6170)
+                               // IE<9 dies on focus/blur to hidden element (#1486)
+                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
+
+                                       // Don't re-trigger an onFOO event when we call its FOO() method
+                                       old = elem[ ontype ];
+
+                                       if ( old ) {
+                                               elem[ ontype ] = null;
+                                       }
+
+                                       // Prevent re-triggering of the same event, since we already bubbled it above
+                                       jQuery.event.triggered = type;
+                                       elem[ type ]();
+                                       jQuery.event.triggered = undefined;
+
+                                       if ( old ) {
+                                               elem[ ontype ] = old;
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       dispatch: function( event ) {
+
+               // Make a writable jQuery.Event from the native event object
+               event = jQuery.event.fix( event || window.event );
+
+               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
+                       delegateCount = handlers.delegateCount,
+                       args = [].slice.call( arguments, 0 ),
+                       run_all = !event.exclusive && !event.namespace,
+                       specialHandle = ( jQuery.event.special[ event.type ] || {} ).handle,
+                       handlerQueue = [],
+                       i, j, cur, ret, selMatch, matched, matches, handleObj, sel, hit, related;
+
+               // Use the fix-ed jQuery.Event rather than the (read-only) native event
+               args[0] = event;
+               event.delegateTarget = this;
+
+               // Determine handlers that should run if there are delegated events
+               // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
+               if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
+
+                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
+                               selMatch = {};
+                               matches = [];
+                               for ( i = 0; i < delegateCount; i++ ) {
+                                       handleObj = handlers[ i ];
+                                       sel = handleObj.selector;
+                                       hit = selMatch[ sel ];
+
+                                       if ( handleObj.isPositional ) {
+                                               // Since .is() does not work for positionals; see http://jsfiddle.net/eJ4yd/3/
+                                               hit = ( hit || (selMatch[ sel ] = jQuery( sel )) ).index( cur ) >= 0;
+                                       } else if ( hit === undefined ) {
+                                               hit = selMatch[ sel ] = ( handleObj.quick ? quickIs( cur, handleObj.quick ) : jQuery( cur ).is( sel ) );
+                                       }
+                                       if ( hit ) {
+                                               matches.push( handleObj );
+                                       }
+                               }
+                               if ( matches.length ) {
+                                       handlerQueue.push({ elem: cur, matches: matches });
+                               }
+                       }
+               }
+
+               // Add the remaining (directly-bound) handlers
+               if ( handlers.length > delegateCount ) {
+                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
+               }
+
+               // Run delegates first; they may want to stop propagation beneath us
+               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
+                       matched = handlerQueue[ i ];
+                       event.currentTarget = matched.elem;
+
+                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
+                               handleObj = matched.matches[ j ];
+
+                               // Triggered event must either 1) be non-exclusive and have no namespace, or
+                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
+                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
+
+                                       event.data = handleObj.data;
+                                       event.handleObj = handleObj;
+
+                                       ret = ( specialHandle || handleObj.handler ).apply( matched.elem, args );
+
+                                       if ( ret !== undefined ) {
+                                               event.result = ret;
+                                               if ( ret === false ) {
+                                                       event.preventDefault();
+                                                       event.stopPropagation();
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       // Includes some event props shared by KeyEvent and MouseEvent
+       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
+       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
+
+       fixHooks: {},
+
+       keyHooks: {
+               props: "char charCode key keyCode".split(" "),
+               filter: function( event, original ) {
+
+                       // Add which for key events
+                       if ( event.which == null ) {
+                               event.which = original.charCode != null ? original.charCode : original.keyCode;
+                       }
+
+                       return event;
+               }
+       },
+
+       mouseHooks: {
+               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),
+               filter: function( event, original ) {
+                       var eventDoc, doc, body,
+                               button = original.button,
+                               fromElement = original.fromElement;
+
+                       // Calculate pageX/Y if missing and clientX/Y available
+                       if ( event.pageX == null && original.clientX != null ) {
+                               eventDoc = event.target.ownerDocument || document;
+                               doc = eventDoc.documentElement;
+                               body = eventDoc.body;
+
+                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
+                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
+                       }
+
+                       // Add relatedTarget, if necessary
+                       if ( !event.relatedTarget && fromElement ) {
+                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
+                       }
+
+                       // Add which for click: 1 === left; 2 === middle; 3 === right
+                       // Note: button is not normalized, so don't use it
+                       if ( !event.which && button !== undefined ) {
+                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
+                       }
+
+                       return event;
+               }
+       },
+
+       fix: function( event ) {
+               if ( event[ jQuery.expando ] ) {
+                       return event;
+               }
+
+               // Create a writable copy of the event object and normalize some properties
+               var i, prop,
+                       originalEvent = event,
+                       fixHook = jQuery.event.fixHooks[ event.type ] || {},
+                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
+
+               event = jQuery.Event( originalEvent );
+
+               for ( i = copy.length; i; ) {
+                       prop = copy[ --i ];
+                       event[ prop ] = originalEvent[ prop ];
+               }
+
+               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
+               if ( !event.target ) {
+                       event.target = originalEvent.srcElement || document;
+               }
+
+               // Target should not be a text node (#504, Safari)
+               if ( event.target.nodeType === 3 ) {
+                       event.target = event.target.parentNode;
+               }
+
+               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
+               if ( event.metaKey === undefined ) {
+                       event.metaKey = event.ctrlKey;
+               }
+
+               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
+       },
+
+       special: {
+               ready: {
+                       // Make sure the ready event is setup
+                       setup: jQuery.bindReady
+               },
+
+               focus: {
+                       delegateType: "focusin",
+                       noBubble: true
+               },
+               blur: {
+                       delegateType: "focusout",
+                       noBubble: true
+               },
+
+               beforeunload: {
+                       setup: function( data, namespaces, eventHandle ) {
+                               // We only want to do this special case on windows
+                               if ( jQuery.isWindow( this ) ) {
+                                       this.onbeforeunload = eventHandle;
+                               }
+                       },
+
+                       teardown: function( namespaces, eventHandle ) {
+                               if ( this.onbeforeunload === eventHandle ) {
+                                       this.onbeforeunload = null;
+                               }
+                       }
+               }
+       },
+
+       simulate: function( type, elem, event, bubble ) {
+               // Piggyback on a donor event to simulate a different one.
+               // Fake originalEvent to avoid donor's stopPropagation, but if the
+               // simulated event prevents default then we do the same on the donor.
+               var e = jQuery.extend(
+                       new jQuery.Event(),
+                       event,
+                       { type: type,
+                               isSimulated: true,
+                               originalEvent: {}
+                       }
+               );
+               if ( bubble ) {
+                       jQuery.event.trigger( e, null, elem );
+               } else {
+                       jQuery.event.dispatch.call( elem, e );
+               }
+               if ( e.isDefaultPrevented() ) {
+                       event.preventDefault();
+               }
+       }
+};
+
+// Some plugins are using, but it's undocumented/deprecated and will be removed.
+// The 1.7 special event interface should provide all the hooks needed now.
+jQuery.event.handle = jQuery.event.dispatch;
+
+jQuery.removeEvent = document.removeEventListener ?
+       function( elem, type, handle ) {
+               if ( elem.removeEventListener ) {
+                       elem.removeEventListener( type, handle, false );
+               }
+       } :
+       function( elem, type, handle ) {
+               if ( elem.detachEvent ) {
+                       elem.detachEvent( "on" + type, handle );
+               }
+       };
+
+jQuery.Event = function( src, props ) {
+       // Allow instantiation without the 'new' keyword
+       if ( !(this instanceof jQuery.Event) ) {
+               return new jQuery.Event( src, props );
+       }
+
+       // Event object
+       if ( src && src.type ) {
+               this.originalEvent = src;
+               this.type = src.type;
+
+               // Events bubbling up the document may have been marked as prevented
+               // by a handler lower down the tree; reflect the correct value.
+               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
+                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
+
+       // Event type
+       } else {
+               this.type = src;
+       }
+
+       // Put explicitly provided properties onto the event object
+       if ( props ) {
+               jQuery.extend( this, props );
+       }
+
+       // Create a timestamp if incoming event doesn't have one
+       this.timeStamp = src && src.timeStamp || jQuery.now();
+
+       // Mark it as fixed
+       this[ jQuery.expando ] = true;
+};
+
+function returnFalse() {
+       return false;
+}
+function returnTrue() {
+       return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+       preventDefault: function() {
+               this.isDefaultPrevented = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+
+               // if preventDefault exists run it on the original event
+               if ( e.preventDefault ) {
+                       e.preventDefault();
+
+               // otherwise set the returnValue property of the original event to false (IE)
+               } else {
+                       e.returnValue = false;
+               }
+       },
+       stopPropagation: function() {
+               this.isPropagationStopped = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+               // if stopPropagation exists run it on the original event
+               if ( e.stopPropagation ) {
+                       e.stopPropagation();
+               }
+               // otherwise set the cancelBubble property of the original event to true (IE)
+               e.cancelBubble = true;
+       },
+       stopImmediatePropagation: function() {
+               this.isImmediatePropagationStopped = returnTrue;
+               this.stopPropagation();
+       },
+       isDefaultPrevented: returnFalse,
+       isPropagationStopped: returnFalse,
+       isImmediatePropagationStopped: returnFalse
+};
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+jQuery.each({
+       mouseenter: "mouseover",
+       mouseleave: "mouseout"
+}, function( orig, fix ) {
+       jQuery.event.special[ orig ] = jQuery.event.special[ fix ] = {
+               delegateType: fix,
+               bindType: fix,
+
+               handle: function( event ) {
+                       var target = this,
+                               related = event.relatedTarget,
+                               handleObj = event.handleObj,
+                               selector = handleObj.selector,
+                               oldType, ret;
+
+                       // For a real mouseover/out, always call the handler; for
+                       // mousenter/leave call the handler if related is outside the target.
+                       // NB: No relatedTarget if the mouse left/entered the browser window
+                       if ( !related || handleObj.origType === event.type || (related !== target && !jQuery.contains( target, related )) ) {
+                               oldType = event.type;
+                               event.type = handleObj.origType;
+                               ret = handleObj.handler.apply( this, arguments );
+                               event.type = oldType;
+                       }
+                       return ret;
+               }
+       };
+});
+
+// IE submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+       jQuery.event.special.submit = {
+               setup: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Lazy-add a submit handler when a descendant form may potentially be submitted
+                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
+                               // Node name check avoids a VML-related crash in IE (#9807)
+                               var elem = e.target,
+                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
+                               if ( form && !form._submit_attached ) {
+                                       jQuery.event.add( form, "submit._submit", function( event ) {
+                                               // Form was submitted, bubble the event up the tree
+                                               if ( this.parentNode ) {
+                                                       jQuery.event.simulate( "submit", this.parentNode, event, true );
+                                               }
+                                       });
+                                       form._submit_attached = true;
+                               }
+                       });
+                       // return undefined since we don't need an event listener
+               },
+
+               teardown: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
+                       jQuery.event.remove( this, "._submit" );
+               }
+       };
+}
+
+// IE change delegation and checkbox/radio fix
+if ( !jQuery.support.changeBubbles ) {
+
+       jQuery.event.special.change = {
+
+               setup: function() {
+
+                       if ( rformElems.test( this.nodeName ) ) {
+                               // IE doesn't fire change on a check/radio until blur; trigger it on click
+                               // after a propertychange. Eat the blur-change in special.change.handle.
+                               // This still fires onchange a second time for check/radio after blur.
+                               if ( this.type === "checkbox" || this.type === "radio" ) {
+                                       jQuery.event.add( this, "propertychange._change", function( event ) {
+                                               if ( event.originalEvent.propertyName === "checked" ) {
+                                                       this._just_changed = true;
+                                               }
+                                       });
+                                       jQuery.event.add( this, "click._change", function( event ) {
+                                               if ( this._just_changed ) {
+                                                       this._just_changed = false;
+                                                       jQuery.event.simulate( "change", this, event, true );
+                                               }
+                                       });
+                               }
+                               return false;
+                       }
+                       // Delegated event; lazy-add a change handler on descendant inputs
+                       jQuery.event.add( this, "beforeactivate._change", function( e ) {
+                               var elem = e.target;
+
+                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
+                                       jQuery.event.add( elem, "change._change", function( event ) {
+                                               if ( this.parentNode && !event.isSimulated ) {
+                                                       jQuery.event.simulate( "change", this.parentNode, event, true );
+                                               }
+                                       });
+                                       elem._change_attached = true;
+                               }
+                       });
+               },
+
+               handle: function( event ) {
+                       var elem = event.target;
+
+                       // Swallow native change events from checkbox/radio, we already triggered them above
+                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
+                               return event.handleObj.handler.apply( this, arguments );
+                       }
+               },
+
+               teardown: function() {
+                       jQuery.event.remove( this, "._change" );
+
+                       return rformElems.test( this.nodeName );
+               }
+       };
+}
+
+// Create "bubbling" focus and blur events
+if ( !jQuery.support.focusinBubbles ) {
+       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+               // Attach a single capturing handler while someone wants focusin/focusout
+               var attaches = 0,
+                       handler = function( event ) {
+                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
+                       };
+
+               jQuery.event.special[ fix ] = {
+                       setup: function() {
+                               if ( attaches++ === 0 ) {
+                                       document.addEventListener( orig, handler, true );
+                               }
+                       },
+                       teardown: function() {
+                               if ( --attaches === 0 ) {
+                                       document.removeEventListener( orig, handler, true );
+                               }
+                       }
+               };
+       });
+}
+
+jQuery.fn.extend({
+
+       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
+               var origFn, type;
+
+               // Types can be a map of types/handlers
+               if ( typeof types === "object" ) {
+                       // ( types-Object, selector, data )
+                       if ( typeof selector !== "string" ) {
+                               // ( types-Object, data )
+                               data = selector;
+                               selector = undefined;
+                       }
+                       for ( type in types ) {
+                               this.on( type, selector, data, types[ type ], one );
+                       }
+                       return this;
+               }
+
+               if ( data == null && fn == null ) {
+                       // ( types, fn )
+                       fn = selector;
+                       data = selector = undefined;
+               } else if ( fn == null ) {
+                       if ( typeof selector === "string" ) {
+                               // ( types, selector, fn )
+                               fn = data;
+                               data = undefined;
+                       } else {
+                               // ( types, data, fn )
+                               fn = data;
+                               data = selector;
+                               selector = undefined;
+                       }
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               } else if ( !fn ) {
+                       return this;
+               }
+
+               if ( one === 1 ) {
+                       origFn = fn;
+                       fn = function( event ) {
+                               // Can use an empty set, since event contains the info
+                               jQuery().off( event );
+                               return origFn.apply( this, arguments );
+                       };
+                       // Use same guid so caller can remove using origFn
+                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+               }
+               return this.each( function() {
+                       jQuery.event.add( this, types, fn, data, selector );
+               });
+       },
+       one: function( types, selector, data, fn ) {
+               return this.on.call( this, types, selector, data, fn, 1 );
+       },
+       off: function( types, selector, fn ) {
+               if ( types && types.preventDefault && types.handleObj ) {
+                       // ( event )  dispatched jQuery.Event
+                       var handleObj = types.handleObj;
+                       jQuery( types.delegateTarget ).off(
+                               handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
+                               handleObj.selector,
+                               handleObj.handler
+                       );
+                       return this;
+               }
+               if ( typeof types === "object" ) {
+                       // ( types-object [, selector] )
+                       for ( var type in types ) {
+                               this.off( type, selector, types[ type ] );
+                       }
+                       return this;
+               }
+               if ( selector === false || typeof selector === "function" ) {
+                       // ( types [, fn] )
+                       fn = selector;
+                       selector = undefined;
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               }
+               return this.each(function() {
+                       jQuery.event.remove( this, types, fn, selector );
+               });
+       },
+
+       bind: function( types, data, fn ) {
+               return this.on( types, null, data, fn );
+       },
+       unbind: function( types, fn ) {
+               return this.off( types, null, fn );
+       },
+
+       live: function( types, data, fn ) {
+               jQuery( this.context ).on( types, this.selector, data, fn );
+               return this;
+       },
+       die: function( types, fn ) {
+               jQuery( this.context ).off( types, this.selector || "**", fn );
+               return this;
+       },
+
+       delegate: function( selector, types, data, fn ) {
+               return this.on( types, selector, data, fn );
+       },
+       undelegate: function( selector, types, fn ) {
+               // ( namespace ) or ( selector, types [, fn] )
+               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
+       },
+
+       trigger: function( type, data ) {
+               return this.each(function() {
+                       jQuery.event.trigger( type, data, this );
+               });
+       },
+       triggerHandler: function( type, data ) {
+               if ( this[0] ) {
+                       return jQuery.event.trigger( type, data, this[0], true );
+               }
+       },
+
+       toggle: function( fn ) {
+               // Save reference to arguments for access in closure
+               var args = arguments,
+                       guid = fn.guid || jQuery.guid++,
+                       i = 0,
+                       toggler = function( event ) {
+                               // Figure out which function to execute
+                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+                               // Make sure that clicks stop
+                               event.preventDefault();
+
+                               // and execute the function
+                               return args[ lastToggle ].apply( this, arguments ) || false;
+                       };
+
+               // link all the functions, so any of them can unbind this click handler
+               toggler.guid = guid;
+               while ( i < args.length ) {
+                       args[ i++ ].guid = guid;
+               }
+
+               return this.click( toggler );
+       },
+
+       hover: function( fnOver, fnOut ) {
+               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+       }
+});
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
+
+       // Handle event binding
+       jQuery.fn[ name ] = function( data, fn ) {
+               if ( fn == null ) {
+                       fn = data;
+                       data = null;
+               }
+
+               return arguments.length > 0 ?
+                       this.bind( name, data, fn ) :
+                       this.trigger( name );
+       };
+
+       if ( jQuery.attrFn ) {
+               jQuery.attrFn[ name ] = true;
+       }
+
+       if ( rkeyEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
+       }
+
+       if ( rmouseEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
+       }
+});
+
+
+
+/*!
+ * Sizzle CSS Selector Engine
+ *  Copyright 2011, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+       expando = "sizcache" + (Math.random() + '').replace('.', ''),
+       done = 0,
+       toString = Object.prototype.toString,
+       hasDuplicate = false,
+       baseHasDuplicate = true,
+       rBackslash = /\\/g,
+       rReturn = /\r\n/g,
+       rNonWord = /\W/;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+//   Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+       baseHasDuplicate = false;
+       return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+       results = results || [];
+       context = context || document;
+
+       var origContext = context;
+
+       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+               return [];
+       }
+       
+       if ( !selector || typeof selector !== "string" ) {
+               return results;
+       }
+
+       var m, set, checkSet, extra, ret, cur, pop, i,
+               prune = true,
+               contextXML = Sizzle.isXML( context ),
+               parts = [],
+               soFar = selector;
+       
+       // Reset the position of the chunker regexp (start from head)
+       do {
+               chunker.exec( "" );
+               m = chunker.exec( soFar );
+
+               if ( m ) {
+                       soFar = m[3];
+               
+                       parts.push( m[1] );
+               
+                       if ( m[2] ) {
+                               extra = m[3];
+                               break;
+                       }
+               }
+       } while ( m );
+
+       if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+                       set = posProcess( parts[0] + parts[1], context, seed );
+
+               } else {
+                       set = Expr.relative[ parts[0] ] ?
+                               [ context ] :
+                               Sizzle( parts.shift(), context );
+
+                       while ( parts.length ) {
+                               selector = parts.shift();
+
+                               if ( Expr.relative[ selector ] ) {
+                                       selector += parts.shift();
+                               }
+                               
+                               set = posProcess( selector, set, seed );
+                       }
+               }
+
+       } else {
+               // Take a shortcut and set the context if the root selector is an ID
+               // (but not if it'll be faster if the inner selector is an ID)
+               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+                       ret = Sizzle.find( parts.shift(), context, contextXML );
+                       context = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set )[0] :
+                               ret.set[0];
+               }
+
+               if ( context ) {
+                       ret = seed ?
+                               { expr: parts.pop(), set: makeArray(seed) } :
+                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+                       set = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set ) :
+                               ret.set;
+
+                       if ( parts.length > 0 ) {
+                               checkSet = makeArray( set );
+
+                       } else {
+                               prune = false;
+                       }
+
+                       while ( parts.length ) {
+                               cur = parts.pop();
+                               pop = cur;
+
+                               if ( !Expr.relative[ cur ] ) {
+                                       cur = "";
+                               } else {
+                                       pop = parts.pop();
+                               }
+
+                               if ( pop == null ) {
+                                       pop = context;
+                               }
+
+                               Expr.relative[ cur ]( checkSet, pop, contextXML );
+                       }
+
+               } else {
+                       checkSet = parts = [];
+               }
+       }
+
+       if ( !checkSet ) {
+               checkSet = set;
+       }
+
+       if ( !checkSet ) {
+               Sizzle.error( cur || selector );
+       }
+
+       if ( toString.call(checkSet) === "[object Array]" ) {
+               if ( !prune ) {
+                       results.push.apply( results, checkSet );
+
+               } else if ( context && context.nodeType === 1 ) {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+                                       results.push( set[i] );
+                               }
+                       }
+
+               } else {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+                                       results.push( set[i] );
+                               }
+                       }
+               }
+
+       } else {
+               makeArray( checkSet, results );
+       }
+
+       if ( extra ) {
+               Sizzle( extra, origContext, results, seed );
+               Sizzle.uniqueSort( results );
+       }
+
+       return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+       if ( sortOrder ) {
+               hasDuplicate = baseHasDuplicate;
+               results.sort( sortOrder );
+
+               if ( hasDuplicate ) {
+                       for ( var i = 1; i < results.length; i++ ) {
+                               if ( results[i] === results[ i - 1 ] ) {
+                                       results.splice( i--, 1 );
+                               }
+                       }
+               }
+       }
+
+       return results;
+};
+
+Sizzle.matches = function( expr, set ) {
+       return Sizzle( expr, null, null, set );
+};
+
+Sizzle.matchesSelector = function( node, expr ) {
+       return Sizzle( expr, null, null, [node] ).length > 0;
+};
+
+Sizzle.find = function( expr, context, isXML ) {
+       var set, i, len, match, type, left;
+
+       if ( !expr ) {
+               return [];
+       }
+
+       for ( i = 0, len = Expr.order.length; i < len; i++ ) {
+               type = Expr.order[i];
+               
+               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+                       left = match[1];
+                       match.splice( 1, 1 );
+
+                       if ( left.substr( left.length - 1 ) !== "\\" ) {
+                               match[1] = (match[1] || "").replace( rBackslash, "" );
+                               set = Expr.find[ type ]( match, context, isXML );
+
+                               if ( set != null ) {
+                                       expr = expr.replace( Expr.match[ type ], "" );
+                                       break;
+                               }
+                       }
+               }
+       }
+
+       if ( !set ) {
+               set = typeof context.getElementsByTagName !== "undefined" ?
+                       context.getElementsByTagName( "*" ) :
+                       [];
+       }
+
+       return { set: set, expr: expr };
+};
+
+Sizzle.filter = function( expr, set, inplace, not ) {
+       var match, anyFound,
+               type, found, item, filter, left,
+               i, pass,
+               old = expr,
+               result = [],
+               curLoop = set,
+               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+       while ( expr && set.length ) {
+               for ( type in Expr.filter ) {
+                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+                               filter = Expr.filter[ type ];
+                               left = match[1];
+
+                               anyFound = false;
+
+                               match.splice(1,1);
+
+                               if ( left.substr( left.length - 1 ) === "\\" ) {
+                                       continue;
+                               }
+
+                               if ( curLoop === result ) {
+                                       result = [];
+                               }
+
+                               if ( Expr.preFilter[ type ] ) {
+                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+                                       if ( !match ) {
+                                               anyFound = found = true;
+
+                                       } else if ( match === true ) {
+                                               continue;
+                                       }
+                               }
+
+                               if ( match ) {
+                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {
+                                               if ( item ) {
+                                                       found = filter( item, match, i, curLoop );
+                                                       pass = not ^ found;
+
+                                                       if ( inplace && found != null ) {
+                                                               if ( pass ) {
+                                                                       anyFound = true;
+
+                                                               } else {
+                                                                       curLoop[i] = false;
+                                                               }
+
+                                                       } else if ( pass ) {
+                                                               result.push( item );
+                                                               anyFound = true;
+                                                       }
+                                               }
+                                       }
+                               }
+
+                               if ( found !== undefined ) {
+                                       if ( !inplace ) {
+                                               curLoop = result;
+                                       }
+
+                                       expr = expr.replace( Expr.match[ type ], "" );
+
+                                       if ( !anyFound ) {
+                                               return [];
+                                       }
+
+                                       break;
+                               }
+                       }
+               }
+
+               // Improper expression
+               if ( expr === old ) {
+                       if ( anyFound == null ) {
+                               Sizzle.error( expr );
+
+                       } else {
+                               break;
+                       }
+               }
+
+               old = expr;
+       }
+
+       return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+       throw "Syntax error, unrecognized expression: " + msg;
+};
+
+/**
+ * Utility function for retreiving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+var getText = Sizzle.getText = function( elem ) {
+    var i, node,
+               nodeType = elem.nodeType,
+               ret = "";
+
+       if ( nodeType ) {
+               if ( nodeType === 1 ) {
+                       // Use textContent || innerText for elements
+                       if ( typeof elem.textContent === 'string' ) {
+                               return elem.textContent;
+                       } else if ( typeof elem.innerText === 'string' ) {
+                               // Replace IE's carriage returns
+                               return elem.innerText.replace( rReturn, '' );
+                       } else {
+                               // Traverse it's children
+                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
+                                       ret += getText( elem );
+                               }
+                       }
+               } else if ( nodeType === 3 || nodeType === 4 ) {
+                       return elem.nodeValue;
+               }
+       } else {
+
+               // If no nodeType, this is expected to be an array
+               for ( i = 0; (node = elem[i]); i++ ) {
+                       // Do not traverse comment nodes
+                       if ( node.nodeType !== 8 ) {
+                               ret += getText( node );
+                       }
+               }
+       }
+       return ret;
+};
+
+var Expr = Sizzle.selectors = {
+       order: [ "ID", "NAME", "TAG" ],
+
+       match: {
+               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+       },
+
+       leftMatch: {},
+
+       attrMap: {
+               "class": "className",
+               "for": "htmlFor"
+       },
+
+       attrHandle: {
+               href: function( elem ) {
+                       return elem.getAttribute( "href" );
+               },
+               type: function( elem ) {
+                       return elem.getAttribute( "type" );
+               }
+       },
+
+       relative: {
+               "+": function(checkSet, part){
+                       var isPartStr = typeof part === "string",
+                               isTag = isPartStr && !rNonWord.test( part ),
+                               isPartStrNotTag = isPartStr && !isTag;
+
+                       if ( isTag ) {
+                               part = part.toLowerCase();
+                       }
+
+                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+                               if ( (elem = checkSet[i]) ) {
+                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+                                               elem || false :
+                                               elem === part;
+                               }
+                       }
+
+                       if ( isPartStrNotTag ) {
+                               Sizzle.filter( part, checkSet, true );
+                       }
+               },
+
+               ">": function( checkSet, part ) {
+                       var elem,
+                               isPartStr = typeof part === "string",
+                               i = 0,
+                               l = checkSet.length;
+
+                       if ( isPartStr && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               var parent = elem.parentNode;
+                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+                                       }
+                               }
+
+                       } else {
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               checkSet[i] = isPartStr ?
+                                                       elem.parentNode :
+                                                       elem.parentNode === part;
+                                       }
+                               }
+
+                               if ( isPartStr ) {
+                                       Sizzle.filter( part, checkSet, true );
+                               }
+                       }
+               },
+
+               "": function(checkSet, part, isXML){
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+               },
+
+               "~": function( checkSet, part, isXML ) {
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
+               }
+       },
+
+       find: {
+               ID: function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+                               // Check parentNode to catch when Blackberry 4.6 returns
+                               // nodes that are no longer in the document #6963
+                               return m && m.parentNode ? [m] : [];
+                       }
+               },
+
+               NAME: function( match, context ) {
+                       if ( typeof context.getElementsByName !== "undefined" ) {
+                               var ret = [],
+                                       results = context.getElementsByName( match[1] );
+
+                               for ( var i = 0, l = results.length; i < l; i++ ) {
+                                       if ( results[i].getAttribute("name") === match[1] ) {
+                                               ret.push( results[i] );
+                                       }
+                               }
+
+                               return ret.length === 0 ? null : ret;
+                       }
+               },
+
+               TAG: function( match, context ) {
+                       if ( typeof context.getElementsByTagName !== "undefined" ) {
+                               return context.getElementsByTagName( match[1] );
+                       }
+               }
+       },
+       preFilter: {
+               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+                       match = " " + match[1].replace( rBackslash, "" ) + " ";
+
+                       if ( isXML ) {
+                               return match;
+                       }
+
+                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+                               if ( elem ) {
+                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+                                               if ( !inplace ) {
+                                                       result.push( elem );
+                                               }
+
+                                       } else if ( inplace ) {
+                                               curLoop[i] = false;
+                                       }
+                               }
+                       }
+
+                       return false;
+               },
+
+               ID: function( match ) {
+                       return match[1].replace( rBackslash, "" );
+               },
+
+               TAG: function( match, curLoop ) {
+                       return match[1].replace( rBackslash, "" ).toLowerCase();
+               },
+
+               CHILD: function( match ) {
+                       if ( match[1] === "nth" ) {
+                               if ( !match[2] ) {
+                                       Sizzle.error( match[0] );
+                               }
+
+                               match[2] = match[2].replace(/^\+|\s*/g, '');
+
+                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+                               // calculate the numbers (first)n+(last) including if they are negative
+                               match[2] = (test[1] + (test[2] || 1)) - 0;
+                               match[3] = test[3] - 0;
+                       }
+                       else if ( match[2] ) {
+                               Sizzle.error( match[0] );
+                       }
+
+                       // TODO: Move to normal caching system
+                       match[0] = done++;
+
+                       return match;
+               },
+
+               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+                       var name = match[1] = match[1].replace( rBackslash, "" );
+                       
+                       if ( !isXML && Expr.attrMap[name] ) {
+                               match[1] = Expr.attrMap[name];
+                       }
+
+                       // Handle if an un-quoted value was used
+                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
+
+                       if ( match[2] === "~=" ) {
+                               match[4] = " " + match[4] + " ";
+                       }
+
+                       return match;
+               },
+
+               PSEUDO: function( match, curLoop, inplace, result, not ) {
+                       if ( match[1] === "not" ) {
+                               // If we're dealing with a complex expression, or a simple one
+                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+                                       match[3] = Sizzle(match[3], null, null, curLoop);
+
+                               } else {
+                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+
+                                       if ( !inplace ) {
+                                               result.push.apply( result, ret );
+                                       }
+
+                                       return false;
+                               }
+
+                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+                               return true;
+                       }
+                       
+                       return match;
+               },
+
+               POS: function( match ) {
+                       match.unshift( true );
+
+                       return match;
+               }
+       },
+       
+       filters: {
+               enabled: function( elem ) {
+                       return elem.disabled === false && elem.type !== "hidden";
+               },
+
+               disabled: function( elem ) {
+                       return elem.disabled === true;
+               },
+
+               checked: function( elem ) {
+                       return elem.checked === true;
+               },
+               
+               selected: function( elem ) {
+                       // Accessing this property makes selected-by-default
+                       // options in Safari work properly
+                       if ( elem.parentNode ) {
+                               elem.parentNode.selectedIndex;
+                       }
+                       
+                       return elem.selected === true;
+               },
+
+               parent: function( elem ) {
+                       return !!elem.firstChild;
+               },
+
+               empty: function( elem ) {
+                       return !elem.firstChild;
+               },
+
+               has: function( elem, i, match ) {
+                       return !!Sizzle( match[3], elem ).length;
+               },
+
+               header: function( elem ) {
+                       return (/h\d/i).test( elem.nodeName );
+               },
+
+               text: function( elem ) {
+                       var attr = elem.getAttribute( "type" ), type = elem.type;
+                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
+                       // use getAttribute instead to test this case
+                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
+               },
+
+               radio: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
+               },
+
+               checkbox: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
+               },
+
+               file: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
+               },
+
+               password: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
+               },
+
+               submit: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "submit" === elem.type;
+               },
+
+               image: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
+               },
+
+               reset: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "reset" === elem.type;
+               },
+
+               button: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return name === "input" && "button" === elem.type || name === "button";
+               },
+
+               input: function( elem ) {
+                       return (/input|select|textarea|button/i).test( elem.nodeName );
+               },
+
+               focus: function( elem ) {
+                       return elem === elem.ownerDocument.activeElement;
+               }
+       },
+       setFilters: {
+               first: function( elem, i ) {
+                       return i === 0;
+               },
+
+               last: function( elem, i, match, array ) {
+                       return i === array.length - 1;
+               },
+
+               even: function( elem, i ) {
+                       return i % 2 === 0;
+               },
+
+               odd: function( elem, i ) {
+                       return i % 2 === 1;
+               },
+
+               lt: function( elem, i, match ) {
+                       return i < match[3] - 0;
+               },
+
+               gt: function( elem, i, match ) {
+                       return i > match[3] - 0;
+               },
+
+               nth: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               },
+
+               eq: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               }
+       },
+       filter: {
+               PSEUDO: function( elem, match, i, array ) {
+                       var name = match[1],
+                               filter = Expr.filters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+
+                       } else if ( name === "contains" ) {
+                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
+
+                       } else if ( name === "not" ) {
+                               var not = match[3];
+
+                               for ( var j = 0, l = not.length; j < l; j++ ) {
+                                       if ( not[j] === elem ) {
+                                               return false;
+                                       }
+                               }
+
+                               return true;
+
+                       } else {
+                               Sizzle.error( name );
+                       }
+               },
+
+               CHILD: function( elem, match ) {
+                       var first, last,
+                               doneName, parent, cache,
+                               count, diff,
+                               type = match[1],
+                               node = elem;
+
+                       switch ( type ) {
+                               case "only":
+                               case "first":
+                                       while ( (node = node.previousSibling) )  {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       if ( type === "first" ) { 
+                                               return true; 
+                                       }
+
+                                       node = elem;
+
+                               case "last":
+                                       while ( (node = node.nextSibling) )      {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       return true;
+
+                               case "nth":
+                                       first = match[2];
+                                       last = match[3];
+
+                                       if ( first === 1 && last === 0 ) {
+                                               return true;
+                                       }
+                                       
+                                       doneName = match[0];
+                                       parent = elem.parentNode;
+       
+                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
+                                               count = 0;
+                                               
+                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
+                                                       if ( node.nodeType === 1 ) {
+                                                               node.nodeIndex = ++count;
+                                                       }
+                                               } 
+
+                                               parent[ expando ] = doneName;
+                                       }
+                                       
+                                       diff = elem.nodeIndex - last;
+
+                                       if ( first === 0 ) {
+                                               return diff === 0;
+
+                                       } else {
+                                               return ( diff % first === 0 && diff / first >= 0 );
+                                       }
+                       }
+               },
+
+               ID: function( elem, match ) {
+                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
+               },
+
+               TAG: function( elem, match ) {
+                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
+               },
+               
+               CLASS: function( elem, match ) {
+                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
+                               .indexOf( match ) > -1;
+               },
+
+               ATTR: function( elem, match ) {
+                       var name = match[1],
+                               result = Sizzle.attr ?
+                                       Sizzle.attr( elem, name ) :
+                                       Expr.attrHandle[ name ] ?
+                                       Expr.attrHandle[ name ]( elem ) :
+                                       elem[ name ] != null ?
+                                               elem[ name ] :
+                                               elem.getAttribute( name ),
+                               value = result + "",
+                               type = match[2],
+                               check = match[4];
+
+                       return result == null ?
+                               type === "!=" :
+                               !type && Sizzle.attr ?
+                               result != null :
+                               type === "=" ?
+                               value === check :
+                               type === "*=" ?
+                               value.indexOf(check) >= 0 :
+                               type === "~=" ?
+                               (" " + value + " ").indexOf(check) >= 0 :
+                               !check ?
+                               value && result !== false :
+                               type === "!=" ?
+                               value !== check :
+                               type === "^=" ?
+                               value.indexOf(check) === 0 :
+                               type === "$=" ?
+                               value.substr(value.length - check.length) === check :
+                               type === "|=" ?
+                               value === check || value.substr(0, check.length + 1) === check + "-" :
+                               false;
+               },
+
+               POS: function( elem, match, i, array ) {
+                       var name = match[2],
+                               filter = Expr.setFilters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+                       }
+               }
+       }
+};
+
+var origPOS = Expr.match.POS,
+       fescape = function(all, num){
+               return "\\" + (num - 0 + 1);
+       };
+
+for ( var type in Expr.match ) {
+       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+
+var makeArray = function( array, results ) {
+       array = Array.prototype.slice.call( array, 0 );
+
+       if ( results ) {
+               results.push.apply( results, array );
+               return results;
+       }
+       
+       return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch( e ) {
+       makeArray = function( array, results ) {
+               var i = 0,
+                       ret = results || [];
+
+               if ( toString.call(array) === "[object Array]" ) {
+                       Array.prototype.push.apply( ret, array );
+
+               } else {
+                       if ( typeof array.length === "number" ) {
+                               for ( var l = array.length; i < l; i++ ) {
+                                       ret.push( array[i] );
+                               }
+
+                       } else {
+                               for ( ; array[i]; i++ ) {
+                                       ret.push( array[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       };
+}
+
+var sortOrder, siblingCheck;
+
+if ( document.documentElement.compareDocumentPosition ) {
+       sortOrder = function( a, b ) {
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+               }
+
+               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+                       return a.compareDocumentPosition ? -1 : 1;
+               }
+
+               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+       };
+
+} else {
+       sortOrder = function( a, b ) {
+               // The nodes are identical, we can exit early
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+
+               // Fallback to using sourceIndex (in IE) if it's available on both nodes
+               } else if ( a.sourceIndex && b.sourceIndex ) {
+                       return a.sourceIndex - b.sourceIndex;
+               }
+
+               var al, bl,
+                       ap = [],
+                       bp = [],
+                       aup = a.parentNode,
+                       bup = b.parentNode,
+                       cur = aup;
+
+               // If the nodes are siblings (or identical) we can do a quick check
+               if ( aup === bup ) {
+                       return siblingCheck( a, b );
+
+               // If no parents were found then the nodes are disconnected
+               } else if ( !aup ) {
+                       return -1;
+
+               } else if ( !bup ) {
+                       return 1;
+               }
+
+               // Otherwise they're somewhere else in the tree so we need
+               // to build up a full list of the parentNodes for comparison
+               while ( cur ) {
+                       ap.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               cur = bup;
+
+               while ( cur ) {
+                       bp.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               al = ap.length;
+               bl = bp.length;
+
+               // Start walking down the tree looking for a discrepancy
+               for ( var i = 0; i < al && i < bl; i++ ) {
+                       if ( ap[i] !== bp[i] ) {
+                               return siblingCheck( ap[i], bp[i] );
+                       }
+               }
+
+               // We ended someplace up the tree so do a sibling check
+               return i === al ?
+                       siblingCheck( a, bp[i], -1 ) :
+                       siblingCheck( ap[i], b, 1 );
+       };
+
+       siblingCheck = function( a, b, ret ) {
+               if ( a === b ) {
+                       return ret;
+               }
+
+               var cur = a.nextSibling;
+
+               while ( cur ) {
+                       if ( cur === b ) {
+                               return -1;
+                       }
+
+                       cur = cur.nextSibling;
+               }
+
+               return 1;
+       };
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+       // We're going to inject a fake input element with a specified name
+       var form = document.createElement("div"),
+               id = "script" + (new Date()).getTime(),
+               root = document.documentElement;
+
+       form.innerHTML = "<a name='" + id + "'/>";
+
+       // Inject it into the root element, check its status, and remove it quickly
+       root.insertBefore( form, root.firstChild );
+
+       // The workaround has to do additional checks after a getElementById
+       // Which slows things down for other browsers (hence the branching)
+       if ( document.getElementById( id ) ) {
+               Expr.find.ID = function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+
+                               return m ?
+                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+                                               [m] :
+                                               undefined :
+                                       [];
+                       }
+               };
+
+               Expr.filter.ID = function( elem, match ) {
+                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+
+                       return elem.nodeType === 1 && node && node.nodeValue === match;
+               };
+       }
+
+       root.removeChild( form );
+
+       // release memory in IE
+       root = form = null;
+})();
+
+(function(){
+       // Check to see if the browser returns only elements
+       // when doing getElementsByTagName("*")
+
+       // Create a fake element
+       var div = document.createElement("div");
+       div.appendChild( document.createComment("") );
+
+       // Make sure no comments are found
+       if ( div.getElementsByTagName("*").length > 0 ) {
+               Expr.find.TAG = function( match, context ) {
+                       var results = context.getElementsByTagName( match[1] );
+
+                       // Filter out possible comments
+                       if ( match[1] === "*" ) {
+                               var tmp = [];
+
+                               for ( var i = 0; results[i]; i++ ) {
+                                       if ( results[i].nodeType === 1 ) {
+                                               tmp.push( results[i] );
+                                       }
+                               }
+
+                               results = tmp;
+                       }
+
+                       return results;
+               };
+       }
+
+       // Check to see if an attribute returns normalized href attributes
+       div.innerHTML = "<a href='#'></a>";
+
+       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+                       div.firstChild.getAttribute("href") !== "#" ) {
+
+               Expr.attrHandle.href = function( elem ) {
+                       return elem.getAttribute( "href", 2 );
+               };
+       }
+
+       // release memory in IE
+       div = null;
+})();
+
+if ( document.querySelectorAll ) {
+       (function(){
+               var oldSizzle = Sizzle,
+                       div = document.createElement("div"),
+                       id = "__sizzle__";
+
+               div.innerHTML = "<p class='TEST'></p>";
+
+               // Safari can't handle uppercase or unicode characters when
+               // in quirks mode.
+               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+                       return;
+               }
+       
+               Sizzle = function( query, context, extra, seed ) {
+                       context = context || document;
+
+                       // Only use querySelectorAll on non-XML documents
+                       // (ID selectors don't work in non-HTML documents)
+                       if ( !seed && !Sizzle.isXML(context) ) {
+                               // See if we find a selector to speed up
+                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+                               
+                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+                                       // Speed-up: Sizzle("TAG")
+                                       if ( match[1] ) {
+                                               return makeArray( context.getElementsByTagName( query ), extra );
+                                       
+                                       // Speed-up: Sizzle(".CLASS")
+                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
+                                       }
+                               }
+                               
+                               if ( context.nodeType === 9 ) {
+                                       // Speed-up: Sizzle("body")
+                                       // The body element only exists once, optimize finding it
+                                       if ( query === "body" && context.body ) {
+                                               return makeArray( [ context.body ], extra );
+                                               
+                                       // Speed-up: Sizzle("#ID")
+                                       } else if ( match && match[3] ) {
+                                               var elem = context.getElementById( match[3] );
+
+                                               // Check parentNode to catch when Blackberry 4.6 returns
+                                               // nodes that are no longer in the document #6963
+                                               if ( elem && elem.parentNode ) {
+                                                       // Handle the case where IE and Opera return items
+                                                       // by name instead of ID
+                                                       if ( elem.id === match[3] ) {
+                                                               return makeArray( [ elem ], extra );
+                                                       }
+                                                       
+                                               } else {
+                                                       return makeArray( [], extra );
+                                               }
+                                       }
+                                       
+                                       try {
+                                               return makeArray( context.querySelectorAll(query), extra );
+                                       } catch(qsaError) {}
+
+                               // qSA works strangely on Element-rooted queries
+                               // We can work around this by specifying an extra ID on the root
+                               // and working up from there (Thanks to Andrew Dupont for the technique)
+                               // IE 8 doesn't work on object elements
+                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+                                       var oldContext = context,
+                                               old = context.getAttribute( "id" ),
+                                               nid = old || id,
+                                               hasParent = context.parentNode,
+                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+                                       if ( !old ) {
+                                               context.setAttribute( "id", nid );
+                                       } else {
+                                               nid = nid.replace( /'/g, "\\$&" );
+                                       }
+                                       if ( relativeHierarchySelector && hasParent ) {
+                                               context = context.parentNode;
+                                       }
+
+                                       try {
+                                               if ( !relativeHierarchySelector || hasParent ) {
+                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+                                               }
+
+                                       } catch(pseudoError) {
+                                       } finally {
+                                               if ( !old ) {
+                                                       oldContext.removeAttribute( "id" );
+                                               }
+                                       }
+                               }
+                       }
+               
+                       return oldSizzle(query, context, extra, seed);
+               };
+
+               for ( var prop in oldSizzle ) {
+                       Sizzle[ prop ] = oldSizzle[ prop ];
+               }
+
+               // release memory in IE
+               div = null;
+       })();
+}
+
+(function(){
+       var html = document.documentElement,
+               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
+
+       if ( matches ) {
+               // Check to see if it's possible to do matchesSelector
+               // on a disconnected node (IE 9 fails this)
+               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
+                       pseudoWorks = false;
+
+               try {
+                       // This should fail with an exception
+                       // Gecko does not error, returns false instead
+                       matches.call( document.documentElement, "[test!='']:sizzle" );
+       
+               } catch( pseudoError ) {
+                       pseudoWorks = true;
+               }
+
+               Sizzle.matchesSelector = function( node, expr ) {
+                       // Make sure that attribute selectors are quoted
+                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
+
+                       if ( !Sizzle.isXML( node ) ) {
+                               try { 
+                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+                                               var ret = matches.call( node, expr );
+
+                                               // IE 9's matchesSelector returns false on disconnected nodes
+                                               if ( ret || !disconnectedMatch ||
+                                                               // As well, disconnected nodes are said to be in a document
+                                                               // fragment in IE 9, so check for that
+                                                               node.document && node.document.nodeType !== 11 ) {
+                                                       return ret;
+                                               }
+                                       }
+                               } catch(e) {}
+                       }
+
+                       return Sizzle(expr, null, null, [node]).length > 0;
+               };
+       }
+})();
+
+(function(){
+       var div = document.createElement("div");
+
+       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+       // Opera can't find a second classname (in 9.6)
+       // Also, make sure that getElementsByClassName actually exists
+       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+               return;
+       }
+
+       // Safari caches class attributes, doesn't catch changes (in 3.2)
+       div.lastChild.className = "e";
+
+       if ( div.getElementsByClassName("e").length === 1 ) {
+               return;
+       }
+       
+       Expr.order.splice(1, 0, "CLASS");
+       Expr.find.CLASS = function( match, context, isXML ) {
+               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+                       return context.getElementsByClassName(match[1]);
+               }
+       };
+
+       // release memory in IE
+       div = null;
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 && !isXML ){
+                                       elem[ expando ] = doneName;
+                                       elem.sizset = i;
+                               }
+
+                               if ( elem.nodeName.toLowerCase() === cur ) {
+                                       match = elem;
+                                       break;
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+                       
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !isXML ) {
+                                               elem[ expando ] = doneName;
+                                               elem.sizset = i;
+                                       }
+
+                                       if ( typeof cur !== "string" ) {
+                                               if ( elem === cur ) {
+                                                       match = true;
+                                                       break;
+                                               }
+
+                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+                                               match = elem;
+                                               break;
+                                       }
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+if ( document.documentElement.contains ) {
+       Sizzle.contains = function( a, b ) {
+               return a !== b && (a.contains ? a.contains(b) : true);
+       };
+
+} else if ( document.documentElement.compareDocumentPosition ) {
+       Sizzle.contains = function( a, b ) {
+               return !!(a.compareDocumentPosition(b) & 16);
+       };
+
+} else {
+       Sizzle.contains = function() {
+               return false;
+       };
+}
+
+Sizzle.isXML = function( elem ) {
+       // documentElement is verified for cases where it doesn't yet exist
+       // (such as loading iframes in IE - #4833) 
+       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+
+       return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function( selector, context, seed ) {
+       var match,
+               tmpSet = [],
+               later = "",
+               root = context.nodeType ? [context] : context;
+
+       // Position selectors must be done after the filter
+       // And so must :not(positional) so we move all PSEUDOs to the end
+       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+               later += match[0];
+               selector = selector.replace( Expr.match.PSEUDO, "" );
+       }
+
+       selector = Expr.relative[selector] ? selector + "*" : selector;
+
+       for ( var i = 0, l = root.length; i < l; i++ ) {
+               Sizzle( selector, root[i], tmpSet, seed );
+       }
+
+       return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+// Override sizzle attribute retrieval
+Sizzle.attr = jQuery.attr;
+Sizzle.selectors.attrMap = {};
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})();
+
+
+var runtil = /Until$/,
+       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+       // Note: This RegExp should be improved, or likely pulled from Sizzle
+       rmultiselector = /,/,
+       isSimple = /^.[^:#\[\.,]*$/,
+       slice = Array.prototype.slice,
+       POS = jQuery.expr.match.POS,
+       // methods guaranteed to produce a unique set when starting from a unique set
+       guaranteedUnique = {
+               children: true,
+               contents: true,
+               next: true,
+               prev: true
+       };
+
+jQuery.fn.extend({
+       find: function( selector ) {
+               var self = this,
+                       i, l;
+
+               if ( typeof selector !== "string" ) {
+                       return jQuery( selector ).filter(function() {
+                               for ( i = 0, l = self.length; i < l; i++ ) {
+                                       if ( jQuery.contains( self[ i ], this ) ) {
+                                               return true;
+                                       }
+                               }
+                       });
+               }
+
+               var ret = this.pushStack( "", "find", selector ),
+                       length, n, r;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       length = ret.length;
+                       jQuery.find( selector, this[i], ret );
+
+                       if ( i > 0 ) {
+                               // Make sure that the results are unique
+                               for ( n = length; n < ret.length; n++ ) {
+                                       for ( r = 0; r < length; r++ ) {
+                                               if ( ret[r] === ret[n] ) {
+                                                       ret.splice(n--, 1);
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       has: function( target ) {
+               var targets = jQuery( target );
+               return this.filter(function() {
+                       for ( var i = 0, l = targets.length; i < l; i++ ) {
+                               if ( jQuery.contains( this, targets[i] ) ) {
+                                       return true;
+                               }
+                       }
+               });
+       },
+
+       not: function( selector ) {
+               return this.pushStack( winnow(this, selector, false), "not", selector);
+       },
+
+       filter: function( selector ) {
+               return this.pushStack( winnow(this, selector, true), "filter", selector );
+       },
+
+       is: function( selector ) {
+               return !!selector && ( 
+                       typeof selector === "string" ?
+                               // If this is a positional selector, check membership in the returned set
+                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
+                               POS.test( selector ) ? 
+                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
+                                       jQuery.filter( selector, this ).length > 0 :
+                               this.filter( selector ).length > 0 );
+       },
+
+       closest: function( selectors, context ) {
+               var ret = [], i, l, cur = this[0];
+               
+               // Array (deprecated as of jQuery 1.7)
+               if ( jQuery.isArray( selectors ) ) {
+                       var level = 1;
+
+                       while ( cur && cur.ownerDocument && cur !== context ) {
+                               for ( i = 0; i < selectors.length; i++ ) {
+
+                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {
+                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });
+                                       }
+                               }
+
+                               cur = cur.parentNode;
+                               level++;
+                       }
+
+                       return ret;
+               }
+
+               // String
+               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
+                               jQuery( selectors, context || this.context ) :
+                               0;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       cur = this[i];
+
+                       while ( cur ) {
+                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
+                                       ret.push( cur );
+                                       break;
+
+                               } else {
+                                       cur = cur.parentNode;
+                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
+
+               return this.pushStack( ret, "closest", selectors );
+       },
+
+       // Determine the position of an element within
+       // the matched set of elements
+       index: function( elem ) {
+
+               // No argument, return index in parent
+               if ( !elem ) {
+                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
+               }
+
+               // index in selector
+               if ( typeof elem === "string" ) {
+                       return jQuery.inArray( this[0], jQuery( elem ) );
+               }
+
+               // Locate the position of the desired element
+               return jQuery.inArray(
+                       // If it receives a jQuery object, the first element is used
+                       elem.jquery ? elem[0] : elem, this );
+       },
+
+       add: function( selector, context ) {
+               var set = typeof selector === "string" ?
+                               jQuery( selector, context ) :
+                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
+                       all = jQuery.merge( this.get(), set );
+
+               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+                       all :
+                       jQuery.unique( all ) );
+       },
+
+       andSelf: function() {
+               return this.add( this.prevObject );
+       }
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+       return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+       parent: function( elem ) {
+               var parent = elem.parentNode;
+               return parent && parent.nodeType !== 11 ? parent : null;
+       },
+       parents: function( elem ) {
+               return jQuery.dir( elem, "parentNode" );
+       },
+       parentsUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "parentNode", until );
+       },
+       next: function( elem ) {
+               return jQuery.nth( elem, 2, "nextSibling" );
+       },
+       prev: function( elem ) {
+               return jQuery.nth( elem, 2, "previousSibling" );
+       },
+       nextAll: function( elem ) {
+               return jQuery.dir( elem, "nextSibling" );
+       },
+       prevAll: function( elem ) {
+               return jQuery.dir( elem, "previousSibling" );
+       },
+       nextUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "nextSibling", until );
+       },
+       prevUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "previousSibling", until );
+       },
+       siblings: function( elem ) {
+               return jQuery.sibling( elem.parentNode.firstChild, elem );
+       },
+       children: function( elem ) {
+               return jQuery.sibling( elem.firstChild );
+       },
+       contents: function( elem ) {
+               return jQuery.nodeName( elem, "iframe" ) ?
+                       elem.contentDocument || elem.contentWindow.document :
+                       jQuery.makeArray( elem.childNodes );
+       }
+}, function( name, fn ) {
+       jQuery.fn[ name ] = function( until, selector ) {
+               var ret = jQuery.map( this, fn, until ),
+                       // The variable 'args' was introduced in
+                       // https://github.com/jquery/jquery/commit/52a0238
+                       // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
+                       // http://code.google.com/p/v8/issues/detail?id=1050
+                       args = slice.call(arguments);
+
+               if ( !runtil.test( name ) ) {
+                       selector = until;
+               }
+
+               if ( selector && typeof selector === "string" ) {
+                       ret = jQuery.filter( selector, ret );
+               }
+
+               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
+
+               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+                       ret = ret.reverse();
+               }
+
+               return this.pushStack( ret, name, args.join(",") );
+       };
+});
+
+jQuery.extend({
+       filter: function( expr, elems, not ) {
+               if ( not ) {
+                       expr = ":not(" + expr + ")";
+               }
+
+               return elems.length === 1 ?
+                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
+                       jQuery.find.matches(expr, elems);
+       },
+
+       dir: function( elem, dir, until ) {
+               var matched = [],
+                       cur = elem[ dir ];
+
+               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+                       if ( cur.nodeType === 1 ) {
+                               matched.push( cur );
+                       }
+                       cur = cur[dir];
+               }
+               return matched;
+       },
+
+       nth: function( cur, result, dir, elem ) {
+               result = result || 1;
+               var num = 0;
+
+               for ( ; cur; cur = cur[dir] ) {
+                       if ( cur.nodeType === 1 && ++num === result ) {
+                               break;
+                       }
+               }
+
+               return cur;
+       },
+
+       sibling: function( n, elem ) {
+               var r = [];
+
+               for ( ; n; n = n.nextSibling ) {
+                       if ( n.nodeType === 1 && n !== elem ) {
+                               r.push( n );
+                       }
+               }
+
+               return r;
+       }
+});
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, keep ) {
+
+       // Can't pass null or undefined to indexOf in Firefox 4
+       // Set to 0 to skip string check
+       qualifier = qualifier || 0;
+
+       if ( jQuery.isFunction( qualifier ) ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       var retVal = !!qualifier.call( elem, i, elem );
+                       return retVal === keep;
+               });
+
+       } else if ( qualifier.nodeType ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       return ( elem === qualifier ) === keep;
+               });
+
+       } else if ( typeof qualifier === "string" ) {
+               var filtered = jQuery.grep(elements, function( elem ) {
+                       return elem.nodeType === 1;
+               });
+
+               if ( isSimple.test( qualifier ) ) {
+                       return jQuery.filter(qualifier, filtered, !keep);
+               } else {
+                       qualifier = jQuery.filter( qualifier, filtered );
+               }
+       }
+
+       return jQuery.grep(elements, function( elem, i ) {
+               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
+       });
+}
+
+
+
+
+function createSafeFragment( document ) {
+       var list = nodeNames.split( " " ),
+       safeFrag = document.createDocumentFragment();
+
+       if ( safeFrag.createElement ) {
+               while ( list.length ) {
+                       safeFrag.createElement(
+                               list.pop()
+                       );
+               }
+       }
+       return safeFrag;
+}
+
+var nodeNames = "abbr article aside audio canvas datalist details figcaption figure footer " +
+               "header hgroup mark meter nav output progress section summary time video",
+       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+       rleadingWhitespace = /^\s+/,
+       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
+       rtagName = /<([\w:]+)/,
+       rtbody = /<tbody/i,
+       rhtml = /<|&#?\w+;/,
+       rnoInnerhtml = /<(?:script|style)/i,
+       rnocache = /<(?:script|object|embed|option|style)/i,
+       rnoshimcache = new RegExp("<(?:" + nodeNames.replace(" ", "|") + ")", "i"),
+       // checked="checked" or checked
+       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+       rscriptType = /\/(java|ecma)script/i,
+       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
+       wrapMap = {
+               option: [ 1, "<select multiple='multiple'>", "</select>" ],
+               legend: [ 1, "<fieldset>", "</fieldset>" ],
+               thead: [ 1, "<table>", "</table>" ],
+               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+               area: [ 1, "<map>", "</map>" ],
+               _default: [ 0, "", "" ]
+       },
+       safeFragment = createSafeFragment( document );
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize <link> and <script> tags normally
+if ( !jQuery.support.htmlSerialize ) {
+       wrapMap._default = [ 1, "div<div>", "</div>" ];
+}
+
+jQuery.fn.extend({
+       text: function( text ) {
+               if ( jQuery.isFunction(text) ) {
+                       return this.each(function(i) {
+                               var self = jQuery( this );
+
+                               self.text( text.call(this, i, self.text()) );
+                       });
+               }
+
+               if ( typeof text !== "object" && text !== undefined ) {
+                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+               }
+
+               return jQuery.text( this );
+       },
+
+       wrapAll: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapAll( html.call(this, i) );
+                       });
+               }
+
+               if ( this[0] ) {
+                       // The elements to wrap the target around
+                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+                       if ( this[0].parentNode ) {
+                               wrap.insertBefore( this[0] );
+                       }
+
+                       wrap.map(function() {
+                               var elem = this;
+
+                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+                                       elem = elem.firstChild;
+                               }
+
+                               return elem;
+                       }).append( this );
+               }
+
+               return this;
+       },
+
+       wrapInner: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapInner( html.call(this, i) );
+                       });
+               }
+
+               return this.each(function() {
+                       var self = jQuery( this ),
+                               contents = self.contents();
+
+                       if ( contents.length ) {
+                               contents.wrapAll( html );
+
+                       } else {
+                               self.append( html );
+                       }
+               });
+       },
+
+       wrap: function( html ) {
+               return this.each(function() {
+                       jQuery( this ).wrapAll( html );
+               });
+       },
+
+       unwrap: function() {
+               return this.parent().each(function() {
+                       if ( !jQuery.nodeName( this, "body" ) ) {
+                               jQuery( this ).replaceWith( this.childNodes );
+                       }
+               }).end();
+       },
+
+       append: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.appendChild( elem );
+                       }
+               });
+       },
+
+       prepend: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.insertBefore( elem, this.firstChild );
+                       }
+               });
+       },
+
+       before: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this );
+                       });
+               } else if ( arguments.length ) {
+                       var set = jQuery(arguments[0]);
+                       set.push.apply( set, this.toArray() );
+                       return this.pushStack( set, "before", arguments );
+               }
+       },
+
+       after: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this.nextSibling );
+                       });
+               } else if ( arguments.length ) {
+                       var set = this.pushStack( this, "after", arguments );
+                       set.push.apply( set, jQuery(arguments[0]).toArray() );
+                       return set;
+               }
+       },
+
+       // keepData is for internal use only--do not document
+       remove: function( selector, keepData ) {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+                               if ( !keepData && elem.nodeType === 1 ) {
+                                       jQuery.cleanData( elem.getElementsByTagName("*") );
+                                       jQuery.cleanData( [ elem ] );
+                               }
+
+                               if ( elem.parentNode ) {
+                                       elem.parentNode.removeChild( elem );
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       empty: function() {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       // Remove element nodes and prevent memory leaks
+                       if ( elem.nodeType === 1 ) {
+                               jQuery.cleanData( elem.getElementsByTagName("*") );
+                       }
+
+                       // Remove any remaining nodes
+                       while ( elem.firstChild ) {
+                               elem.removeChild( elem.firstChild );
+                       }
+               }
+
+               return this;
+       },
+
+       clone: function( dataAndEvents, deepDataAndEvents ) {
+               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+               return this.map( function () {
+                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+               });
+       },
+
+       html: function( value ) {
+               if ( value === undefined ) {
+                       return this[0] && this[0].nodeType === 1 ?
+                               this[0].innerHTML.replace(rinlinejQuery, "") :
+                               null;
+
+               // See if we can take a shortcut and just use innerHTML
+               } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
+
+                       value = value.replace(rxhtmlTag, "<$1></$2>");
+
+                       try {
+                               for ( var i = 0, l = this.length; i < l; i++ ) {
+                                       // Remove element nodes and prevent memory leaks
+                                       if ( this[i].nodeType === 1 ) {
+                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
+                                               this[i].innerHTML = value;
+                                       }
+                               }
+
+                       // If using innerHTML throws an exception, use the fallback method
+                       } catch(e) {
+                               this.empty().append( value );
+                       }
+
+               } else if ( jQuery.isFunction( value ) ) {
+                       this.each(function(i){
+                               var self = jQuery( this );
+
+                               self.html( value.call(this, i, self.html()) );
+                       });
+
+               } else {
+                       this.empty().append( value );
+               }
+
+               return this;
+       },
+
+       replaceWith: function( value ) {
+               if ( this[0] && this[0].parentNode ) {
+                       // Make sure that the elements are removed from the DOM before they are inserted
+                       // this can help fix replacing a parent with child elements
+                       if ( jQuery.isFunction( value ) ) {
+                               return this.each(function(i) {
+                                       var self = jQuery(this), old = self.html();
+                                       self.replaceWith( value.call( this, i, old ) );
+                               });
+                       }
+
+                       if ( typeof value !== "string" ) {
+                               value = jQuery( value ).detach();
+                       }
+
+                       return this.each(function() {
+                               var next = this.nextSibling,
+                                       parent = this.parentNode;
+
+                               jQuery( this ).remove();
+
+                               if ( next ) {
+                                       jQuery(next).before( value );
+                               } else {
+                                       jQuery(parent).append( value );
+                               }
+                       });
+               } else {
+                       return this.length ?
+                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
+                               this;
+               }
+       },
+
+       detach: function( selector ) {
+               return this.remove( selector, true );
+       },
+
+       domManip: function( args, table, callback ) {
+               var results, first, fragment, parent,
+                       value = args[0],
+                       scripts = [];
+
+               // We can't cloneNode fragments that contain checked, in WebKit
+               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
+                       return this.each(function() {
+                               jQuery(this).domManip( args, table, callback, true );
+                       });
+               }
+
+               if ( jQuery.isFunction(value) ) {
+                       return this.each(function(i) {
+                               var self = jQuery(this);
+                               args[0] = value.call(this, i, table ? self.html() : undefined);
+                               self.domManip( args, table, callback );
+                       });
+               }
+
+               if ( this[0] ) {
+                       parent = value && value.parentNode;
+
+                       // If we're in a fragment, just use that instead of building a new one
+                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+                               results = { fragment: parent };
+
+                       } else {
+                               results = jQuery.buildFragment( args, this, scripts );
+                       }
+
+                       fragment = results.fragment;
+
+                       if ( fragment.childNodes.length === 1 ) {
+                               first = fragment = fragment.firstChild;
+                       } else {
+                               first = fragment.firstChild;
+                       }
+
+                       if ( first ) {
+                               table = table && jQuery.nodeName( first, "tr" );
+
+                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
+                                       callback.call(
+                                               table ?
+                                                       root(this[i], first) :
+                                                       this[i],
+                                               // Make sure that we do not leak memory by inadvertently discarding
+                                               // the original fragment (which might have attached data) instead of
+                                               // using it; in addition, use the original fragment object for the last
+                                               // item instead of first because it can end up being emptied incorrectly
+                                               // in certain situations (Bug #8070).
+                                               // Fragments from the fragment cache must always be cloned and never used
+                                               // in place.
+                                               results.cacheable || ( l > 1 && i < lastIndex ) ?
+                                                       jQuery.clone( fragment, true, true ) :
+                                                       fragment
+                                       );
+                               }
+                       }
+
+                       if ( scripts.length ) {
+                               jQuery.each( scripts, evalScript );
+                       }
+               }
+
+               return this;
+       }
+});
+
+function root( elem, cur ) {
+       return jQuery.nodeName(elem, "table") ?
+               (elem.getElementsByTagName("tbody")[0] ||
+               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+               elem;
+}
+
+function cloneCopyEvent( src, dest ) {
+
+       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
+               return;
+       }
+
+       var type, i, l,
+               oldData = jQuery._data( src ),
+               curData = jQuery._data( dest, oldData ),
+               events = oldData.events;
+
+       if ( events ) {
+               delete curData.handle;
+               curData.events = {};
+
+               for ( type in events ) {
+                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+                               jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
+                       }
+               }
+       }
+
+       // make the cloned public data object a copy from the original
+       if ( curData.data ) {
+               curData.data = jQuery.extend( {}, curData.data );
+       }
+}
+
+function cloneFixAttributes( src, dest ) {
+       var nodeName;
+
+       // We do not need to do anything for non-Elements
+       if ( dest.nodeType !== 1 ) {
+               return;
+       }
+
+       // clearAttributes removes the attributes, which we don't want,
+       // but also removes the attachEvent events, which we *do* want
+       if ( dest.clearAttributes ) {
+               dest.clearAttributes();
+       }
+
+       // mergeAttributes, in contrast, only merges back on the
+       // original attributes, not the events
+       if ( dest.mergeAttributes ) {
+               dest.mergeAttributes( src );
+       }
+
+       nodeName = dest.nodeName.toLowerCase();
+
+       // IE6-8 fail to clone children inside object elements that use
+       // the proprietary classid attribute value (rather than the type
+       // attribute) to identify the type of content to display
+       if ( nodeName === "object" ) {
+               dest.outerHTML = src.outerHTML;
+
+       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
+               // IE6-8 fails to persist the checked state of a cloned checkbox
+               // or radio button. Worse, IE6-7 fail to give the cloned element
+               // a checked appearance if the defaultChecked value isn't also set
+               if ( src.checked ) {
+                       dest.defaultChecked = dest.checked = src.checked;
+               }
+
+               // IE6-7 get confused and end up setting the value of a cloned
+               // checkbox/radio button to an empty string instead of "on"
+               if ( dest.value !== src.value ) {
+                       dest.value = src.value;
+               }
+
+       // IE6-8 fails to return the selected option to the default selected
+       // state when cloning options
+       } else if ( nodeName === "option" ) {
+               dest.selected = src.defaultSelected;
+
+       // IE6-8 fails to set the defaultValue to the correct value when
+       // cloning other types of input fields
+       } else if ( nodeName === "input" || nodeName === "textarea" ) {
+               dest.defaultValue = src.defaultValue;
+       }
+
+       // Event data gets referenced instead of copied if the expando
+       // gets copied too
+       dest.removeAttribute( jQuery.expando );
+}
+
+jQuery.buildFragment = function( args, nodes, scripts ) {
+       var fragment, cacheable, cacheresults, doc,
+       first = args[ 0 ];
+
+       // nodes may contain either an explicit document object,
+       // a jQuery collection or context object.
+       // If nodes[0] contains a valid object to assign to doc
+       if ( nodes && nodes[0] ) {
+               doc = nodes[0].ownerDocument || nodes[0];
+       }
+
+  // Ensure that an attr object doesn't incorrectly stand in as a document object
+       // Chrome and Firefox seem to allow this to occur and will throw exception
+       // Fixes #8950
+       if ( !doc.createDocumentFragment ) {
+               doc = document;
+       }
+
+       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
+       // Cloning options loses the selected state, so don't cache them
+       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
+       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
+       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
+               first.charAt(0) === "<" && !rnocache.test( first ) &&
+               (jQuery.support.checkClone || !rchecked.test( first )) &&
+               (!jQuery.support.unknownElems && rnoshimcache.test( first )) ) {
+
+               cacheable = true;
+
+               cacheresults = jQuery.fragments[ first ];
+               if ( cacheresults && cacheresults !== 1 ) {
+                       fragment = cacheresults;
+               }
+       }
+
+       if ( !fragment ) {
+               fragment = doc.createDocumentFragment();
+               jQuery.clean( args, doc, fragment, scripts );
+       }
+
+       if ( cacheable ) {
+               jQuery.fragments[ first ] = cacheresults ? fragment : 1;
+       }
+
+       return { fragment: fragment, cacheable: cacheable };
+};
+
+jQuery.fragments = {};
+
+jQuery.each({
+       appendTo: "append",
+       prependTo: "prepend",
+       insertBefore: "before",
+       insertAfter: "after",
+       replaceAll: "replaceWith"
+}, function( name, original ) {
+       jQuery.fn[ name ] = function( selector ) {
+               var ret = [],
+                       insert = jQuery( selector ),
+                       parent = this.length === 1 && this[0].parentNode;
+
+               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+                       insert[ original ]( this[0] );
+                       return this;
+
+               } else {
+                       for ( var i = 0, l = insert.length; i < l; i++ ) {
+                               var elems = ( i > 0 ? this.clone(true) : this ).get();
+                               jQuery( insert[i] )[ original ]( elems );
+                               ret = ret.concat( elems );
+                       }
+
+                       return this.pushStack( ret, name, insert.selector );
+               }
+       };
+});
+
+function getAll( elem ) {
+       if ( typeof elem.getElementsByTagName !== "undefined" ) {
+               return elem.getElementsByTagName( "*" );
+
+       } else if ( typeof elem.querySelectorAll !== "undefined" ) {
+               return elem.querySelectorAll( "*" );
+
+       } else {
+               return [];
+       }
+}
+
+// Used in clean, fixes the defaultChecked property
+function fixDefaultChecked( elem ) {
+       if ( elem.type === "checkbox" || elem.type === "radio" ) {
+               elem.defaultChecked = elem.checked;
+       }
+}
+// Finds all inputs and passes them to fixDefaultChecked
+function findInputs( elem ) {
+       var nodeName = ( elem.nodeName || "" ).toLowerCase();
+       if ( nodeName === "input" ) {
+               fixDefaultChecked( elem );
+       // Skip scripts, get other children
+       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
+               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
+       }
+}
+
+jQuery.extend({
+       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+               var clone = elem.cloneNode(true),
+                               srcElements,
+                               destElements,
+                               i;
+
+               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
+                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
+                       // IE copies events bound via attachEvent when using cloneNode.
+                       // Calling detachEvent on the clone will also remove the events
+                       // from the original. In order to get around this, we use some
+                       // proprietary methods to clear the events. Thanks to MooTools
+                       // guys for this hotness.
+
+                       cloneFixAttributes( elem, clone );
+
+                       // Using Sizzle here is crazy slow, so we use getElementsByTagName
+                       // instead
+                       srcElements = getAll( elem );
+                       destElements = getAll( clone );
+
+                       // Weird iteration because IE will replace the length property
+                       // with an element if you are cloning the body and one of the
+                       // elements on the page has a name or id of "length"
+                       for ( i = 0; srcElements[i]; ++i ) {
+                               // Ensure that the destination node is not null; Fixes #9587
+                               if ( destElements[i] ) {
+                                       cloneFixAttributes( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               // Copy the events from the original to the clone
+               if ( dataAndEvents ) {
+                       cloneCopyEvent( elem, clone );
+
+                       if ( deepDataAndEvents ) {
+                               srcElements = getAll( elem );
+                               destElements = getAll( clone );
+
+                               for ( i = 0; srcElements[i]; ++i ) {
+                                       cloneCopyEvent( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               srcElements = destElements = null;
+
+               // Return the cloned set
+               return clone;
+       },
+
+       clean: function( elems, context, fragment, scripts ) {
+               var checkScriptType;
+
+               context = context || document;
+
+               // !context.createElement fails in IE with an error but returns typeof 'object'
+               if ( typeof context.createElement === "undefined" ) {
+                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+               }
+
+               var ret = [], j;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( typeof elem === "number" ) {
+                               elem += "";
+                       }
+
+                       if ( !elem ) {
+                               continue;
+                       }
+
+                       // Convert html string into DOM nodes
+                       if ( typeof elem === "string" ) {
+                               if ( !rhtml.test( elem ) ) {
+                                       elem = context.createTextNode( elem );
+                               } else {
+                                       // Fix "XHTML"-style tags in all browsers
+                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
+
+                                       // Trim whitespace, otherwise indexOf won't work as expected
+                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
+                                               wrap = wrapMap[ tag ] || wrapMap._default,
+                                               depth = wrap[0],
+                                               div = context.createElement("div");
+
+                                       // Append wrapper element to unknown element safe doc fragment
+                                       if ( context === document ) {
+                                               // Use the fragment we've already created for this document
+                                               safeFragment.appendChild( div );
+                                       } else {
+                                               // Use a fragment created with the owner document
+                                               createSafeFragment( context ).appendChild( div );
+                                       }
+
+                                       // Go to html and back, then peel off extra wrappers
+                                       div.innerHTML = wrap[1] + elem + wrap[2];
+
+                                       // Move to the right depth
+                                       while ( depth-- ) {
+                                               div = div.lastChild;
+                                       }
+
+                                       // Remove IE's autoinserted <tbody> from table fragments
+                                       if ( !jQuery.support.tbody ) {
+
+                                               // String was a <table>, *may* have spurious <tbody>
+                                               var hasBody = rtbody.test(elem),
+                                                       tbody = tag === "table" && !hasBody ?
+                                                               div.firstChild && div.firstChild.childNodes :
+
+                                                               // String was a bare <thead> or <tfoot>
+                                                               wrap[1] === "<table>" && !hasBody ?
+                                                                       div.childNodes :
+                                                                       [];
+
+                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
+                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
+                                                       }
+                                               }
+                                       }
+
+                                       // IE completely kills leading whitespace when innerHTML is used
+                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+                                       }
+
+                                       elem = div.childNodes;
+                               }
+                       }
+
+                       // Resets defaultChecked for any radios and checkboxes
+                       // about to be appended to the DOM in IE 6/7 (#8060)
+                       var len;
+                       if ( !jQuery.support.appendChecked ) {
+                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
+                                       for ( j = 0; j < len; j++ ) {
+                                               findInputs( elem[j] );
+                                       }
+                               } else {
+                                       findInputs( elem );
+                               }
+                       }
+
+                       if ( elem.nodeType ) {
+                               ret.push( elem );
+                       } else {
+                               ret = jQuery.merge( ret, elem );
+                       }
+               }
+
+               if ( fragment ) {
+                       checkScriptType = function( elem ) {
+                               return !elem.type || rscriptType.test( elem.type );
+                       };
+                       for ( i = 0; ret[i]; i++ ) {
+                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+
+                               } else {
+                                       if ( ret[i].nodeType === 1 ) {
+                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
+
+                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
+                                       }
+                                       fragment.appendChild( ret[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       cleanData: function( elems ) {
+               var data, id,
+                       cache = jQuery.cache,
+                       special = jQuery.event.special,
+                       deleteExpando = jQuery.support.deleteExpando;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+                               continue;
+                       }
+
+                       id = elem[ jQuery.expando ];
+
+                       if ( id ) {
+                               data = cache[ id ];
+
+                               if ( data && data.events ) {
+                                       for ( var type in data.events ) {
+                                               if ( special[ type ] ) {
+                                                       jQuery.event.remove( elem, type );
+
+                                               // This is a shortcut to avoid jQuery.event.remove's overhead
+                                               } else {
+                                                       jQuery.removeEvent( elem, type, data.handle );
+                                               }
+                                       }
+
+                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
+                                       if ( data.handle ) {
+                                               data.handle.elem = null;
+                                       }
+                               }
+
+                               if ( deleteExpando ) {
+                                       delete elem[ jQuery.expando ];
+
+                               } else if ( elem.removeAttribute ) {
+                                       elem.removeAttribute( jQuery.expando );
+                               }
+
+                               delete cache[ id ];
+                       }
+               }
+       }
+});
+
+function evalScript( i, elem ) {
+       if ( elem.src ) {
+               jQuery.ajax({
+                       url: elem.src,
+                       async: false,
+                       dataType: "script"
+               });
+       } else {
+               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
+       }
+
+       if ( elem.parentNode ) {
+               elem.parentNode.removeChild( elem );
+       }
+}
+
+
+
+
+var ralpha = /alpha\([^)]*\)/i,
+       ropacity = /opacity=([^)]*)/,
+       // fixed for IE9, see #8346
+       rupper = /([A-Z]|^ms)/g,
+       rnumpx = /^-?\d+(?:px)?$/i,
+       rnum = /^-?\d/,
+       rrelNum = /^([\-+])=([\-+.\de]+)/,
+
+       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+       cssWidth = [ "Left", "Right" ],
+       cssHeight = [ "Top", "Bottom" ],
+       curCSS,
+
+       getComputedStyle,
+       currentStyle;
+
+jQuery.fn.css = function( name, value ) {
+       // Setting 'undefined' is a no-op
+       if ( arguments.length === 2 && value === undefined ) {
+               return this;
+       }
+
+       return jQuery.access( this, name, value, true, function( elem, name, value ) {
+               return value !== undefined ?
+                       jQuery.style( elem, name, value ) :
+                       jQuery.css( elem, name );
+       });
+};
+
+jQuery.extend({
+       // Add in style property hooks for overriding the default
+       // behavior of getting and setting a style property
+       cssHooks: {
+               opacity: {
+                       get: function( elem, computed ) {
+                               if ( computed ) {
+                                       // We should always get a number back from opacity
+                                       var ret = curCSS( elem, "opacity", "opacity" );
+                                       return ret === "" ? "1" : ret;
+
+                               } else {
+                                       return elem.style.opacity;
+                               }
+                       }
+               }
+       },
+
+       // Exclude the following css properties to add px
+       cssNumber: {
+               "fillOpacity": true,
+               "fontWeight": true,
+               "lineHeight": true,
+               "opacity": true,
+               "orphans": true,
+               "widows": true,
+               "zIndex": true,
+               "zoom": true
+       },
+
+       // Add in properties whose names you wish to fix before
+       // setting or getting the value
+       cssProps: {
+               // normalize float css property
+               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
+       },
+
+       // Get and set the style property on a DOM Node
+       style: function( elem, name, value, extra ) {
+               // Don't set styles on text and comment nodes
+               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+                       return;
+               }
+
+               // Make sure that we're working with the right name
+               var ret, type, origName = jQuery.camelCase( name ),
+                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
+
+               name = jQuery.cssProps[ origName ] || origName;
+
+               // Check if we're setting a value
+               if ( value !== undefined ) {
+                       type = typeof value;
+
+                       // convert relative number strings (+= or -=) to relative numbers. #7345
+                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
+                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
+                               // Fixes bug #9237
+                               type = "number";
+                       }
+
+                       // Make sure that NaN and null values aren't set. See: #7116
+                       if ( value == null || type === "number" && isNaN( value ) ) {
+                               return;
+                       }
+
+                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
+                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
+                               value += "px";
+                       }
+
+                       // If a hook was provided, use that value, otherwise just set the specified value
+                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
+                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
+                               // Fixes bug #5509
+                               try {
+                                       style[ name ] = value;
+                               } catch(e) {}
+                       }
+
+               } else {
+                       // If a hook was provided get the non-computed value from there
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
+                               return ret;
+                       }
+
+                       // Otherwise just get the value from the style object
+                       return style[ name ];
+               }
+       },
+
+       css: function( elem, name, extra ) {
+               var ret, hooks;
+
+               // Make sure that we're working with the right name
+               name = jQuery.camelCase( name );
+               hooks = jQuery.cssHooks[ name ];
+               name = jQuery.cssProps[ name ] || name;
+
+               // cssFloat needs a special treatment
+               if ( name === "cssFloat" ) {
+                       name = "float";
+               }
+
+               // If a hook was provided get the computed value from there
+               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
+                       return ret;
+
+               // Otherwise, if a way to get the computed value exists, use that
+               } else if ( curCSS ) {
+                       return curCSS( elem, name );
+               }
+       },
+
+       // A method for quickly swapping in/out CSS properties to get correct calculations
+       swap: function( elem, options, callback ) {
+               var old = {};
+
+               // Remember the old values, and insert the new ones
+               for ( var name in options ) {
+                       old[ name ] = elem.style[ name ];
+                       elem.style[ name ] = options[ name ];
+               }
+
+               callback.call( elem );
+
+               // Revert the old values
+               for ( name in options ) {
+                       elem.style[ name ] = old[ name ];
+               }
+       }
+});
+
+// DEPRECATED, Use jQuery.css() instead
+jQuery.curCSS = jQuery.css;
+
+jQuery.each(["height", "width"], function( i, name ) {
+       jQuery.cssHooks[ name ] = {
+               get: function( elem, computed, extra ) {
+                       var val;
+
+                       if ( computed ) {
+                               if ( elem.offsetWidth !== 0 ) {
+                                       return getWH( elem, name, extra );
+                               } else {
+                                       jQuery.swap( elem, cssShow, function() {
+                                               val = getWH( elem, name, extra );
+                                       });
+                               }
+
+                               return val;
+                       }
+               },
+
+               set: function( elem, value ) {
+                       if ( rnumpx.test( value ) ) {
+                               // ignore negative width and height values #1599
+                               value = parseFloat( value );
+
+                               if ( value >= 0 ) {
+                                       return value + "px";
+                               }
+
+                       } else {
+                               return value;
+                       }
+               }
+       };
+});
+
+if ( !jQuery.support.opacity ) {
+       jQuery.cssHooks.opacity = {
+               get: function( elem, computed ) {
+                       // IE uses filters for opacity
+                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
+                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
+                               computed ? "1" : "";
+               },
+
+               set: function( elem, value ) {
+                       var style = elem.style,
+                               currentStyle = elem.currentStyle,
+                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
+                               filter = currentStyle && currentStyle.filter || style.filter || "";
+
+                       // IE has trouble with opacity if it does not have layout
+                       // Force it by setting the zoom level
+                       style.zoom = 1;
+
+                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
+                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
+
+                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
+                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
+                               // style.removeAttribute is IE Only, but so apparently is this code path...
+                               style.removeAttribute( "filter" );
+
+                               // if there there is no filter style applied in a css rule, we are done
+                               if ( currentStyle && !currentStyle.filter ) {
+                                       return;
+                               }
+                       }
+
+                       // otherwise, set new filter values
+                       style.filter = ralpha.test( filter ) ?
+                               filter.replace( ralpha, opacity ) :
+                               filter + " " + opacity;
+               }
+       };
+}
+
+jQuery(function() {
+       // This hook cannot be added until DOM ready because the support test
+       // for it is not run until after DOM ready
+       if ( !jQuery.support.reliableMarginRight ) {
+               jQuery.cssHooks.marginRight = {
+                       get: function( elem, computed ) {
+                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+                               // Work around by temporarily setting element display to inline-block
+                               var ret;
+                               jQuery.swap( elem, { "display": "inline-block" }, function() {
+                                       if ( computed ) {
+                                               ret = curCSS( elem, "margin-right", "marginRight" );
+                                       } else {
+                                               ret = elem.style.marginRight;
+                                       }
+                               });
+                               return ret;
+                       }
+               };
+       }
+});
+
+if ( document.defaultView && document.defaultView.getComputedStyle ) {
+       getComputedStyle = function( elem, name ) {
+               var ret, defaultView, computedStyle;
+
+               name = name.replace( rupper, "-$1" ).toLowerCase();
+
+               if ( !(defaultView = elem.ownerDocument.defaultView) ) {
+                       return undefined;
+               }
+
+               if ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
+                       ret = computedStyle.getPropertyValue( name );
+                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
+                               ret = jQuery.style( elem, name );
+                       }
+               }
+
+               return ret;
+       };
+}
+
+if ( document.documentElement.currentStyle ) {
+       currentStyle = function( elem, name ) {
+               var left, rsLeft, uncomputed,
+                       ret = elem.currentStyle && elem.currentStyle[ name ],
+                       style = elem.style;
+
+               // Avoid setting ret to empty string here
+               // so we don't default to auto
+               if ( ret === null && style && (uncomputed = style[ name ]) ) {
+                       ret = uncomputed;
+               }
+
+               // From the awesome hack by Dean Edwards
+               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+               // If we're not dealing with a regular pixel number
+               // but a number that has a weird ending, we need to convert it to pixels
+               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
+
+                       // Remember the original values
+                       left = style.left;
+                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
+
+                       // Put in the new values to get a computed value out
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = elem.currentStyle.left;
+                       }
+                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
+                       ret = style.pixelLeft + "px";
+
+                       // Revert the changed values
+                       style.left = left;
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = rsLeft;
+                       }
+               }
+
+               return ret === "" ? "auto" : ret;
+       };
+}
+
+curCSS = getComputedStyle || currentStyle;
+
+function getWH( elem, name, extra ) {
+
+       // Start with offset property
+       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+               which = name === "width" ? cssWidth : cssHeight;
+
+       if ( val > 0 ) {
+               if ( extra !== "border" ) {
+                       jQuery.each( which, function() {
+                               if ( !extra ) {
+                                       val -= parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
+                               }
+                               if ( extra === "margin" ) {
+                                       val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
+                               } else {
+                                       val -= parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
+                               }
+                       });
+               }
+
+               return val + "px";
+       }
+
+       // Fall back to computed then uncomputed css if necessary
+       val = curCSS( elem, name, name );
+       if ( val < 0 || val == null ) {
+               val = elem.style[ name ] || 0;
+       }
+       // Normalize "", auto, and prepare for extra
+       val = parseFloat( val ) || 0;
+
+       // Add padding, border, margin
+       if ( extra ) {
+               jQuery.each( which, function() {
+                       val += parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
+                       if ( extra !== "padding" ) {
+                               val += parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
+                       }
+                       if ( extra === "margin" ) {
+                               val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
+                       }
+               });
+       }
+
+       return val + "px";
+}
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.hidden = function( elem ) {
+               var width = elem.offsetWidth,
+                       height = elem.offsetHeight;
+
+               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
+       };
+
+       jQuery.expr.filters.visible = function( elem ) {
+               return !jQuery.expr.filters.hidden( elem );
+       };
+}
+
+
+
+
+var r20 = /%20/g,
+       rbracket = /\[\]$/,
+       rCRLF = /\r?\n/g,
+       rhash = /#.*$/,
+       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
+       // #7653, #8125, #8152: local protocol detection
+       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
+       rnoContent = /^(?:GET|HEAD)$/,
+       rprotocol = /^\/\//,
+       rquery = /\?/,
+       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
+       rselectTextarea = /^(?:select|textarea)/i,
+       rspacesAjax = /\s+/,
+       rts = /([?&])_=[^&]*/,
+       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
+
+       // Keep a copy of the old load method
+       _load = jQuery.fn.load,
+
+       /* Prefilters
+        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+        * 2) These are called:
+        *    - BEFORE asking for a transport
+        *    - AFTER param serialization (s.data is a string if s.processData is true)
+        * 3) key is the dataType
+        * 4) the catchall symbol "*" can be used
+        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+        */
+       prefilters = {},
+
+       /* Transports bindings
+        * 1) key is the dataType
+        * 2) the catchall symbol "*" can be used
+        * 3) selection will start with transport dataType and THEN go to "*" if needed
+        */
+       transports = {},
+
+       // Document location
+       ajaxLocation,
+
+       // Document location segments
+       ajaxLocParts,
+
+       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+       allTypes = ["*/"] + ["*"];
+
+// #8138, IE may throw an exception when accessing
+// a field from window.location if document.domain has been set
+try {
+       ajaxLocation = location.href;
+} catch( e ) {
+       // Use the href attribute of an A element
+       // since IE will modify it given document.location
+       ajaxLocation = document.createElement( "a" );
+       ajaxLocation.href = "";
+       ajaxLocation = ajaxLocation.href;
+}
+
+// Segment location into parts
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+       // dataTypeExpression is optional and defaults to "*"
+       return function( dataTypeExpression, func ) {
+
+               if ( typeof dataTypeExpression !== "string" ) {
+                       func = dataTypeExpression;
+                       dataTypeExpression = "*";
+               }
+
+               if ( jQuery.isFunction( func ) ) {
+                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
+                               i = 0,
+                               length = dataTypes.length,
+                               dataType,
+                               list,
+                               placeBefore;
+
+                       // For each dataType in the dataTypeExpression
+                       for ( ; i < length; i++ ) {
+                               dataType = dataTypes[ i ];
+                               // We control if we're asked to add before
+                               // any existing element
+                               placeBefore = /^\+/.test( dataType );
+                               if ( placeBefore ) {
+                                       dataType = dataType.substr( 1 ) || "*";
+                               }
+                               list = structure[ dataType ] = structure[ dataType ] || [];
+                               // then we add to the structure accordingly
+                               list[ placeBefore ? "unshift" : "push" ]( func );
+                       }
+               }
+       };
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
+               dataType /* internal */, inspected /* internal */ ) {
+
+       dataType = dataType || options.dataTypes[ 0 ];
+       inspected = inspected || {};
+
+       inspected[ dataType ] = true;
+
+       var list = structure[ dataType ],
+               i = 0,
+               length = list ? list.length : 0,
+               executeOnly = ( structure === prefilters ),
+               selection;
+
+       for ( ; i < length && ( executeOnly || !selection ); i++ ) {
+               selection = list[ i ]( options, originalOptions, jqXHR );
+               // If we got redirected to another dataType
+               // we try there if executing only and not done already
+               if ( typeof selection === "string" ) {
+                       if ( !executeOnly || inspected[ selection ] ) {
+                               selection = undefined;
+                       } else {
+                               options.dataTypes.unshift( selection );
+                               selection = inspectPrefiltersOrTransports(
+                                               structure, options, originalOptions, jqXHR, selection, inspected );
+                       }
+               }
+       }
+       // If we're only executing or nothing was selected
+       // we try the catchall dataType if not done already
+       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
+               selection = inspectPrefiltersOrTransports(
+                               structure, options, originalOptions, jqXHR, "*", inspected );
+       }
+       // unnecessary when only executing (prefilters)
+       // but it'll be ignored by the caller in that case
+       return selection;
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+       var key, deep,
+               flatOptions = jQuery.ajaxSettings.flatOptions || {};
+       for ( key in src ) {
+               if ( src[ key ] !== undefined ) {
+                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
+               }
+       }
+       if ( deep ) {
+               jQuery.extend( true, target, deep );
+       }
+}
+
+jQuery.fn.extend({
+       load: function( url, params, callback ) {
+               if ( typeof url !== "string" && _load ) {
+                       return _load.apply( this, arguments );
+
+               // Don't do a request if no elements are being requested
+               } else if ( !this.length ) {
+                       return this;
+               }
+
+               var off = url.indexOf( " " );
+               if ( off >= 0 ) {
+                       var selector = url.slice( off, url.length );
+                       url = url.slice( 0, off );
+               }
+
+               // Default to a GET request
+               var type = "GET";
+
+               // If the second parameter was provided
+               if ( params ) {
+                       // If it's a function
+                       if ( jQuery.isFunction( params ) ) {
+                               // We assume that it's the callback
+                               callback = params;
+                               params = undefined;
+
+                       // Otherwise, build a param string
+                       } else if ( typeof params === "object" ) {
+                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
+                               type = "POST";
+                       }
+               }
+
+               var self = this;
+
+               // Request the remote document
+               jQuery.ajax({
+                       url: url,
+                       type: type,
+                       dataType: "html",
+                       data: params,
+                       // Complete callback (responseText is used internally)
+                       complete: function( jqXHR, status, responseText ) {
+                               // Store the response as specified by the jqXHR object
+                               responseText = jqXHR.responseText;
+                               // If successful, inject the HTML into all the matched elements
+                               if ( jqXHR.isResolved() ) {
+                                       // #4825: Get the actual response in case
+                                       // a dataFilter is present in ajaxSettings
+                                       jqXHR.done(function( r ) {
+                                               responseText = r;
+                                       });
+                                       // See if a selector was specified
+                                       self.html( selector ?
+                                               // Create a dummy div to hold the results
+                                               jQuery("<div>")
+                                                       // inject the contents of the document in, removing the scripts
+                                                       // to avoid any 'Permission Denied' errors in IE
+                                                       .append(responseText.replace(rscript, ""))
+
+                                                       // Locate the specified elements
+                                                       .find(selector) :
+
+                                               // If not, just inject the full result
+                                               responseText );
+                               }
+
+                               if ( callback ) {
+                                       self.each( callback, [ responseText, status, jqXHR ] );
+                               }
+                       }
+               });
+
+               return this;
+       },
+
+       serialize: function() {
+               return jQuery.param( this.serializeArray() );
+       },
+
+       serializeArray: function() {
+               return this.map(function(){
+                       return this.elements ? jQuery.makeArray( this.elements ) : this;
+               })
+               .filter(function(){
+                       return this.name && !this.disabled &&
+                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
+                                       rinput.test( this.type ) );
+               })
+               .map(function( i, elem ){
+                       var val = jQuery( this ).val();
+
+                       return val == null ?
+                               null :
+                               jQuery.isArray( val ) ?
+                                       jQuery.map( val, function( val, i ){
+                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+                                       }) :
+                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+               }).get();
+       }
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
+       jQuery.fn[ o ] = function( f ){
+               return this.bind( o, f );
+       };
+});
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+       jQuery[ method ] = function( url, data, callback, type ) {
+               // shift arguments if data argument was omitted
+               if ( jQuery.isFunction( data ) ) {
+                       type = type || callback;
+                       callback = data;
+                       data = undefined;
+               }
+
+               return jQuery.ajax({
+                       type: method,
+                       url: url,
+                       data: data,
+                       success: callback,
+                       dataType: type
+               });
+       };
+});
+
+jQuery.extend({
+
+       getScript: function( url, callback ) {
+               return jQuery.get( url, undefined, callback, "script" );
+       },
+
+       getJSON: function( url, data, callback ) {
+               return jQuery.get( url, data, callback, "json" );
+       },
+
+       // Creates a full fledged settings object into target
+       // with both ajaxSettings and settings fields.
+       // If target is omitted, writes into ajaxSettings.
+       ajaxSetup: function( target, settings ) {
+               if ( settings ) {
+                       // Building a settings object
+                       ajaxExtend( target, jQuery.ajaxSettings );
+               } else {
+                       // Extending ajaxSettings
+                       settings = target;
+                       target = jQuery.ajaxSettings;
+               }
+               ajaxExtend( target, settings );
+               return target;
+       },
+
+       ajaxSettings: {
+               url: ajaxLocation,
+               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+               global: true,
+               type: "GET",
+               contentType: "application/x-www-form-urlencoded",
+               processData: true,
+               async: true,
+               /*
+               timeout: 0,
+               data: null,
+               dataType: null,
+               username: null,
+               password: null,
+               cache: null,
+               traditional: false,
+               headers: {},
+               */
+
+               accepts: {
+                       xml: "application/xml, text/xml",
+                       html: "text/html",
+                       text: "text/plain",
+                       json: "application/json, text/javascript",
+                       "*": allTypes
+               },
+
+               contents: {
+                       xml: /xml/,
+                       html: /html/,
+                       json: /json/
+               },
+
+               responseFields: {
+                       xml: "responseXML",
+                       text: "responseText"
+               },
+
+               // List of data converters
+               // 1) key format is "source_type destination_type" (a single space in-between)
+               // 2) the catchall symbol "*" can be used for source_type
+               converters: {
+
+                       // Convert anything to text
+                       "* text": window.String,
+
+                       // Text to html (true = no transformation)
+                       "text html": true,
+
+                       // Evaluate text as a json expression
+                       "text json": jQuery.parseJSON,
+
+                       // Parse text as xml
+                       "text xml": jQuery.parseXML
+               },
+
+               // For options that shouldn't be deep extended:
+               // you can add your own custom options here if
+               // and when you create one that shouldn't be
+               // deep extended (see ajaxExtend)
+               flatOptions: {
+                       context: true,
+                       url: true
+               }
+       },
+
+       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+       ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+       // Main method
+       ajax: function( url, options ) {
+
+               // If url is an object, simulate pre-1.5 signature
+               if ( typeof url === "object" ) {
+                       options = url;
+                       url = undefined;
+               }
+
+               // Force options to be an object
+               options = options || {};
+
+               var // Create the final options object
+                       s = jQuery.ajaxSetup( {}, options ),
+                       // Callbacks context
+                       callbackContext = s.context || s,
+                       // Context for global events
+                       // It's the callbackContext if one was provided in the options
+                       // and if it's a DOM node or a jQuery collection
+                       globalEventContext = callbackContext !== s &&
+                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
+                                               jQuery( callbackContext ) : jQuery.event,
+                       // Deferreds
+                       deferred = jQuery.Deferred(),
+                       completeDeferred = jQuery.Callbacks( "once memory" ),
+                       // Status-dependent callbacks
+                       statusCode = s.statusCode || {},
+                       // ifModified key
+                       ifModifiedKey,
+                       // Headers (they are sent all at once)
+                       requestHeaders = {},
+                       requestHeadersNames = {},
+                       // Response headers
+                       responseHeadersString,
+                       responseHeaders,
+                       // transport
+                       transport,
+                       // timeout handle
+                       timeoutTimer,
+                       // Cross-domain detection vars
+                       parts,
+                       // The jqXHR state
+                       state = 0,
+                       // To know if global events are to be dispatched
+                       fireGlobals,
+                       // Loop variable
+                       i,
+                       // Fake xhr
+                       jqXHR = {
+
+                               readyState: 0,
+
+                               // Caches the header
+                               setRequestHeader: function( name, value ) {
+                                       if ( !state ) {
+                                               var lname = name.toLowerCase();
+                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+                                               requestHeaders[ name ] = value;
+                                       }
+                                       return this;
+                               },
+
+                               // Raw string
+                               getAllResponseHeaders: function() {
+                                       return state === 2 ? responseHeadersString : null;
+                               },
+
+                               // Builds headers hashtable if needed
+                               getResponseHeader: function( key ) {
+                                       var match;
+                                       if ( state === 2 ) {
+                                               if ( !responseHeaders ) {
+                                                       responseHeaders = {};
+                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
+                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
+                                                       }
+                                               }
+                                               match = responseHeaders[ key.toLowerCase() ];
+                                       }
+                                       return match === undefined ? null : match;
+                               },
+
+                               // Overrides response content-type header
+                               overrideMimeType: function( type ) {
+                                       if ( !state ) {
+                                               s.mimeType = type;
+                                       }
+                                       return this;
+                               },
+
+                               // Cancel the request
+                               abort: function( statusText ) {
+                                       statusText = statusText || "abort";
+                                       if ( transport ) {
+                                               transport.abort( statusText );
+                                       }
+                                       done( 0, statusText );
+                                       return this;
+                               }
+                       };
+
+               // Callback for when everything is done
+               // It is defined here because jslint complains if it is declared
+               // at the end of the function (which would be more logical and readable)
+               function done( status, nativeStatusText, responses, headers ) {
+
+                       // Called once
+                       if ( state === 2 ) {
+                               return;
+                       }
+
+                       // State is "done" now
+                       state = 2;
+
+                       // Clear timeout if it exists
+                       if ( timeoutTimer ) {
+                               clearTimeout( timeoutTimer );
+                       }
+
+                       // Dereference transport for early garbage collection
+                       // (no matter how long the jqXHR object will be used)
+                       transport = undefined;
+
+                       // Cache response headers
+                       responseHeadersString = headers || "";
+
+                       // Set readyState
+                       jqXHR.readyState = status > 0 ? 4 : 0;
+
+                       var isSuccess,
+                               success,
+                               error,
+                               statusText = nativeStatusText,
+                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
+                               lastModified,
+                               etag;
+
+                       // If successful, handle type chaining
+                       if ( status >= 200 && status < 300 || status === 304 ) {
+
+                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+                               if ( s.ifModified ) {
+
+                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
+                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
+                                       }
+                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
+                                               jQuery.etag[ ifModifiedKey ] = etag;
+                                       }
+                               }
+
+                               // If not modified
+                               if ( status === 304 ) {
+
+                                       statusText = "notmodified";
+                                       isSuccess = true;
+
+                               // If we have data
+                               } else {
+
+                                       try {
+                                               success = ajaxConvert( s, response );
+                                               statusText = "success";
+                                               isSuccess = true;
+                                       } catch(e) {
+                                               // We have a parsererror
+                                               statusText = "parsererror";
+                                               error = e;
+                                       }
+                               }
+                       } else {
+                               // We extract error from statusText
+                               // then normalize statusText and status for non-aborts
+                               error = statusText;
+                               if ( !statusText || status ) {
+                                       statusText = "error";
+                                       if ( status < 0 ) {
+                                               status = 0;
+                                       }
+                               }
+                       }
+
+                       // Set data for the fake xhr object
+                       jqXHR.status = status;
+                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
+
+                       // Success/Error
+                       if ( isSuccess ) {
+                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+                       } else {
+                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+                       }
+
+                       // Status-dependent callbacks
+                       jqXHR.statusCode( statusCode );
+                       statusCode = undefined;
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
+                                               [ jqXHR, s, isSuccess ? success : error ] );
+                       }
+
+                       // Complete
+                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+                               // Handle the global AJAX counter
+                               if ( !( --jQuery.active ) ) {
+                                       jQuery.event.trigger( "ajaxStop" );
+                               }
+                       }
+               }
+
+               // Attach deferreds
+               deferred.promise( jqXHR );
+               jqXHR.success = jqXHR.done;
+               jqXHR.error = jqXHR.fail;
+               jqXHR.complete = completeDeferred.add;
+
+               // Status-dependent callbacks
+               jqXHR.statusCode = function( map ) {
+                       if ( map ) {
+                               var tmp;
+                               if ( state < 2 ) {
+                                       for ( tmp in map ) {
+                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
+                                       }
+                               } else {
+                                       tmp = map[ jqXHR.status ];
+                                       jqXHR.then( tmp, tmp );
+                               }
+                       }
+                       return this;
+               };
+
+               // Remove hash character (#7531: and string promotion)
+               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+               // We also use the url parameter if available
+               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+
+               // Extract dataTypes list
+               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
+
+               // Determine if a cross-domain request is in order
+               if ( s.crossDomain == null ) {
+                       parts = rurl.exec( s.url.toLowerCase() );
+                       s.crossDomain = !!( parts &&
+                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
+                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
+                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
+                       );
+               }
+
+               // Convert data if not already a string
+               if ( s.data && s.processData && typeof s.data !== "string" ) {
+                       s.data = jQuery.param( s.data, s.traditional );
+               }
+
+               // Apply prefilters
+               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+               // If request was aborted inside a prefiler, stop there
+               if ( state === 2 ) {
+                       return false;
+               }
+
+               // We can fire global events as of now if asked to
+               fireGlobals = s.global;
+
+               // Uppercase the type
+               s.type = s.type.toUpperCase();
+
+               // Determine if request has content
+               s.hasContent = !rnoContent.test( s.type );
+
+               // Watch for a new set of requests
+               if ( fireGlobals && jQuery.active++ === 0 ) {
+                       jQuery.event.trigger( "ajaxStart" );
+               }
+
+               // More options handling for requests with no content
+               if ( !s.hasContent ) {
+
+                       // If data is available, append data to url
+                       if ( s.data ) {
+                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
+                               // #9682: remove data so that it's not used in an eventual retry
+                               delete s.data;
+                       }
+
+                       // Get ifModifiedKey before adding the anti-cache parameter
+                       ifModifiedKey = s.url;
+
+                       // Add anti-cache in url if needed
+                       if ( s.cache === false ) {
+
+                               var ts = jQuery.now(),
+                                       // try replacing _= if it is there
+                                       ret = s.url.replace( rts, "$1_=" + ts );
+
+                               // if nothing was replaced, add timestamp to the end
+                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
+                       }
+               }
+
+               // Set the correct header, if data is being sent
+               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
+               }
+
+               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+               if ( s.ifModified ) {
+                       ifModifiedKey = ifModifiedKey || s.url;
+                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
+                       }
+                       if ( jQuery.etag[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
+                       }
+               }
+
+               // Set the Accepts header for the server, depending on the dataType
+               jqXHR.setRequestHeader(
+                       "Accept",
+                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
+                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+                               s.accepts[ "*" ]
+               );
+
+               // Check for headers option
+               for ( i in s.headers ) {
+                       jqXHR.setRequestHeader( i, s.headers[ i ] );
+               }
+
+               // Allow custom headers/mimetypes and early abort
+               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+                               // Abort if not done already
+                               jqXHR.abort();
+                               return false;
+
+               }
+
+               // Install callbacks on deferreds
+               for ( i in { success: 1, error: 1, complete: 1 } ) {
+                       jqXHR[ i ]( s[ i ] );
+               }
+
+               // Get transport
+               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+               // If no transport, we auto-abort
+               if ( !transport ) {
+                       done( -1, "No Transport" );
+               } else {
+                       jqXHR.readyState = 1;
+                       // Send global event
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+                       }
+                       // Timeout
+                       if ( s.async && s.timeout > 0 ) {
+                               timeoutTimer = setTimeout( function(){
+                                       jqXHR.abort( "timeout" );
+                               }, s.timeout );
+                       }
+
+                       try {
+                               state = 1;
+                               transport.send( requestHeaders, done );
+                       } catch (e) {
+                               // Propagate exception as error if not done
+                               if ( state < 2 ) {
+                                       done( -1, e );
+                               // Simply rethrow otherwise
+                               } else {
+                                       jQuery.error( e );
+                               }
+                       }
+               }
+
+               return jqXHR;
+       },
+
+       // Serialize an array of form elements or a set of
+       // key/values into a query string
+       param: function( a, traditional ) {
+               var s = [],
+                       add = function( key, value ) {
+                               // If value is a function, invoke it and return its value
+                               value = jQuery.isFunction( value ) ? value() : value;
+                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+                       };
+
+               // Set traditional to true for jQuery <= 1.3.2 behavior.
+               if ( traditional === undefined ) {
+                       traditional = jQuery.ajaxSettings.traditional;
+               }
+
+               // If an array was passed in, assume that it is an array of form elements.
+               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+                       // Serialize the form elements
+                       jQuery.each( a, function() {
+                               add( this.name, this.value );
+                       });
+
+               } else {
+                       // If traditional, encode the "old" way (the way 1.3.2 or older
+                       // did it), otherwise encode params recursively.
+                       for ( var prefix in a ) {
+                               buildParams( prefix, a[ prefix ], traditional, add );
+                       }
+               }
+
+               // Return the resulting serialization
+               return s.join( "&" ).replace( r20, "+" );
+       }
+});
+
+function buildParams( prefix, obj, traditional, add ) {
+       if ( jQuery.isArray( obj ) ) {
+               // Serialize array item.
+               jQuery.each( obj, function( i, v ) {
+                       if ( traditional || rbracket.test( prefix ) ) {
+                               // Treat each array item as a scalar.
+                               add( prefix, v );
+
+                       } else {
+                               // If array item is non-scalar (array or object), encode its
+                               // numeric index to resolve deserialization ambiguity issues.
+                               // Note that rack (as of 1.0.0) can't currently deserialize
+                               // nested arrays properly, and attempting to do so may cause
+                               // a server error. Possible fixes are to modify rack's
+                               // deserialization algorithm or to provide an option or flag
+                               // to force array serialization to be shallow.
+                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
+                       }
+               });
+
+       } else if ( !traditional && obj != null && typeof obj === "object" ) {
+               // Serialize object item.
+               for ( var name in obj ) {
+                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+               }
+
+       } else {
+               // Serialize scalar item.
+               add( prefix, obj );
+       }
+}
+
+// This is still on the jQuery object... for now
+// Want to move this to jQuery.ajax some day
+jQuery.extend({
+
+       // Counter for holding the number of active queries
+       active: 0,
+
+       // Last-Modified header cache for next request
+       lastModified: {},
+       etag: {}
+
+});
+
+/* Handles responses to an ajax request:
+ * - sets all responseXXX fields accordingly
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+       var contents = s.contents,
+               dataTypes = s.dataTypes,
+               responseFields = s.responseFields,
+               ct,
+               type,
+               finalDataType,
+               firstDataType;
+
+       // Fill responseXXX fields
+       for ( type in responseFields ) {
+               if ( type in responses ) {
+                       jqXHR[ responseFields[type] ] = responses[ type ];
+               }
+       }
+
+       // Remove auto dataType and get content-type in the process
+       while( dataTypes[ 0 ] === "*" ) {
+               dataTypes.shift();
+               if ( ct === undefined ) {
+                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
+               }
+       }
+
+       // Check if we're dealing with a known content-type
+       if ( ct ) {
+               for ( type in contents ) {
+                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
+                               dataTypes.unshift( type );
+                               break;
+                       }
+               }
+       }
+
+       // Check to see if we have a response for the expected dataType
+       if ( dataTypes[ 0 ] in responses ) {
+               finalDataType = dataTypes[ 0 ];
+       } else {
+               // Try convertible dataTypes
+               for ( type in responses ) {
+                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+                               finalDataType = type;
+                               break;
+                       }
+                       if ( !firstDataType ) {
+                               firstDataType = type;
+                       }
+               }
+               // Or just use first one
+               finalDataType = finalDataType || firstDataType;
+       }
+
+       // If we found a dataType
+       // We add the dataType to the list if needed
+       // and return the corresponding response
+       if ( finalDataType ) {
+               if ( finalDataType !== dataTypes[ 0 ] ) {
+                       dataTypes.unshift( finalDataType );
+               }
+               return responses[ finalDataType ];
+       }
+}
+
+// Chain conversions given the request and the original response
+function ajaxConvert( s, response ) {
+
+       // Apply the dataFilter if provided
+       if ( s.dataFilter ) {
+               response = s.dataFilter( response, s.dataType );
+       }
+
+       var dataTypes = s.dataTypes,
+               converters = {},
+               i,
+               key,
+               length = dataTypes.length,
+               tmp,
+               // Current and previous dataTypes
+               current = dataTypes[ 0 ],
+               prev,
+               // Conversion expression
+               conversion,
+               // Conversion function
+               conv,
+               // Conversion functions (transitive conversion)
+               conv1,
+               conv2;
+
+       // For each dataType in the chain
+       for ( i = 1; i < length; i++ ) {
+
+               // Create converters map
+               // with lowercased keys
+               if ( i === 1 ) {
+                       for ( key in s.converters ) {
+                               if ( typeof key === "string" ) {
+                                       converters[ key.toLowerCase() ] = s.converters[ key ];
+                               }
+                       }
+               }
+
+               // Get the dataTypes
+               prev = current;
+               current = dataTypes[ i ];
+
+               // If current is auto dataType, update it to prev
+               if ( current === "*" ) {
+                       current = prev;
+               // If no auto and dataTypes are actually different
+               } else if ( prev !== "*" && prev !== current ) {
+
+                       // Get the converter
+                       conversion = prev + " " + current;
+                       conv = converters[ conversion ] || converters[ "* " + current ];
+
+                       // If there is no direct converter, search transitively
+                       if ( !conv ) {
+                               conv2 = undefined;
+                               for ( conv1 in converters ) {
+                                       tmp = conv1.split( " " );
+                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
+                                               conv2 = converters[ tmp[1] + " " + current ];
+                                               if ( conv2 ) {
+                                                       conv1 = converters[ conv1 ];
+                                                       if ( conv1 === true ) {
+                                                               conv = conv2;
+                                                       } else if ( conv2 === true ) {
+                                                               conv = conv1;
+                                                       }
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+                       // If we found no converter, dispatch an error
+                       if ( !( conv || conv2 ) ) {
+                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
+                       }
+                       // If found converter is not an equivalence
+                       if ( conv !== true ) {
+                               // Convert with 1 or 2 converters accordingly
+                               response = conv ? conv( response ) : conv2( conv1(response) );
+                       }
+               }
+       }
+       return response;
+}
+
+
+
+
+var jsc = jQuery.now(),
+       jsre = /(\=)\?(&|$)|\?\?/i;
+
+// Default jsonp settings
+jQuery.ajaxSetup({
+       jsonp: "callback",
+       jsonpCallback: function() {
+               return jQuery.expando + "_" + ( jsc++ );
+       }
+});
+
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
+
+       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
+               ( typeof s.data === "string" );
+
+       if ( s.dataTypes[ 0 ] === "jsonp" ||
+               s.jsonp !== false && ( jsre.test( s.url ) ||
+                               inspectData && jsre.test( s.data ) ) ) {
+
+               var responseContainer,
+                       jsonpCallback = s.jsonpCallback =
+                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
+                       previous = window[ jsonpCallback ],
+                       url = s.url,
+                       data = s.data,
+                       replace = "$1" + jsonpCallback + "$2";
+
+               if ( s.jsonp !== false ) {
+                       url = url.replace( jsre, replace );
+                       if ( s.url === url ) {
+                               if ( inspectData ) {
+                                       data = data.replace( jsre, replace );
+                               }
+                               if ( s.data === data ) {
+                                       // Add callback manually
+                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
+                               }
+                       }
+               }
+
+               s.url = url;
+               s.data = data;
+
+               // Install callback
+               window[ jsonpCallback ] = function( response ) {
+                       responseContainer = [ response ];
+               };
+
+               // Clean-up function
+               jqXHR.always(function() {
+                       // Set callback back to previous value
+                       window[ jsonpCallback ] = previous;
+                       // Call if it was a function and we have a response
+                       if ( responseContainer && jQuery.isFunction( previous ) ) {
+                               window[ jsonpCallback ]( responseContainer[ 0 ] );
+                       }
+               });
+
+               // Use data converter to retrieve json after script execution
+               s.converters["script json"] = function() {
+                       if ( !responseContainer ) {
+                               jQuery.error( jsonpCallback + " was not called" );
+                       }
+                       return responseContainer[ 0 ];
+               };
+
+               // force json dataType
+               s.dataTypes[ 0 ] = "json";
+
+               // Delegate to script
+               return "script";
+       }
+});
+
+
+
+
+// Install script dataType
+jQuery.ajaxSetup({
+       accepts: {
+               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
+       },
+       contents: {
+               script: /javascript|ecmascript/
+       },
+       converters: {
+               "text script": function( text ) {
+                       jQuery.globalEval( text );
+                       return text;
+               }
+       }
+});
+
+// Handle cache's special case and global
+jQuery.ajaxPrefilter( "script", function( s ) {
+       if ( s.cache === undefined ) {
+               s.cache = false;
+       }
+       if ( s.crossDomain ) {
+               s.type = "GET";
+               s.global = false;
+       }
+});
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function(s) {
+
+       // This transport only deals with cross domain requests
+       if ( s.crossDomain ) {
+
+               var script,
+                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
+
+               return {
+
+                       send: function( _, callback ) {
+
+                               script = document.createElement( "script" );
+
+                               script.async = "async";
+
+                               if ( s.scriptCharset ) {
+                                       script.charset = s.scriptCharset;
+                               }
+
+                               script.src = s.url;
+
+                               // Attach handlers for all browsers
+                               script.onload = script.onreadystatechange = function( _, isAbort ) {
+
+                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
+
+                                               // Handle memory leak in IE
+                                               script.onload = script.onreadystatechange = null;
+
+                                               // Remove the script
+                                               if ( head && script.parentNode ) {
+                                                       head.removeChild( script );
+                                               }
+
+                                               // Dereference the script
+                                               script = undefined;
+
+                                               // Callback if not abort
+                                               if ( !isAbort ) {
+                                                       callback( 200, "success" );
+                                               }
+                                       }
+                               };
+                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+                               // This arises when a base node is used (#2709 and #4378).
+                               head.insertBefore( script, head.firstChild );
+                       },
+
+                       abort: function() {
+                               if ( script ) {
+                                       script.onload( 0, 1 );
+                               }
+                       }
+               };
+       }
+});
+
+
+
+
+var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
+       xhrOnUnloadAbort = window.ActiveXObject ? function() {
+               // Abort all pending requests
+               for ( var key in xhrCallbacks ) {
+                       xhrCallbacks[ key ]( 0, 1 );
+               }
+       } : false,
+       xhrId = 0,
+       xhrCallbacks;
+
+// Functions to create xhrs
+function createStandardXHR() {
+       try {
+               return new window.XMLHttpRequest();
+       } catch( e ) {}
+}
+
+function createActiveXHR() {
+       try {
+               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
+       } catch( e ) {}
+}
+
+// Create the request object
+// (This is still attached to ajaxSettings for backward compatibility)
+jQuery.ajaxSettings.xhr = window.ActiveXObject ?
+       /* Microsoft failed to properly
+        * implement the XMLHttpRequest in IE7 (can't request local files),
+        * so we use the ActiveXObject when it is available
+        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
+        * we need a fallback.
+        */
+       function() {
+               return !this.isLocal && createStandardXHR() || createActiveXHR();
+       } :
+       // For all other browsers, use the standard XMLHttpRequest object
+       createStandardXHR;
+
+// Determine support properties
+(function( xhr ) {
+       jQuery.extend( jQuery.support, {
+               ajax: !!xhr,
+               cors: !!xhr && ( "withCredentials" in xhr )
+       });
+})( jQuery.ajaxSettings.xhr() );
+
+// Create transport if the browser can provide an xhr
+if ( jQuery.support.ajax ) {
+
+       jQuery.ajaxTransport(function( s ) {
+               // Cross domain only allowed if supported through XMLHttpRequest
+               if ( !s.crossDomain || jQuery.support.cors ) {
+
+                       var callback;
+
+                       return {
+                               send: function( headers, complete ) {
+
+                                       // Get a new xhr
+                                       var xhr = s.xhr(),
+                                               handle,
+                                               i;
+
+                                       // Open the socket
+                                       // Passing null username, generates a login popup on Opera (#2865)
+                                       if ( s.username ) {
+                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
+                                       } else {
+                                               xhr.open( s.type, s.url, s.async );
+                                       }
+
+                                       // Apply custom fields if provided
+                                       if ( s.xhrFields ) {
+                                               for ( i in s.xhrFields ) {
+                                                       xhr[ i ] = s.xhrFields[ i ];
+                                               }
+                                       }
+
+                                       // Override mime type if needed
+                                       if ( s.mimeType && xhr.overrideMimeType ) {
+                                               xhr.overrideMimeType( s.mimeType );
+                                       }
+
+                                       // X-Requested-With header
+                                       // For cross-domain requests, seeing as conditions for a preflight are
+                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
+                                       // (it can always be set on a per-request basis or even using ajaxSetup)
+                                       // For same-domain requests, won't change header if already provided.
+                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
+                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
+                                       }
+
+                                       // Need an extra try/catch for cross domain requests in Firefox 3
+                                       try {
+                                               for ( i in headers ) {
+                                                       xhr.setRequestHeader( i, headers[ i ] );
+                                               }
+                                       } catch( _ ) {}
+
+                                       // Do send the request
+                                       // This may raise an exception which is actually
+                                       // handled in jQuery.ajax (so no try/catch here)
+                                       xhr.send( ( s.hasContent && s.data ) || null );
+
+                                       // Listener
+                                       callback = function( _, isAbort ) {
+
+                                               var status,
+                                                       statusText,
+                                                       responseHeaders,
+                                                       responses,
+                                                       xml;
+
+                                               // Firefox throws exceptions when accessing properties
+                                               // of an xhr when a network error occured
+                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
+                                               try {
+
+                                                       // Was never called and is aborted or complete
+                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
+
+                                                               // Only called once
+                                                               callback = undefined;
+
+                                                               // Do not keep as active anymore
+                                                               if ( handle ) {
+                                                                       xhr.onreadystatechange = jQuery.noop;
+                                                                       if ( xhrOnUnloadAbort ) {
+                                                                               delete xhrCallbacks[ handle ];
+                                                                       }
+                                                               }
+
+                                                               // If it's an abort
+                                                               if ( isAbort ) {
+                                                                       // Abort it manually if needed
+                                                                       if ( xhr.readyState !== 4 ) {
+                                                                               xhr.abort();
+                                                                       }
+                                                               } else {
+                                                                       status = xhr.status;
+                                                                       responseHeaders = xhr.getAllResponseHeaders();
+                                                                       responses = {};
+                                                                       xml = xhr.responseXML;
+
+                                                                       // Construct response list
+                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
+                                                                               responses.xml = xml;
+                                                                       }
+                                                                       responses.text = xhr.responseText;
+
+                                                                       // Firefox throws an exception when accessing
+                                                                       // statusText for faulty cross-domain requests
+                                                                       try {
+                                                                               statusText = xhr.statusText;
+                                                                       } catch( e ) {
+                                                                               // We normalize with Webkit giving an empty statusText
+                                                                               statusText = "";
+                                                                       }
+
+                                                                       // Filter status for non standard behaviors
+
+                                                                       // If the request is local and we have data: assume a success
+                                                                       // (success with no data won't get notified, that's the best we
+                                                                       // can do given current implementations)
+                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
+                                                                               status = responses.text ? 200 : 404;
+                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
+                                                                       } else if ( status === 1223 ) {
+                                                                               status = 204;
+                                                                       }
+                                                               }
+                                                       }
+                                               } catch( firefoxAccessException ) {
+                                                       if ( !isAbort ) {
+                                                               complete( -1, firefoxAccessException );
+                                                       }
+                                               }
+
+                                               // Call complete if needed
+                                               if ( responses ) {
+                                                       complete( status, statusText, responses, responseHeaders );
+                                               }
+                                       };
+
+                                       // if we're in sync mode or it's in cache
+                                       // and has been retrieved directly (IE6 & IE7)
+                                       // we need to manually fire the callback
+                                       if ( !s.async || xhr.readyState === 4 ) {
+                                               callback();
+                                       } else {
+                                               handle = ++xhrId;
+                                               if ( xhrOnUnloadAbort ) {
+                                                       // Create the active xhrs callbacks list if needed
+                                                       // and attach the unload handler
+                                                       if ( !xhrCallbacks ) {
+                                                               xhrCallbacks = {};
+                                                               jQuery( window ).unload( xhrOnUnloadAbort );
+                                                       }
+                                                       // Add to list of active xhrs callbacks
+                                                       xhrCallbacks[ handle ] = callback;
+                                               }
+                                               xhr.onreadystatechange = callback;
+                                       }
+                               },
+
+                               abort: function() {
+                                       if ( callback ) {
+                                               callback(0,1);
+                                       }
+                               }
+                       };
+               }
+       });
+}
+
+
+
+
+var elemdisplay = {},
+       iframe, iframeDoc,
+       rfxtypes = /^(?:toggle|show|hide)$/,
+       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
+       timerId,
+       fxAttrs = [
+               // height animations
+               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+               // width animations
+               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+               // opacity animations
+               [ "opacity" ]
+       ],
+       fxNow;
+
+jQuery.fn.extend({
+       show: function( speed, easing, callback ) {
+               var elem, display;
+
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("show", 3), speed, easing, callback );
+
+               } else {
+                       for ( var i = 0, j = this.length; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       // Reset the inline display of this element to learn if it is
+                                       // being hidden by cascaded rules or not
+                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
+                                               display = elem.style.display = "";
+                                       }
+
+                                       // Set elements which have been overridden with display: none
+                                       // in a stylesheet to whatever the default browser style is
+                                       // for such an element
+                                       if ( display === "" && jQuery.css(elem, "display") === "none" ) {
+                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
+                                       }
+                               }
+                       }
+
+                       // Set the display of most of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       if ( display === "" || display === "none" ) {
+                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
+                                       }
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       hide: function( speed, easing, callback ) {
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("hide", 3), speed, easing, callback);
+
+               } else {
+                       var elem, display,
+                               i = 0,
+                               j = this.length;
+
+                       for ( ; i < j; i++ ) {
+                               elem = this[i];
+                               if ( elem.style ) {
+                                       display = jQuery.css( elem, "display" );
+
+                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
+                                               jQuery._data( elem, "olddisplay", display );
+                                       }
+                               }
+                       }
+
+                       // Set the display of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               if ( this[i].style ) {
+                                       this[i].style.display = "none";
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       // Save the old toggle function
+       _toggle: jQuery.fn.toggle,
+
+       toggle: function( fn, fn2, callback ) {
+               var bool = typeof fn === "boolean";
+
+               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
+                       this._toggle.apply( this, arguments );
+
+               } else if ( fn == null || bool ) {
+                       this.each(function() {
+                               var state = bool ? fn : jQuery(this).is(":hidden");
+                               jQuery(this)[ state ? "show" : "hide" ]();
+                       });
+
+               } else {
+                       this.animate(genFx("toggle", 3), fn, fn2, callback);
+               }
+
+               return this;
+       },
+
+       fadeTo: function( speed, to, easing, callback ) {
+               return this.filter(":hidden").css("opacity", 0).show().end()
+                                       .animate({opacity: to}, speed, easing, callback);
+       },
+
+       animate: function( prop, speed, easing, callback ) {
+               var optall = jQuery.speed( speed, easing, callback );
+
+               if ( jQuery.isEmptyObject( prop ) ) {
+                       return this.each( optall.complete, [ false ] );
+               }
+
+               // Do not change referenced properties as per-property easing will be lost
+               prop = jQuery.extend( {}, prop );
+
+               function doAnimation() {
+                       // XXX 'this' does not always have a nodeName when running the
+                       // test suite
+
+                       if ( optall.queue === false ) {
+                               jQuery._mark( this );
+                       }
+
+                       var opt = jQuery.extend( {}, optall ),
+                               isElement = this.nodeType === 1,
+                               hidden = isElement && jQuery(this).is(":hidden"),
+                               name, val, p, e,
+                               parts, start, end, unit,
+                               method;
+
+                       // will store per property easing and be used to determine when an animation is complete
+                       opt.animatedProperties = {};
+
+                       for ( p in prop ) {
+
+                               // property name normalization
+                               name = jQuery.camelCase( p );
+                               if ( p !== name ) {
+                                       prop[ name ] = prop[ p ];
+                                       delete prop[ p ];
+                               }
+
+                               val = prop[ name ];
+
+                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
+                               if ( jQuery.isArray( val ) ) {
+                                       opt.animatedProperties[ name ] = val[ 1 ];
+                                       val = prop[ name ] = val[ 0 ];
+                               } else {
+                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
+                               }
+
+                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
+                                       return opt.complete.call( this );
+                               }
+
+                               if ( isElement && ( name === "height" || name === "width" ) ) {
+                                       // Make sure that nothing sneaks out
+                                       // Record all 3 overflow attributes because IE does not
+                                       // change the overflow attribute when overflowX and
+                                       // overflowY are set to the same value
+                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
+
+                                       // Set display property to inline-block for height/width
+                                       // animations on inline elements that are having width/height animated
+                                       if ( jQuery.css( this, "display" ) === "inline" &&
+                                                       jQuery.css( this, "float" ) === "none" ) {
+
+                                               // inline-level elements accept inline-block;
+                                               // block-level elements need to be inline with layout
+                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
+                                                       this.style.display = "inline-block";
+
+                                               } else {
+                                                       this.style.zoom = 1;
+                                               }
+                                       }
+                               }
+                       }
+
+                       if ( opt.overflow != null ) {
+                               this.style.overflow = "hidden";
+                       }
+
+                       for ( p in prop ) {
+                               e = new jQuery.fx( this, opt, p );
+                               val = prop[ p ];
+
+                               if ( rfxtypes.test( val ) ) {
+
+                                       // Tracks whether to show or hide based on private
+                                       // data attached to the element
+                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
+                                       if ( method ) {
+                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
+                                               e[ method ]();
+                                       } else {
+                                               e[ val ]();
+                                       }
+
+                               } else {
+                                       parts = rfxnum.exec( val );
+                                       start = e.cur();
+
+                                       if ( parts ) {
+                                               end = parseFloat( parts[2] );
+                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
+
+                                               // We need to compute starting value
+                                               if ( unit !== "px" ) {
+                                                       jQuery.style( this, p, (end || 1) + unit);
+                                                       start = ( (end || 1) / e.cur() ) * start;
+                                                       jQuery.style( this, p, start + unit);
+                                               }
+
+                                               // If a +=/-= token was provided, we're doing a relative animation
+                                               if ( parts[1] ) {
+                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
+                                               }
+
+                                               e.custom( start, end, unit );
+
+                                       } else {
+                                               e.custom( start, val, "" );
+                                       }
+                               }
+                       }
+
+                       // For JS strict compliance
+                       return true;
+               }
+
+               return optall.queue === false ?
+                       this.each( doAnimation ) :
+                       this.queue( optall.queue, doAnimation );
+       },
+
+       stop: function( type, clearQueue, gotoEnd ) {
+               if ( typeof type !== "string" ) {
+                       gotoEnd = clearQueue;
+                       clearQueue = type;
+                       type = undefined;
+               }
+               if ( clearQueue && type !== false ) {
+                       this.queue( type || "fx", [] );
+               }
+
+               return this.each(function() {
+                       var i,
+                               hadTimers = false,
+                               timers = jQuery.timers,
+                               data = jQuery._data( this );
+
+                       // clear marker counters if we know they won't be
+                       if ( !gotoEnd ) {
+                               jQuery._unmark( true, this );
+                       }
+
+                       function stopQueue( elem, data, i ) {
+                               var hooks = data[ i ];
+                               jQuery.removeData( elem, i, true );
+                               hooks.stop( gotoEnd );
+                       }
+
+                       if ( type == null ) {
+                               for ( i in data ) {
+                                       if ( data[ i ].stop && i.indexOf(".run") === i.length - 4 ) {
+                                               stopQueue( this, data, i );
+                                       }
+                               }
+                       } else if ( data[ i = type + ".run" ] && data[ i ].stop ){
+                               stopQueue( this, data, i );
+                       }
+
+                       for ( i = timers.length; i--; ) {
+                               if ( timers[ i ].elem === this && (type == null || timers[ i ].queue === type) ) {
+                                       if ( gotoEnd ) {
+
+                                               // force the next step to be the last
+                                               timers[ i ]( true );
+                                       } else {
+                                               timers[ i ].saveState();
+                                       }
+                                       hadTimers = true;
+                                       timers.splice( i, 1 );
+                               }
+                       }
+
+                       // start the next in the queue if the last step wasn't forced
+                       // timers currently will call their complete callbacks, which will dequeue
+                       // but only if they were gotoEnd
+                       if ( !( gotoEnd && hadTimers ) ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       }
+
+});
+
+// Animations created synchronously will run synchronously
+function createFxNow() {
+       setTimeout( clearFxNow, 0 );
+       return ( fxNow = jQuery.now() );
+}
+
+function clearFxNow() {
+       fxNow = undefined;
+}
+
+// Generate parameters to create a standard animation
+function genFx( type, num ) {
+       var obj = {};
+
+       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
+               obj[ this ] = type;
+       });
+
+       return obj;
+}
+
+// Generate shortcuts for custom animations
+jQuery.each({
+       slideDown: genFx( "show", 1 ),
+       slideUp: genFx( "hide", 1 ),
+       slideToggle: genFx( "toggle", 1 ),
+       fadeIn: { opacity: "show" },
+       fadeOut: { opacity: "hide" },
+       fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+       jQuery.fn[ name ] = function( speed, easing, callback ) {
+               return this.animate( props, speed, easing, callback );
+       };
+});
+
+jQuery.extend({
+       speed: function( speed, easing, fn ) {
+               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
+                       complete: fn || !fn && easing ||
+                               jQuery.isFunction( speed ) && speed,
+                       duration: speed,
+                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
+               };
+
+               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
+
+               // normalize opt.queue - true/undefined/null -> "fx"
+               if ( opt.queue == null || opt.queue === true ) {
+                       opt.queue = "fx";
+               }
+
+               // Queueing
+               opt.old = opt.complete;
+
+               opt.complete = function( noUnmark ) {
+                       if ( jQuery.isFunction( opt.old ) ) {
+                               opt.old.call( this );
+                       }
+
+                       if ( opt.queue ) {
+                               jQuery.dequeue( this, opt.queue );
+                       } else if ( noUnmark !== false ) {
+                               jQuery._unmark( this );
+                       }
+               };
+
+               return opt;
+       },
+
+       easing: {
+               linear: function( p, n, firstNum, diff ) {
+                       return firstNum + diff * p;
+               },
+               swing: function( p, n, firstNum, diff ) {
+                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
+               }
+       },
+
+       timers: [],
+
+       fx: function( elem, options, prop ) {
+               this.options = options;
+               this.elem = elem;
+               this.prop = prop;
+
+               options.orig = options.orig || {};
+       }
+
+});
+
+jQuery.fx.prototype = {
+       // Simple function for setting a style value
+       update: function() {
+               if ( this.options.step ) {
+                       this.options.step.call( this.elem, this.now, this );
+               }
+
+               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
+       },
+
+       // Get the current size
+       cur: function() {
+               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
+                       return this.elem[ this.prop ];
+               }
+
+               var parsed,
+                       r = jQuery.css( this.elem, this.prop );
+               // Empty strings, null, undefined and "auto" are converted to 0,
+               // complex values such as "rotate(1rad)" are returned as is,
+               // simple values such as "10px" are parsed to Float.
+               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
+       },
+
+       // Start an animation from one number to another
+       custom: function( from, to, unit ) {
+               var self = this,
+                       fx = jQuery.fx;
+
+               this.startTime = fxNow || createFxNow();
+               this.end = to;
+               this.now = this.start = from;
+               this.pos = this.state = 0;
+               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
+
+               function t( gotoEnd ) {
+                       return self.step( gotoEnd );
+               }
+
+               t.queue = this.options.queue;
+               t.elem = this.elem;
+               t.saveState = function() {
+                       if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
+                               jQuery._data( self.elem, "fxshow" + self.prop, self.start );
+                       }
+               };
+
+               if ( t() && jQuery.timers.push(t) && !timerId ) {
+                       timerId = setInterval( fx.tick, fx.interval );
+               }
+       },
+
+       // Simple 'show' function
+       show: function() {
+               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
+
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
+               this.options.show = true;
+
+               // Begin the animation
+               // Make sure that we start at a small width/height to avoid any flash of content
+               if ( dataShow !== undefined ) {
+                       // This show is picking up where a previous hide or show left off
+                       this.custom( this.cur(), dataShow );
+               } else {
+                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
+               }
+
+               // Start by showing the element
+               jQuery( this.elem ).show();
+       },
+
+       // Simple 'hide' function
+       hide: function() {
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
+               this.options.hide = true;
+
+               // Begin the animation
+               this.custom( this.cur(), 0 );
+       },
+
+       // Each step of an animation
+       step: function( gotoEnd ) {
+               var p, n, complete,
+                       t = fxNow || createFxNow(),
+                       done = true,
+                       elem = this.elem,
+                       options = this.options;
+
+               if ( gotoEnd || t >= options.duration + this.startTime ) {
+                       this.now = this.end;
+                       this.pos = this.state = 1;
+                       this.update();
+
+                       options.animatedProperties[ this.prop ] = true;
+
+                       for ( p in options.animatedProperties ) {
+                               if ( options.animatedProperties[ p ] !== true ) {
+                                       done = false;
+                               }
+                       }
+
+                       if ( done ) {
+                               // Reset the overflow
+                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
+
+                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {
+                                               elem.style[ "overflow" + value ] = options.overflow[ index ];
+                                       });
+                               }
+
+                               // Hide the element if the "hide" operation was done
+                               if ( options.hide ) {
+                                       jQuery( elem ).hide();
+                               }
+
+                               // Reset the properties, if the item has been hidden or shown
+                               if ( options.hide || options.show ) {
+                                       for ( p in options.animatedProperties ) {
+                                               jQuery.style( elem, p, options.orig[ p ] );
+                                               jQuery.removeData( elem, "fxshow" + p, true );
+                                               // Toggle data is no longer needed
+                                               jQuery.removeData( elem, "toggle" + p, true );
+                                       }
+                               }
+
+                               // Execute the complete function
+                               // in the event that the complete function throws an exception
+                               // we must ensure it won't be called twice. #5684
+
+                               complete = options.complete;
+                               if ( complete ) {
+
+                                       options.complete = false;
+                                       complete.call( elem );
+                               }
+                       }
+
+                       return false;
+
+               } else {
+                       // classical easing cannot be used with an Infinity duration
+                       if ( options.duration == Infinity ) {
+                               this.now = t;
+                       } else {
+                               n = t - this.startTime;
+                               this.state = n / options.duration;
+
+                               // Perform the easing function, defaults to swing
+                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
+                               this.now = this.start + ( (this.end - this.start) * this.pos );
+                       }
+                       // Perform the next step of the animation
+                       this.update();
+               }
+
+               return true;
+       }
+};
+
+jQuery.extend( jQuery.fx, {
+       tick: function() {
+               var timer,
+                       timers = jQuery.timers,
+                       i = 0;
+
+               for ( ; i < timers.length; i++ ) {
+                       timer = timers[ i ];
+                       // Checks the timer has not already been removed
+                       if ( !timer() && timers[ i ] === timer ) {
+                               timers.splice( i--, 1 );
+                       }
+               }
+
+               if ( !timers.length ) {
+                       jQuery.fx.stop();
+               }
+       },
+
+       interval: 13,
+
+       stop: function() {
+               clearInterval( timerId );
+               timerId = null;
+       },
+
+       speeds: {
+               slow: 600,
+               fast: 200,
+               // Default speed
+               _default: 400
+       },
+
+       step: {
+               opacity: function( fx ) {
+                       jQuery.style( fx.elem, "opacity", fx.now );
+               },
+
+               _default: function( fx ) {
+                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
+                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;
+                       } else {
+                               fx.elem[ fx.prop ] = fx.now;
+                       }
+               }
+       }
+});
+
+// Adds width/height step functions
+// Do not set anything below 0
+jQuery.each([ "width", "height" ], function( i, prop ) {
+       jQuery.fx.step[ prop ] = function( fx ) {
+               jQuery.style( fx.elem, prop, Math.max(0, fx.now) );
+       };
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.animated = function( elem ) {
+               return jQuery.grep(jQuery.timers, function( fn ) {
+                       return elem === fn.elem;
+               }).length;
+       };
+}
+
+// Try to restore the default display value of an element
+function defaultDisplay( nodeName ) {
+
+       if ( !elemdisplay[ nodeName ] ) {
+
+               var body = document.body,
+                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
+                       display = elem.css( "display" );
+               elem.remove();
+
+               // If the simple way fails,
+               // get element's real default display by attaching it to a temp iframe
+               if ( display === "none" || display === "" ) {
+                       // No iframe to use yet, so create it
+                       if ( !iframe ) {
+                               iframe = document.createElement( "iframe" );
+                               iframe.frameBorder = iframe.width = iframe.height = 0;
+                       }
+
+                       body.appendChild( iframe );
+
+                       // Create a cacheable copy of the iframe document on first call.
+                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
+                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
+                       if ( !iframeDoc || !iframe.createElement ) {
+                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
+                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
+                               iframeDoc.close();
+                       }
+
+                       elem = iframeDoc.createElement( nodeName );
+
+                       iframeDoc.body.appendChild( elem );
+
+                       display = jQuery.css( elem, "display" );
+                       body.removeChild( iframe );
+               }
+
+               // Store the correct default display
+               elemdisplay[ nodeName ] = display;
+       }
+
+       return elemdisplay[ nodeName ];
+}
+
+
+
+
+var rtable = /^t(?:able|d|h)$/i,
+       rroot = /^(?:body|html)$/i;
+
+if ( "getBoundingClientRect" in document.documentElement ) {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0], box;
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               try {
+                       box = elem.getBoundingClientRect();
+               } catch(e) {}
+
+               var doc = elem.ownerDocument,
+                       docElem = doc.documentElement;
+
+               // Make sure we're not dealing with a disconnected DOM node
+               if ( !box || !jQuery.contains( docElem, elem ) ) {
+                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
+               }
+
+               var body = doc.body,
+                       win = getWindow(doc),
+                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
+                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
+                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
+                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
+                       top  = box.top  + scrollTop  - clientTop,
+                       left = box.left + scrollLeft - clientLeft;
+
+               return { top: top, left: left };
+       };
+
+} else {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0];
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               var computedStyle,
+                       offsetParent = elem.offsetParent,
+                       prevOffsetParent = elem,
+                       doc = elem.ownerDocument,
+                       docElem = doc.documentElement,
+                       body = doc.body,
+                       defaultView = doc.defaultView,
+                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
+                       top = elem.offsetTop,
+                       left = elem.offsetLeft;
+
+               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                               break;
+                       }
+
+                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
+                       top  -= elem.scrollTop;
+                       left -= elem.scrollLeft;
+
+                       if ( elem === offsetParent ) {
+                               top  += elem.offsetTop;
+                               left += elem.offsetLeft;
+
+                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
+                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                               }
+
+                               prevOffsetParent = offsetParent;
+                               offsetParent = elem.offsetParent;
+                       }
+
+                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
+                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                       }
+
+                       prevComputedStyle = computedStyle;
+               }
+
+               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
+                       top  += body.offsetTop;
+                       left += body.offsetLeft;
+               }
+
+               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                       top  += Math.max( docElem.scrollTop, body.scrollTop );
+                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
+               }
+
+               return { top: top, left: left };
+       };
+}
+
+jQuery.offset = {
+
+       bodyOffset: function( body ) {
+               var top = body.offsetTop,
+                       left = body.offsetLeft;
+
+               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
+                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
+                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
+               }
+
+               return { top: top, left: left };
+       },
+
+       setOffset: function( elem, options, i ) {
+               var position = jQuery.css( elem, "position" );
+
+               // set position first, in-case top/left are set even on static elem
+               if ( position === "static" ) {
+                       elem.style.position = "relative";
+               }
+
+               var curElem = jQuery( elem ),
+                       curOffset = curElem.offset(),
+                       curCSSTop = jQuery.css( elem, "top" ),
+                       curCSSLeft = jQuery.css( elem, "left" ),
+                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
+                       props = {}, curPosition = {}, curTop, curLeft;
+
+               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
+               if ( calculatePosition ) {
+                       curPosition = curElem.position();
+                       curTop = curPosition.top;
+                       curLeft = curPosition.left;
+               } else {
+                       curTop = parseFloat( curCSSTop ) || 0;
+                       curLeft = parseFloat( curCSSLeft ) || 0;
+               }
+
+               if ( jQuery.isFunction( options ) ) {
+                       options = options.call( elem, i, curOffset );
+               }
+
+               if ( options.top != null ) {
+                       props.top = ( options.top - curOffset.top ) + curTop;
+               }
+               if ( options.left != null ) {
+                       props.left = ( options.left - curOffset.left ) + curLeft;
+               }
+
+               if ( "using" in options ) {
+                       options.using.call( elem, props );
+               } else {
+                       curElem.css( props );
+               }
+       }
+};
+
+
+jQuery.fn.extend({
+
+       position: function() {
+               if ( !this[0] ) {
+                       return null;
+               }
+
+               var elem = this[0],
+
+               // Get *real* offsetParent
+               offsetParent = this.offsetParent(),
+
+               // Get correct offsets
+               offset       = this.offset(),
+               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+               // Subtract element margins
+               // note: when an element has margin: auto the offsetLeft and marginLeft
+               // are the same in Safari causing offset.left to incorrectly be 0
+               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
+               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
+
+               // Add offsetParent borders
+               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
+               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
+
+               // Subtract the two offsets
+               return {
+                       top:  offset.top  - parentOffset.top,
+                       left: offset.left - parentOffset.left
+               };
+       },
+
+       offsetParent: function() {
+               return this.map(function() {
+                       var offsetParent = this.offsetParent || document.body;
+                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
+                               offsetParent = offsetParent.offsetParent;
+                       }
+                       return offsetParent;
+               });
+       }
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ["Left", "Top"], function( i, name ) {
+       var method = "scroll" + name;
+
+       jQuery.fn[ method ] = function( val ) {
+               var elem, win;
+
+               if ( val === undefined ) {
+                       elem = this[ 0 ];
+
+                       if ( !elem ) {
+                               return null;
+                       }
+
+                       win = getWindow( elem );
+
+                       // Return the scroll offset
+                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
+                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
+                                       win.document.body[ method ] :
+                               elem[ method ];
+               }
+
+               // Set the scroll offset
+               return this.each(function() {
+                       win = getWindow( this );
+
+                       if ( win ) {
+                               win.scrollTo(
+                                       !i ? val : jQuery( win ).scrollLeft(),
+                                        i ? val : jQuery( win ).scrollTop()
+                               );
+
+                       } else {
+                               this[ method ] = val;
+                       }
+               });
+       };
+});
+
+function getWindow( elem ) {
+       return jQuery.isWindow( elem ) ?
+               elem :
+               elem.nodeType === 9 ?
+                       elem.defaultView || elem.parentWindow :
+                       false;
+}
+
+
+
+
+// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function( i, name ) {
+
+       var type = name.toLowerCase();
+
+       // innerHeight and innerWidth
+       jQuery.fn[ "inner" + name ] = function() {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       // outerHeight and outerWidth
+       jQuery.fn[ "outer" + name ] = function( margin ) {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       jQuery.fn[ type ] = function( size ) {
+               // Get window width or height
+               var elem = this[0];
+               if ( !elem ) {
+                       return size == null ? null : this;
+               }
+
+               if ( jQuery.isFunction( size ) ) {
+                       return this.each(function( i ) {
+                               var self = jQuery( this );
+                               self[ type ]( size.call( this, i, self[ type ]() ) );
+                       });
+               }
+
+               if ( jQuery.isWindow( elem ) ) {
+                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
+                       var docElemProp = elem.document.documentElement[ "client" + name ],
+                               body = elem.document.body;
+                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
+                               body && body[ "client" + name ] || docElemProp;
+
+               // Get document width or height
+               } else if ( elem.nodeType === 9 ) {
+                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+                       return Math.max(
+                               elem.documentElement["client" + name],
+                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
+                               elem.body["offset" + name], elem.documentElement["offset" + name]
+                       );
+
+               // Get or set width or height on the element
+               } else if ( size === undefined ) {
+                       var orig = jQuery.css( elem, type ),
+                               ret = parseFloat( orig );
+
+                       return jQuery.isNumeric( ret ) ? ret : orig;
+
+               // Set the width or height on the element (default to pixels if value is unitless)
+               } else {
+                       return this.css( type, typeof size === "string" ? size : size + "px" );
+               }
+       };
+
+});
+
+
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+})( window );
diff --git a/tct-manual-w3c-tests/testkit/web/manual_harness.html b/tct-manual-w3c-tests/testkit/web/manual_harness.html
new file mode 100644 (file)
index 0000000..63a4c61
--- /dev/null
@@ -0,0 +1,312 @@
+<!--
+# Copyright (C) 2012 Intel Corporation
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#
+# Authors:
+#              Zhang, Huihui <huihuix.zhang@intel.com>
+#              Wendong,Sui  <weidongx.sun@intel.com>
+-->
+<!doctype html>
+<html>
+<head>
+<style type="text/css">
+body {
+        margin: 0px;
+}
+
+div#manualharness {
+        box-sizing:border-box;
+        width:100%;
+        border:0px;
+        text-align: left;
+        background: teal;
+        color: white;
+}
+
+textarea#casesinfo{
+        width: 99%;
+        font-size: 20px;
+}
+input,lable,select{
+       font-size: 25px;
+}
+</style>
+<script src="jquery.js"></script>
+<script>
+var iTestsManual = 0;
+
+function fillCasesInfo(){
+        oTestFrame = window.parent.document.getElementById('testframe');
+       oTestFrame.src = '';
+       document.getElementById("caseslist").options[iTestsManual].selected=true;
+       if(window.parent.manualcaseslist[iTestsManual].result == "PASS"){
+               document.getElementById("passradio").checked=true;
+                document.getElementById("passradio").tag=1;
+               document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       } else if(window.parent.manualcaseslist[iTestsManual].result == "FAIL"){
+               document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=true;
+                document.getElementById("failradio").tag=1;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       } else if(window.parent.manualcaseslist[iTestsManual].result == "BLOCK"){
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=true;
+                document.getElementById("blockradio").tag=1;
+        }else {
+               document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       }
+
+       var scriptPathText = window.parent.manualcaseslist[iTestsManual].entry;
+       if(scriptPathText != undefined && scriptPathText.trim().length > 0){
+               document.getElementById("runbutton").disabled = false;
+       }else {
+               document.getElementById("runbutton").disabled = true;
+       }
+       
+       document.getElementById("casesinfo").value="";
+        document.getElementById("casesinfo").value+="Descriptions: "+window.parent.manualcaseslist[iTestsManual].purpose +"\n";
+        var preC = window.parent.manualcaseslist[iTestsManual].pre_con;
+        if (preC && preC.length > 0){
+                document.getElementById("casesinfo").value+= "PreCondition: "+preC+"\n";
+        }
+
+        var posC = window.parent.manualcaseslist[iTestsManual].post_con;
+        if (posC && posC.length > 0){
+                document.getElementById("casesinfo").value+= "PostCondition: "+posC+"\n";
+        }
+
+        var steps = window.parent.manualcaseslist[iTestsManual].steps;
+        if(steps.length > 0){
+            for(var i=0; i<steps.length; i++){
+                document.getElementById("casesinfo").value+= "Step-"+steps[i].order+": "+steps[i].desc+"\n";
+                document.getElementById("casesinfo").value+= "Expected"+": "+steps[i].expected+"\n";
+            }
+        }
+}
+
+function initManual(){
+        for(var i = 0; i < window.parent.manualcaseslist.length; i++){
+            var id_temp = window.parent.manualcaseslist[i].casesid;
+            if(id_temp.length > 32){
+                var prefix = id_temp.substring(0,9);
+                var postfix = id_temp.substring(15);
+                var item = new Option(prefix + " ... " + postfix, window.parent.manualcaseslist[i].index);
+            } else {
+                var item = new Option(window.parent.manualcaseslist[i].casesid, window.parent.manualcaseslist[i].index);
+            }
+            document.getElementById("caseslist").options.add(item);
+        }
+       fillCasesInfo();
+}
+
+function runTest(){
+       var scriptPathText = window.parent.manualcaseslist[iTestsManual].entry;
+       if(scriptPathText){
+               window.parent.document.getElementById('testframe').src = scriptPathText;
+       }
+}
+
+function nextTest(){
+       submitTest();
+       iTestsManual++;
+       if(iTestsManual >= window.parent.manualcaseslist.length)
+               iTestsManual=0;
+       fillCasesInfo();
+}
+
+function prevTest(){
+       submitTest();
+        iTestsManual--;
+        if(iTestsManual < 0)
+                iTestsManual = window.parent.manualcaseslist.length - 1;
+       fillCasesInfo();
+}
+
+function submitTest(){
+       var iResult="N/A";
+       var optionsColor="white";
+       if(document.getElementById("passradio").tag == 1){
+               iResult="PASS";
+               optionsColor="greenyellow";
+       } else if(document.getElementById("failradio").tag == 1){
+               iResult="FAIL";
+               optionsColor="orangered";
+       } else if(document.getElementById("blockradio").tag == 1){
+                iResult="BLOCK";
+                optionsColor="gray";
+        }
+       window.parent.manualcaseslist[iTestsManual].result = iResult;
+       document.getElementById("caseslist").options[iTestsManual].style.backgroundColor = optionsColor;
+
+       var server_url = "http://127.0.0.1:8000/commit_manual_result";
+        jQuery.ajax({
+          async: false,
+          url: server_url,
+          type: "POST",
+          data: {"case_id": window.parent.manualcaseslist[iTestsManual].casesid,"purpose": window.parent.manualcaseslist[iTestsManual].purpose, "result": iResult},
+          dataType: "json",
+          beforeSend: function(x) {
+            if (x && x.overrideMimeType) {
+              x.overrideMimeType("application/json;charset=UTF-8");
+            }
+          },
+          success: function(result) {
+          }
+        });
+}
+
+function completeTest(){
+       window.parent.ask_generate_xml();
+}
+
+function passRadio()
+{
+       var radio = document.getElementById("passradio");
+       if (radio.tag==1){
+               radio.checked=false;
+               radio.tag=0;
+       }else{
+               radio.checked=true;
+               radio.tag=1;
+               document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       }
+}
+
+function failRadio()
+{
+        var radio = document.getElementById("failradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+
+        }
+}
+
+function blockRadio()
+{
+        var radio = document.getElementById("blockradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+        }
+}
+
+function listUpdate(){
+       iTestsManual = document.getElementById("caseslist").selectedIndex;
+       fillCasesInfo();
+}
+
+function passLabel(){
+        var radio = document.getElementById("passradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+        }
+}
+
+function failLabel(){
+       var radio = document.getElementById("failradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+        }
+}
+
+function blockLabel(){
+        var radio = document.getElementById("blockradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+        }
+}
+
+</script>
+</head>
+<body onload="initManual()">
+<div id="manualharness" >
+<input type="button" style="width:13%" id="prevbutton" value="< Prev" onclick="prevTest()"/>
+<select id="caseslist" style="width:59%" onchange="listUpdate()">
+</select>
+<input type="button" style="width:13%" id="nextbutton" value="Next >" onclick="nextTest()"/>
+<input type="button" style="width:12%" id="runbutton" value="Run" onclick="runTest()"/>
+</div>
+<div width=100%>
+<textarea id="casesinfo" rows=8 disabled='disabled' />
+</textarea>
+</div>
+<div style="width:100%;text-align:right;background-color:#cccccc;">
+<input type="radio" id="passradio" value="Pass" onclick="passRadio()"/><label style="font-size:25px" onclick="passLabel()">Pass</label>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<input type="radio" id="failradio" value="Fail" onclick="failRadio()"/><label style="font-size:25px" onclick="failLabel()">Fail</label>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<input type="radio" id="blockradio" value="Block" onclick="blockRadio()"/><label style="font-size:25px" onclick="blockLabel()">Block</label>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<input type="button" style="width:12%" id="submitbutton" value="Save" onclick="submitTest()"/>
+<input type="button" style="width:12%" id="completebutton" value="Done" onclick="completeTest()"/><br>
+</div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/testkit/web/manualharness.html b/tct-manual-w3c-tests/testkit/web/manualharness.html
new file mode 100644 (file)
index 0000000..4570450
--- /dev/null
@@ -0,0 +1,318 @@
+<!--
+# Copyright (C) 2012 Intel Corporation
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#
+# Authors:
+#              Zhang, Huihui <huihuix.zhang@intel.com>
+#              Wendong,Sui  <weidongx.sun@intel.com>
+-->
+<!doctype html>
+<html>
+<head>
+<style type="text/css">
+body {
+        margin: 0px;
+}
+
+div#manualharness {
+       box-sizing:border-box;
+       width:100%;
+       border:0px;
+       text-align: left;
+       background: teal;
+       color: white;
+}
+
+textarea#casesinfo{
+        width: 99%;
+        font-size: 20px;
+}
+
+input,lable,select{
+       font-size: 40px;
+}
+
+</style>
+<script src="jquery.js"></script>
+<script>
+var iTestsManual = 0;
+
+function fillCasesInfo(){
+       window.parent.oTestFrame.src = '';
+       document.getElementById("caseslist").options[iTestsManual].selected=true;
+       if(window.parent.manualcaseslist[iTestsManual].result == "PASS"){
+                document.getElementById("passradio").checked=true;
+                document.getElementById("passradio").tag=1;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       } else if(window.parent.manualcaseslist[iTestsManual].result == "FAIL"){
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=true;
+                document.getElementById("failradio").tag=1;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       } else if(window.parent.manualcaseslist[iTestsManual].result == "BLOCK"){
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=true;
+                document.getElementById("blockradio").tag=1;
+        } else {
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       }
+
+       var scriptPathText = $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('test_script_entry').get(0);
+       if(scriptPathText){
+               if($(scriptPathText).text().trim() == "")
+                       document.getElementById("runbutton").disabled = true;
+               else
+                       document.getElementById("runbutton").disabled = false;
+       }else {
+               document.getElementById("runbutton").disabled = true;
+       }
+       
+       document.getElementById("casesinfo").value="";
+        document.getElementById("casesinfo").value+="Descriptions: "+$(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).attr('purpose')+"\n";
+        var preC = $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('pre_condition');
+        if (preC && preC.length > 0){
+                var preCText = $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('pre_condition').get(0);
+                document.getElementById("casesinfo").value+= "PreCondition: "+$(preCText).text().trim()+"\n";
+        }
+
+        var posC = $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('post_condition');
+        if (posC && posC.length > 0){
+                var posCText = $(posC).get(0);
+                document.getElementById("casesinfo").value+= "PostCondition: "+$(posCText).text().trim()+"\n";
+        }
+        var stepInfo = $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('step_desc');
+        var stepExp = $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('expected');
+        for(var j=0;j<stepInfo.length;j++){
+               var stepsnum = j + 1;
+               if(stepInfo){
+                       var stepInfoText = $(stepInfo[j]).get(0);
+                       document.getElementById("casesinfo").value+= "Step-"+stepsnum+": "+$(stepInfoText).text().trim()+"\n";
+               }
+               if(stepExp){
+                       var stepExpText = $(stepExp[j]).get(0);
+                       document.getElementById("casesinfo").value+= "Expected"+": "+$(stepExpText).text().trim()+"\n";
+               }
+        }
+}
+
+function initManual(){
+        for(var i = 0; i < window.parent.manualcaseslist.length; i++){
+                var id_temp = window.parent.manualcaseslist[i].casesid;
+                if(window.parent.manualcaseslist[i].casesid.length > 32){
+                        var prefix = id_temp.substring(0,9);
+                        var postfix = id_temp.substring(15);
+                        var item = new Option(prefix + " ... " + postfix, window.parent.manualcaseslist[i].index);
+                } else {
+                        var item = new Option(window.parent.manualcaseslist[i].casesid, window.parent.manualcaseslist[i].index);
+                }
+                document.getElementById("caseslist").options.add(item);
+        }
+        fillCasesInfo();
+}
+
+function runTest(){
+       var scriptPathText = $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('test_script_entry').get(0);
+       if(scriptPathText){
+               window.parent.oTestFrame.src = $(scriptPathText).text().trim();
+       }
+}
+
+function nextTest(){
+       submitTest();
+       iTestsManual++;
+       if(iTestsManual >= window.parent.manualcaseslist.length)
+               iTestsManual=0;
+       fillCasesInfo();
+}
+
+function prevTest(){
+       submitTest();
+        iTestsManual--;
+        if(iTestsManual < 0)
+                iTestsManual = window.parent.manualcaseslist.length - 1;
+       fillCasesInfo();
+}
+
+function submitTest(){
+       if (window.parent.manualcaseslist[iTestsManual].index >= window.parent.Tests.length)
+               return;
+       var iResult="N/A";
+       var optionsColor="white";
+       if(document.getElementById("passradio").tag == 1){
+                iResult="PASS";
+                optionsColor="greenyellow";
+       } else if(document.getElementById("failradio").tag == 1){
+                iResult="FAIL";
+                optionsColor="orangered";
+       } else if(document.getElementById("blockradio").tag == 1){
+                iResult="BLOCK";
+                optionsColor="gray";
+        }
+
+       window.parent.manualcaseslist[iTestsManual].result = iResult;
+       document.getElementById("caseslist").options[iTestsManual].style.backgroundColor = optionsColor;
+
+       $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).attr('result', iResult);
+       if($(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('result_info').length > 0)
+               $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).find('result_info').remove();
+
+       var doc=$.parseXML("<result_info>" + "<actual_result>" + iResult +"</actual_result>" + "<start>" + "</start>" + "<end>" + "</end>" + "<stdout>" + "</stdout>" + "</result_info>");
+       $(window.parent.Tests[window.parent.manualcaseslist[iTestsManual].index]).append(doc.documentElement);
+
+//     window.parent.statusNode.innerHTML =  "Test #" + (window.parent.manualcaseslist[iTestsManual].index+1) + "/" + window.parent.Tests.length + "(" + iResult + ") " + window.parent.oTestFrame.src;
+}
+
+function completeTest(){
+       window.parent.PublishResult();
+}
+
+function passRadio()
+{
+       var radio = document.getElementById("passradio");
+       if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+       }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+       }
+}
+
+function failRadio()
+{
+        var radio = document.getElementById("failradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+        }
+}
+
+function blockRadio()
+{
+        var radio = document.getElementById("blockradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+        }
+}
+
+function listUpdate(){
+       iTestsManual = document.getElementById("caseslist").selectedIndex;
+       fillCasesInfo();
+}
+
+function passLabel(){
+        var radio = document.getElementById("passradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+        }
+}
+
+function failLabel(){
+       var radio = document.getElementById("failradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("blockradio").checked=false;
+                document.getElementById("blockradio").tag=0;
+        }
+}
+
+function blockLabel(){
+        var radio = document.getElementById("blockradio");
+        if (radio.tag==1){
+                radio.checked=false;
+                radio.tag=0;
+        }else{
+                radio.checked=true;
+                radio.tag=1;
+                document.getElementById("passradio").checked=false;
+                document.getElementById("passradio").tag=0;
+                document.getElementById("failradio").checked=false;
+                document.getElementById("failradio").tag=0;
+        }
+}
+
+</script>
+</head>
+<body onload="initManual()">
+<div id="manualharness" >
+<input type="button" style="width:13%" id="prevbutton" value="< Prev" onclick="prevTest()"/>
+<select id="caseslist" style="width:59%" onchange="listUpdate()">
+</select>
+<input type="button" style="width:13%" id="nextbutton" value="Next >" onclick="nextTest()"/>
+<input type="button" style="width:13%" id="runbutton" value="Run" onclick="runTest()"/>
+</div>
+<div width=100%>
+<textarea id="casesinfo" rows=11 disabled='disabled' />
+</textarea>
+</div>
+<div style="width:100%;text-align:right;background-color:#cccccc;">
+<input type="radio" id="passradio" value="Pass" onclick="passRadio()"/><label style="font-size:40px" onclick="passLabel()">Pass</label>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<input type="radio" id="failradio" value="Fail" onclick="failRadio()"/><label style="font-size:40px" onclick="failLabel()">Fail</label>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<input type="radio" id="blockradio" value="Block" onclick="blockRadio()"/><label style="font-size:40px" onclick="blockLabel()">Block</label>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<input type="button" style="width:12%" id="submitbutton" value="Save" onclick="submitTest()"/>
+<input type="button" style="width:12%" id="completebutton" value="Done" onclick="completeTest()"/><br>
+</div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/testresult.xsl b/tct-manual-w3c-tests/testresult.xsl
new file mode 100644 (file)
index 0000000..d1ad1b9
--- /dev/null
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+       <xsl:output method="html" version="1.0" encoding="UTF-8"
+               indent="yes" />
+       <xsl:template match="/">
+               <html>
+                       <STYLE type="text/css">
+                               @import "tests.css";
+                       </STYLE>
+
+                       <body>
+                               <div id="testcasepage">
+                                       <div id="title">
+                                               <table>
+                                                       <tr>
+                                                               <td>
+                                                                       <h1>Test Report</h1>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       <div id="device">
+                                               <table>
+                                                       <tr>
+                                                               <th colspan="2">Device Information</th>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device Name</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@device_name" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device Model</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@device_model" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>OS Version</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@os_version" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device ID</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@device_id" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Firmware Version</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@firmware_version" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Screen Size</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@screen_size" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Resolution</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@resolution" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Host Info</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@host" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Others</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/other" />
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+
+                                       <div id="summary">
+                                               <table>
+                                                       <tr>
+                                                               <th colspan="2">Test Summary</th>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Plan Name</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/summary/@test_plan_name" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Tests Total</td>
+                                                               <td>
+                                                                       <xsl:value-of select="count(test_definition//suite/set/testcase)" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Passed</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase[@result = 'PASS'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Failed</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase[@result = 'FAIL'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test N/A</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase[@result = 'BLOCK'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Not Run</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase) - count(test_definition//suite/set/testcase[@result = 'PASS']) - count(test_definition//suite/set/testcase[@result = 'FAIL']) - count(test_definition//suite/set/testcase[@result = 'BLOCK'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Start time</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/summary/start_at" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>End time</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/summary/end_at" />
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+
+
+                                       <div id="suite_summary">
+                                               <div id="title">
+                                                       <table>
+                                                               <tr>
+                                                                       <td class="title">
+                                                                               <h1>Test Summary by Suite</h1>
+                                                                       </td>
+                                                               </tr>
+                                                       </table>
+                                               </div>
+                                               <table>
+                                                       <tr>
+                                                               <th>Suite</th>
+                                                               <th>Passed</th>
+                                                               <th>Failed</th>
+                                                               <th>N/A</th>
+                                                               <th>Not Run</th>
+                                                               <th>Total</th>
+                                                       </tr>
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <xsl:sort select="@name" />
+                                                               <tr>
+                                                                       <td>
+                                                                               <xsl:value-of select="@name" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase[@result = 'PASS'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase[@result = 'FAIL'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase[@result = 'BLOCK'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of
+                                                                                       select="count(set//testcase) - count(set//testcase[@result = 'PASS']) - count(set//testcase[@result = 'FAIL']) - count(set//testcase[@result = 'BLOCK'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase)" />
+                                                                       </td>
+                                                               </tr>
+                                                       </xsl:for-each>
+                                               </table>
+                                       </div>
+
+                                       <div id="cases">
+                                               <div id="title">
+                                                       <table>
+                                                               <tr>
+                                                                       <td class="title">
+                                                                               <h1 align="center">Detailed Test Results</h1>
+                                                                       </td>
+                                                               </tr>
+                                                       </table>
+                                               </div>
+                                               <xsl:for-each select="test_definition/suite">
+                                                       <xsl:sort select="@name" />
+                                                       <p>
+                                                               Test Suite:
+                                                               <xsl:value-of select="@name" />
+                                                       </p>
+                                                       <table>
+                                                               <tr>
+                                                                       <th>Case_ID</th>
+                                                                       <th>Purpose</th>
+                                                                       <th>Result</th>
+                                                                       <th>Stdout</th>
+                                                               </tr>
+                                                               <xsl:for-each select=".//set">
+                                                                       <xsl:sort select="@name" />
+                                                                       <tr>
+                                                                               <td colspan="4">
+                                                                                       Test Set:
+                                                                                       <xsl:value-of select="@name" />
+                                                                               </td>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//testcase">
+                                                                               <xsl:sort select="@id" />
+                                                                               <tr>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@id" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@purpose" />
+                                                                                       </td>
+
+                                                                                       <xsl:choose>
+                                                                                               <xsl:when test="@result">
+                                                                                                       <xsl:if test="@result = 'FAIL'">
+                                                                                                               <td class="red_rate">
+                                                                                                                       <xsl:value-of select="@result" />
+                                                                                                               </td>
+                                                                                                       </xsl:if>
+                                                                                                       <xsl:if test="@result = 'PASS'">
+                                                                                                               <td class="green_rate">
+                                                                                                                       <xsl:value-of select="@result" />
+                                                                                                               </td>
+                                                                                                       </xsl:if>
+                                                                                                       <xsl:if test="@result = 'BLOCK' ">
+                                                                                                               <td>
+                                                                                                                       BLOCK
+                                                                                                               </td>
+                                                                                                       </xsl:if>
+                                                                                               </xsl:when>
+                                                                                               <xsl:otherwise>
+                                                                                                       <td>
+
+                                                                                                       </td>
+                                                                                               </xsl:otherwise>
+                                                                                       </xsl:choose>
+                                                                                       <td>
+                                                                                               <xsl:value-of select=".//result_info/stdout" />
+                                                                                               <xsl:if test=".//result_info/stdout = ''">
+                                                                                                       N/A
+                                                                                               </xsl:if>
+                                                                                       </td>
+                                                                               </tr>
+                                                                       </xsl:for-each>
+                                                               </xsl:for-each>
+                                                       </table>
+                                               </xsl:for-each>
+                                       </div>
+                               </div>
+                       </body>
+               </html>
+       </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/tests.css b/tct-manual-w3c-tests/tests.css
new file mode 100644 (file)
index 0000000..30c3670
--- /dev/null
@@ -0,0 +1,103 @@
+@charset "UTF-8";
+/* CSS Document */
+#testcasepage div,#testcasepage h1,#testcasepage p,#testcasepage table,#testcasepage tr,#testcasepage th,#testcasepage td
+       {
+       margin: 0;
+       padding: 0;
+       border: 0;
+       font-weight: inherit;
+       font-style: inherit;
+       font-size: 0.96em;
+       font-family: arial;
+       vertical-align: baseline;
+}
+
+#testcasepage p {
+       text-align: left;
+}
+
+#testcasepage table {
+       border-collapse: separate;
+       border-spacing: 0;
+       margin-bottom: 1.4em;
+       vertical-align: middle;
+}
+
+#testcasepage th,#testcasepage td {
+       text-align: left;
+       font-weight: normal;
+       padding: 4px 10px 4px 5px;
+       vertical-align: middle;
+}
+
+#cases table {
+       width: 101%;
+}
+
+#title table {
+       width: 101%;
+}
+
+#device table {
+       width: 50%;
+}
+
+#summary table {
+       width: 50%;
+}
+
+#testcasepage th {
+       border-bottom: 1px solid #000;
+       background-color: #AAAAAA;
+       border-left: 1px solid #000;
+       border-top: 1px solid #000;
+       color: #000;
+       font-weight: bold;
+       vertical-align: bottom;
+}
+
+#testcasepage th:last-child, #testcasepage td:last-child {
+       border-right: 1px solid #000;
+}
+
+#testcasepage td {
+       border-left: 1px solid;
+       font-weight: normal;
+       border-bottom: 1px solid;
+}
+
+#testcasepage td.yellow_rate {
+       background-color: #ffcc00;
+}
+
+#testcasepage td.green_rate {
+       background-color: #33cc33;
+}
+
+#testcasepage td.dgreen_rate {
+       background-color: #339933;
+}
+
+#testcasepage td.red_rate {
+       background-color: #FF3333;
+}
+
+#title table, #title tr, #title td {
+       border-left: none;
+       border-bottom: none;
+       text-align: center;
+}
+
+#title td:last-child {
+       border-right: none;
+}
+
+#testcasepage h1 {
+       font-size: 2em;
+       font-family: Arial, sans-serif; font-weight : bold;
+       line-height: 1;
+       color: #000;
+       margin-bottom: 0.75em;
+       padding-top: 0.25em;
+       font-weight: bold;
+}
\ No newline at end of file
diff --git a/tct-manual-w3c-tests/tests.xml b/tct-manual-w3c-tests/tests.xml
new file mode 100644 (file)
index 0000000..aa0db60
--- /dev/null
@@ -0,0 +1,6664 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl"  href="testcase.xsl"?>
+<test_definition>
+  <suite name="tct-manual-w3c-tests" launcher="WRTLauncher">
+    <set name="csp">
+      <testcase purpose="Check if user agent is unable to use javascript internal when sandbox is empty." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_sandbox_empty_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_sandbox_empty_int</step_desc>
+              <expected>To pass, if there is no text 'FAIL' below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_sandbox_empty_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="sandbox" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use javascript in external when sandbox is empty." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_sandbox_empty_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_sandbox_empty_ext</step_desc>
+              <expected>To pass, if there is no text 'FAIL' below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_sandbox_empty_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="sandbox" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use javascript in event handler when sandbox is empty." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_sandbox_empty_event">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_sandbox_empty_event</step_desc>
+              <expected>To pass, if there is no text 'FAIL' below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_sandbox_empty_event.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="sandbox" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use javascript inline when sandbox is empty." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_sandbox_empty_inline">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_sandbox_empty_inline</step_desc>
+              <expected>To pass, if there is no text 'FAIL' below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_sandbox_empty_inline.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="sandbox" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#sandbox-optional</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal image resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_default-src_self_img_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_img_allowed</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_img_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external image resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_default-src_self_img_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_img_blocked</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_img_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal object resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_default-src_self_object_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_object_allowed</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_object_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external object resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_default-src_self_object_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_object_blocked</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_object_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external font resource when default-src is cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_cross-origin_font_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_cross-origin_font_allowed.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use internal font resource when default-src is cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_cross-origin_font_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_cross-origin_font_blocked.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_font_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external font resource when default-src is none." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_none_font_blocked_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_none_font_blocked_ext.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use internal font resource when default-src is none." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_none_font_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_none_font_blocked_int.</step_desc>
+              <expected>To pass, if two lines have the same font.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_none_font_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal font resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_default-src_self_font_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_font_allowed.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_font_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external font resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_default-src_self_font_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_font_blocked.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_font_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the first allowed external font resource when default-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_cross-origin_multi_font_allowed_one">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_cross-origin_multi_font_allowed_one.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_one.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the second allowed external font resource when default-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_cross-origin_multi_font_allowed_two">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_cross-origin_multi_font_allowed_two.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_allowed_two.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the not allowed external font resource when default-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_cross-origin_multi_font_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_cross-origin_multi_font_blocked.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the internal font resource when default-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_cross-origin_multi_font_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_cross-origin_multi_font_blocked_int.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_cross-origin_multi_font_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal frame resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_self_frame_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_frame_allowed.</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_frame_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external default resource when default-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_default-src_self_frame_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_default-src_self_frame_blocked.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_default-src_self_frame_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="default-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#default-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external font resource when font-src is *." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_asterisk_allowed_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_asterisk_allowed_ext.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal font resource when font-src is *." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_asterisk_allowed_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_asterisk_allowed_int.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_asterisk_allowed_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external font resource when font-src is cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_cross-origin_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_cross-origin_allowed.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use internal font resource when font-src is cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_cross-origin_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_cross-origin_blocked.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external font resource when font-src is none." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_none_blocked_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_none_blocked_ext.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_none_blocked_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use internal font resource when font-src is none." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_none_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_none_blocked_int.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_none_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal font resource when font-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_font-src_self_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_self_allowed.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_self_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external font resource when font-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_font-src_self_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_self_blocked.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_self_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the first allowed external font resource when font-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_cross-origin_multi_allowed_one">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_cross-origin_multi_allowed_one.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_one.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the second allowed external font resource when font-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_cross-origin_multi_allowed_two">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_cross-origin_multi_allowed_two.</step_desc>
+              <expected>To pass, if two lines are different in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_allowed_two.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the not allowed external font resource when font-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_cross-origin_multi_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_cross-origin_multi_blocked.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the internal font resource when font-src is multi cross origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_font-src_cross-origin_multi_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_font-src_cross-origin_multi_blocked_int.</step_desc>
+              <expected>To pass, if two lines have the same font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_font-src_cross-origin_multi_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external font resource when font-src is self in report only mode." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_ro_font-src_self_allowed_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_ro_font-src_self_allowed_ext.</step_desc>
+              <expected>To pass, if two lines are defferent in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal font resource when font-src is self in report only mode." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P1" id="csp_ro_font-src_self_allowed_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_ro_font-src_self_allowed_int.</step_desc>
+              <expected>To pass, if two lines are defferent in font</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_ro_font-src_self_allowed_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="font-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#font-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external frame resource when frame-src is asterisk." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_asterisk_allowed_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_asterisk_allowed_ext.</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal frame resource when frame-src is asterisk." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_asterisk_allowed_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_asterisk_allowed_int.</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_asterisk_allowed_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external frame resource when frame-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_cross-origin_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_cross-origin_allowed.</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use not allowed eternal frame resource when frame-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_cross-origin_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_cross-origin_blocked.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use internal frame resource when frame-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_cross-origin_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_cross-origin_blocked_int.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the first external frame resource when frame-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_cross-origin_multi_allowed_one">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_cross-origin_multi_allowed_one.</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_one.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the second external frame resource when frame-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_cross-origin_multi_allowed_two">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_cross-origin_multi_allowed_two.</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_allowed_two.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the not allowed external frame resource when frame-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_cross-origin_multi_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_cross-origin_multi_blocked.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the internal frame resource when frame-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_cross-origin_multi_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_cross-origin_multi_blocked_int.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_cross-origin_multi_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external frame resource when frame-src is none." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_none_blocked_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_none_blocked_ext.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use internal frame resource when frame-src is none." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_none_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_none_blocked_int.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_none_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal frame resource when frame-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_self_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_self_allowed.</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_self_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use external frame resource when frame-src is self." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_frame-src_self_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_frame-src_self_blocked.</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_frame-src_self_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="frame-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#frame-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external image resource when img-src is *." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_asterisk_allowed_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_asterisk_allowed_ext</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal image resource when img-src is *." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_asterisk_allowed_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_asterisk_allowed_int</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_asterisk_allowed_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external image resource when img-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_cross-origin_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_cross-origin_allowed</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use not-allowed external image resource when img-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_cross-origin_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_cross-origin_blocked</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use internal image resource when img-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_cross-origin_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_cross-origin_blocked_int</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the first allowed external image resource when img-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_cross-origin_multi_allowed_one">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_cross-origin_multi_allowed_one</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_one.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the second allowed external image resource when img-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_cross-two">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_cross-origin_multi_allowed_two</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_allowed_two.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the not-allowed external image resource when img-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_cross-origin_multi_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_cross-origin_multi_blocked</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the internal image resource when img-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_cross-origin_multi_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_cross-origin_multi_blocked_int</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_cross-origin_multi_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the external image resource when img-src is 'none'." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_none_blocked_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_none_blocked_ext</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_none_blocked_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the internal image resource when img-src is 'none'." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_none_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_none_blocked_int</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_none_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the internal image resource when img-src is 'self'." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_self_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_self_allowed</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_self_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the external image resource when img-src is 'self'." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_img-src_self_blocked">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_img-src_self_blocked</step_desc>
+              <expected>To pass, if no red square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_img-src_self_blocked.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the external image resource when img-src is 'self' in report-only mode." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_ro_img-src_self_allowed_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_ro_img-src_self_allowed_ext</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the internal image resource when img-src is 'self' in report-only mode." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_ro_img-src_self_allowed_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_ro_img-src_self_allowed_int</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_ro_img-src_self_allowed_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="img-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#img-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external image resource when object-src is *." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_object-src_asterisk_allowed_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_object-src_asterisk_allowed_ext</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use internal image resource when object-src is *." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_object-src_asterisk_allowed_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_object-src_asterisk_allowed_int</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_object-src_asterisk_allowed_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use external image resource when object-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_object-src_cross-origin_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_object-src_cross-origin_allowed</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the first allowed external image resource when object-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_object-src_cross-origin_multi_allowed_one">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_object-src_cross-origin_multi_allowed_one</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_one.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the second allowed external image resource when object-src is multi cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_object-src_cross-two">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_object-src_cross-origin_multi_allowed_two</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_object-src_cross-origin_multi_allowed_two.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the internal image resource when object-src is 'self'." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_object-src_self_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_object-src_self_allowed</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_object-src_self_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the external image resource when object-src is 'self' in report-only mode." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_ro_object-src_self_allowed_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_ro_object-src_self_allowed_ext</step_desc>
+              <expected>To pass, if a filled green square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the internal image resource when object-src is 'self' in report-only mode." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_ro_object-src_self_allowed_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual case: csp_ro_object-src_self_allowed_int</step_desc>
+              <expected>To pass, if a filled blue square is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_ro_object-src_self_allowed_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="object-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#object-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use script resource when script-src is none." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_none">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_none</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_none.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the inline script resource when script-src is cross-origin." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_cross-origin">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_cross-origin.</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_cross-origin.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the inline script resource when script-src is only unsafe-inline." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_unsafe-inline_allowed">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_unsafe-inline_allowed.</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the inline script resource when there is no 'unsafe-inline' in script-src." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_cross-origin_block_inline">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_cross-origin_block_inline.</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_cross-origin_block_inline.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the inline script called by event resource when script-src is only unsafe-inline." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_unsafe-inline_allowed_event">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_unsafe-inline_allowed_event.</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_event.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is able to use the inline script in iframe resource when script-src is only unsafe-inline." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_unsafe-inline_allowed_iframe">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_unsafe-inline_allowed_iframe.</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_allowed_iframe.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the external script resource when script-src is only unsafe-inline." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_unsafe-inline_blocked_ext">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_unsafe-inline_blocked_ext.</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_ext.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if user agent is unable to use the internal script resource when script-src is only unsafe-inline." type="compliance" status="approved" component="WebAPI/TBD/Content Security Policy" execution_type="manual" priority="P2" id="csp_script-src_unsafe-inline_blocked_int">
+        <description>
+          <pre_condition>Connect to PHP server</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Run the manual testcase: csp_script-src_unsafe-inline_blocked_int.</step_desc>
+              <expected>To pass, if text 'PASS' appears below.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">http://127.0.0.1:8080/opt/tct-manual-w3c-tests/csp/csp_script-src_unsafe-inline_blocked_int.php</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="script-src" interface="Content-Security-Policy" specification="Content Security Policy" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-CSP-20121115/#script-src</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="audio">
+      <testcase purpose="Check if the audio element has a current media controller that expecting the loop attribute has no effect" type="compliance" status="approved" component="WebAPI/Media/HTML5 The audio element (Partial)" execution_type="manual" priority="P2" id="audio_loop_current_media_controller">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the audio element has a current media controller that expecting the loop attribute has no effect</step_desc>
+              <expected>the audio doesn't repeatly play and the text 'The user agent doesn't support media element.' does not appear anywhere on this page</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/audio/w3c/audio_loop_current_media_controller.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="controller" interface="HTMLAudioElement" specification="HTML5 The audio element (Partial)" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-audio-element.html</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="widgetpolicy">
+      <testcase purpose="According to the default policy, a user agent must deny to access the external network image." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_do_not_load_image">
+        <description>
+          <pre_condition>Make sure do_not_load_image.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt</pre_condition>
+          <post_condition>Get the 'application id' of do_not_load_image.wgt with the command : wrt-launcher -l, then uninstall the do_not_load_image.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch do_not_load_image.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="According to the default policy, a user agent must deny to access the external network script." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_do_not_load_script">
+        <description>
+          <pre_condition>Make sure do_not_load_script.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt</pre_condition>
+          <post_condition>Get the 'application id' of do_not_load_script.wgt with the command : wrt-launcher -l, then uninstall the do_not_load_script.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch do_not_load_script.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="According to the default policy, a user agent must deny to access the external network iframe." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_do_not_load_iframe">
+        <description>
+          <pre_condition>Make sure do_not_load_iframe.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_iframe.wgt</pre_condition>
+          <post_condition>Get the 'application id' of do_not_load_iframe.wgt with the command : wrt-launcher -l, then uninstall the do_not_load_iframe.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch do_not_load_iframe.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_iframe.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="A user agent should grant access to network script resources listed in the access-request list." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_script">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_script.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_script.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_script.wgt with the command : wrt-launcher -l, then uninstall the load_script.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_script.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_script.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="A user agent should grant access to network image resources listed in the access-request list." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_image.wgt with the command : wrt-launcher -l, then uninstall the load_image.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_image.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud and a gray background of "...testing..." image is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="A user agent should grant access to network frame resources listed in the access-request list." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_iframe">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_iframe.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_iframe.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_iframe.wgt with the command : wrt-launcher -l, then uninstall the load_iframe.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_iframe.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud and a "...testing..." image is displayed in the gray frame</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_iframe.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="When a user agent grants access to a given set of network resources, it must do equally for APIs and markup." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_and_script">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_and_script.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_image_and_script.wgt with the command : wrt-launcher -l, then uninstall the load_image_and_script.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_image_and_script.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud and a gray background of "...testing..." image is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="When a user agent grants access to a given set of network text resources, it must do equally for APIs and markup." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_text_over_xhr">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_text_over_xhr.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_text_over_xhr.wgt with the command : wrt-launcher -l, then uninstall the load_text_over_xhr.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_text_over_xhr.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="When a user agent is not grant access to network resources, it should deny access requests." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_block_loading_text_over_xhr">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure block_loading_text_over_xhr.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt</pre_condition>
+          <post_condition>Get the 'application id' of block_loading_text_over_xhr.wgt with the command : wrt-launcher -l, then uninstall the block_loading_text_over_xhr.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch block_loading_text_over_xhr.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" and "An exception was thrown: 'error'" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that dir 'ltr' does not affect &lt;access&gt; element." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_dir_ltr">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_dir_ltr.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_ltr.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_dir_ltr.wgt with the command : wrt-launcher -l, then uninstall the ignore_dir_ltr.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_dir_ltr.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_ltr.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that dir 'rtl' does not affect &lt;access&gt; element." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_dir_rtl">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_dir_rtl.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rtl.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_dir_rtl.wgt with the command : wrt-launcher -l, then uninstall the ignore_dir_rtl.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_dir_rtl.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rtl.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that dir 'lro' does not affect &lt;access&gt; element." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_dir_lro">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_dir_lro.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_lro.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_dir_lro.wgt with the command : wrt-launcher -l, then uninstall the ignore_dir_lro.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_dir_lro.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_lro.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that dir 'rlo' does not affect &lt;access&gt; element." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_dir_rlo">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_dir_rlo.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rlo.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_dir_rlo.wgt with the command : wrt-launcher -l, then uninstall the ignore_dir_rlo.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_dir_rlo.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rlo.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; elements with no origin attribute." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_with_missing_origin">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_missing_origin.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_with_missing_origin.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_with_missing_origin.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_with_missing_origin.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent can process and support a &lt;access&gt; element with a wildcard ('*') origin." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_wildcard_support">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure wildcard_support.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt</pre_condition>
+          <post_condition>Get the 'application id' of wildcard_support.wgt with the command : wrt-launcher -l, then uninstall the wildcard_support.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch wildcard_support.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin containing an invalid IRI." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_invalid_uri_1">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_1.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_invalid_uri_1.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_invalid_uri_1.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_invalid_uri_1.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that uses the HTTP scheme and invalid host component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_invalid_uri_2">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_2.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_invalid_uri_2.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_invalid_uri_2.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_invalid_uri_2.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores an invalid origin attribute value." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_invalid_uri_3">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_3.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_invalid_uri_3.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_invalid_uri_3.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_invalid_uri_3.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen showa "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that does not contain an authority component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_no_authority">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_authority.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_no_authority.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_no_authority.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_no_authority.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains an iuserinfo component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_iuserinfo">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_iuserinfo.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_iuserinfo.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_iuserinfo.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_iuserinfo.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains a path component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_path_component_1">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_path_component_1.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_path_component_1.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_path_component_1.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_path_component_1.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that has no host component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_no_host">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_host.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_no_host.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_no_host.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_no_host.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains a query component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_query_component">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_query_component.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_query_component.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_query_component.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_query_component.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that has a fragment component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_fragment">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_fragment.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_fragment.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_fragment.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_fragment.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that uses the HTTP scheme and has no host component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_http_no_host">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_http_no_host.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_element_with_http_no_host.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_http_no_host.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_element_with_http_no_host.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent processes &lt;access&gt; element when subdomains attribute is true." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_from_subdomain1">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_subdomain1.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_image_from_subdomain1.wgt with the command : wrt-launcher -l, then uninstall the load_image_from_subdomain1.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_image_from_subdomain1.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud and a gray background of "...testing..." image is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent processes &lt;access&gt; element when subdomains attribute is false." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_do_not_load_image_from_subdomain1">
+        <description>
+          <pre_condition>Make sure do_not_load_image_from_subdomain1.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain1.wgt</pre_condition>
+          <post_condition>Get the 'application id' of do_not_load_image_from_subdomain1.wgt with the command : wrt-launcher -l, then uninstall the do_not_load_image_from_subdomain1.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch do_not_load_image_from_subdomain1.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain1.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the subdomains attribute is false by defalt when it is missing." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_do_not_load_image_from_subdomain2">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure do_not_load_image_from_subdomain2.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain2.wgt</pre_condition>
+          <post_condition>Get the 'application id' of do_not_load_image_from_subdomain2.wgt with the command : wrt-launcher -l, then uninstall the do_not_load_image_from_subdomain2.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch do_not_load_image_from_subdomain2.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain2.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent assumes port 80 for the http protocol." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_from_port_80">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_port_80.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_80.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_image_from_port_80.wgt with the command : wrt-launcher -l, then uninstall the load_image_from_port_80.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_image_from_port_80.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" with green backgroud and a gray background of "...testing..." image is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_80.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent processes &lt;access&gt; element with an explicit non-standard port number." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_from_port_83">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_port_83.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_83.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_image_from_port_83.wgt with the command : wrt-launcher -l, then uninstall the load_image_from_port_83.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_image_from_port_83.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud and a gray background of "...testing..." image is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_83.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent processes can assume the default port number of https." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_from_port_443">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_port_443.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_443.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_image_from_port_443.wgt with the command : wrt-launcher -l, then uninstall the load_image_from_port_443.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_image_from_port_443.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" with green backgroud and a gray background of "...testing..." image is displayed.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_443.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an unsupported scheme." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_with_unsupported_scheme">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_unsupported_scheme.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ignore_access_with_unsupported_scheme.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_with_unsupported_scheme.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ignore_access_with_unsupported_scheme.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent processes &lt;access&gt; elements using the ToASCII algorithm as defined in RFC3490." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_using_toASCII">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_using_toASCII.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_using_toASCII.wgt</pre_condition>
+          <post_condition>Get the 'application id' of load_image_using_toASCII.wgt with the command : wrt-launcher -l, then uninstall the load_image_using_toASCII.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch load_image_using_toASCII.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The "PASS" and "ICANN" logo are displayed on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_using_toASCII.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent must compare hosts in a case-insensitive manner when the scheme is 'http'." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_HTTP_compare_hosts_in_a_case-insensitive_manner">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure HTTP_compare_hosts_in_a_case-insensitive_manner.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/HTTP_compare_hosts_in_a_case-insensitive_manner.wgt</pre_condition>
+          <post_condition>Get the 'application id' of HTTP_compare_hosts_in_a_case-insensitive_manner.wgt with the command : wrt-launcher -l, then uninstall the HTTP_compare_hosts_in_a_case-insensitive_manner.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch HTTP_compare_hosts_in_a_case-insensitive_manner.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/HTTP_compare_hosts_in_a_case-insensitive_manner.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent must compare hosts in a case-insensitive manner when the scheme is 'https'." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_HTTPS_compare_hosts_in_a_case-insensitive_manner">
+        <description>
+          <pre_condition>Make sure the device can access to the network; Make sure HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetpolicy/w3c/HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt.wgt</pre_condition>
+          <post_condition>Get the 'application id' of HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt with the command : wrt-launcher -l, then uninstall the HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green backgroud.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetpolicy/w3c/HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Access Request Policy" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/widgets-access/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="widgetpackaging">
+      <testcase purpose="Test the UA's support for explicitly setting the valid mime type of a file using the type attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_dc">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of dc.wgt with the command : wrt-launcher -l, then uninstall the dc.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/dc.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of dc.wgt with the command :"wrt-launcher -l" and launch the dc.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can locate the icon at the root of the widget package." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_bj">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of bj.wgt with the command : wrt-launcher -l, then uninstall the bj.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/bj.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the bj widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can locate the icon in a locale folder." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_bk">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of bk.wgt with the command : wrt-launcher -l, then uninstall the bk.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/bk.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the bk widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can locate the icon in a locale folder and at the root of the widget package." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_bl">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of bl.wgt with the command : wrt-launcher -l, then uninstall the bl.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/bl.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the bl widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can load default icons in the correct order." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_bo">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of bo.wgt with the command : wrt-launcher -l, then uninstall the bo.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/bo.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the bo widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" and "png" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process icon elements without a src attribute correctly." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_d1">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of d1.wgt with the command : wrt-launcher -l, then uninstall the d1.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/d1.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the d1 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can handle the situation where a path points to an icon which does not exist." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_d2">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of d2.wgt with the command : wrt-launcher -l, then uninstall the d2.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/d2.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the d2 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can select start files in the appropriate order." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_cc">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of cc.wgt with the command : wrt-launcher -l, then uninstall the cc.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/cc.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of cc.wgt with the command :"wrt-launcher -l" and launch the cc.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can ignore subsequent repetitions of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_bq">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of bq.wgt with the command : wrt-launcher -l, then uninstall the bq.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/bq.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of bq.wgt with the command :"wrt-launcher -l" and launch the bq.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can treat default icon at the root of the widget package name case-sensitively." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_ad">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ad.wgt with the command : wrt-launcher -l, then uninstall the ad.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ad.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the ad widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can treat default icon name case-sensitively." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_ae">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ae.wgt with the command : wrt-launcher -l, then uninstall the ae.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ae.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the ae widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process the author href attribute correctly." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_am">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of am.wgt with the command : wrt-launcher -l, then uninstall the am.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/am.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of am.wgt with the command :"wrt-launcher -l" and launch the am.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent does not attempt to load a default start file when a custom start file has been declared." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_aw">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of aw.wgt with the command : wrt-launcher -l, then uninstall the aw.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/aw.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of aw.wgt with the command :"wrt-launcher -l" and launch the aw.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the value of defaultlocale is also used in folder-based localization." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_dlocuse00">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ta-de-000.wgt with the command : wrt-launcher -l, then uninstall the ta-de-000.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-000.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of ta-de-000.wgt with the command :"wrt-launcher -l" and launch the ta-de-000.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process icon elements with an empty src attribute correctly." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_ga">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ga.wgt with the command : wrt-launcher -l, then uninstall the ga.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ga.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the ga widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can handle a content element with an empty src attribute correctly." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_gb">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of gb.wgt with the command : wrt-launcher -l, then uninstall the gb.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/gb.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of gb.wgt with the command :"wrt-launcher -l" and launch the gb.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process the height attribute of an icon." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i1">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i1.wgt with the command : wrt-launcher -l, then uninstall the i1.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i1.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the i1 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction does not apply to the src attribute of the icon element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nlro23">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nlro23.wgt with the command : wrt-launcher -l, then uninstall the i18nlro23.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro23.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the i18nlro23 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction does not apply to the src attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nlro26">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nlro26.wgt with the command : wrt-launcher -l, then uninstall the i18nlro26.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro26.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nlro26.wgt with the command :"wrt-launcher -l" and launch the i18nlro26.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction does not apply to the type attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nlro27">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nlro27.wgt with the command : wrt-launcher -l, then uninstall the i18nlro27.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro27.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nlro27.wgt with the command :"wrt-launcher -l" and launch the i18nlro27.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction does not apply to the encoding attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nlro28">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nlro28.wgt with the command : wrt-launcher -l, then uninstall the i18nlro28.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro28.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nlro28.wgt with the command :"wrt-launcher -l" and launch the i18nlro28.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>The correct picture can be displayed according to the successful description on screen.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LTR direction does not apply to the src attribute of the icon element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nltr23">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nltr23.wgt with the command : wrt-launcher -l, then uninstall the i18nltr23.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr23.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the i18nltr23 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LTR direction does not apply to the src attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nltr26">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nltr26.wgt with the command : wrt-launcher -l, then uninstall the i18nltr26.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr26.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nltr26.wgt with the command :"wrt-launcher -l" and launch the i18nltr26.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LTR direction does not apply to the type attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nltr27">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nltr27.wgt with the command : wrt-launcher -l, then uninstall the i18nltr27.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr27.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nltr27.wgt with the command :"wrt-launcher -l" and launch the i18nltr27.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LTR direction does not apply to the encoding attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nltr28">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nltr28.wgt with the command : wrt-launcher -l, then uninstall the i18nltr28.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr28.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nltr28.wgt with the command :"wrt-launcher -l" and launch the i18nltr28.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>The correct picture can be displayed according to the successful description on screen.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RLO direction does not apply to the src attribute of the icon element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrlo23">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo23.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo23.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo23.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the i18nrlo23 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RLO direction does not apply to the src attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrlo26">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo26.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo26.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo26.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrlo26.wgt with the command :"wrt-launcher -l" and launch the i18nrlo26.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RLO direction does not apply to the type attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrlo27">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo27.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo27.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo27.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrlo27.wgt with the command :"wrt-launcher -l" and launch the i18nrlo27.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RLO direction does not apply to the encoding attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrlo28">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo28.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo28.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo28.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrlo28.wgt with the command :"wrt-launcher -l" and launch the i18nrlo28.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>The correct picture can be displayed according to the successful description on screen.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction does not apply to the src attribute of the icon element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrtl23">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl23.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl23.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl23.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the i18nrtl23 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction does not apply to the src attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrtl26">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl26.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl26.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl26.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrtl26.wgt with the command :"wrt-launcher -l" and launch the i18nrtl26.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction does not apply to the type attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrtl27">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl27.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl27.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl27.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrtl27.wgt with the command :"wrt-launcher -l" and launch the i18nrtl27.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction does not apply to the encoding attribute of the content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrtl28">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl28.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl28.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl28.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrtl28.wgt with the command :"wrt-launcher -l" and launch the i18nrtl28.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the correct picture can be displayed according to the successful description on screen.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction does not apply to the viewmodes attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrtl43">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl43.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl43.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl43.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrtl43.wgt with the command :"wrt-launcher -l" and launch the i18nrtl43.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process the width attribute of an icon element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i9">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i9.wgt with the command : wrt-launcher -l, then uninstall the i9.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i9.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the i9 widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process the various values applicable to the viewmodes attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_viewb">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of viewb.wgt with the command : wrt-launcher -l, then uninstall the viewb.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/viewb.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of viewb.wgt with the command :"wrt-launcher -l" and launch the viewb.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process a viewmodes attribute containing an unsupported value." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_viewf">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of viewf.wgt with the command : wrt-launcher -l, then uninstall the viewf.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/viewf.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of viewf.wgt with the command :"wrt-launcher -l" and launch the viewf.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process a viewmodes attribute containing multiple supported values." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_viewg">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of viewg.wgt with the command : wrt-launcher -l, then uninstall the viewg.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/viewg.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of viewg.wgt with the command :"wrt-launcher -l" and launch the viewg.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can process an empty viewmodes attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_viewi">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of viewi.wgt with the command : wrt-launcher -l, then uninstall the viewi.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/viewi.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of viewi.wgt with the command :"wrt-launcher -l" and launch the viewi.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can ignore unknown elements correctly." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_xx">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of xx.wgt with the command : wrt-launcher -l, then uninstall the xx.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/xx.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of xx.wgt with the command :"wrt-launcher -l" and launch the xx.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can ignore a file which contains the garbage data and can't be processed as an icon format." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_za">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of za.wgt with the command : wrt-launcher -l, then uninstall the za.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/za.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the za widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can ignore subsequent declarations to use the same icon." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_zc">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of zc.wgt with the command : wrt-launcher -l, then uninstall the zc.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/zc.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the zc widget logo.</step_desc>
+              <expected>To pass, the user agent must select black "PASS" on the round green background as the widget logo.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can correctly deal with an icon element that points to a file which is not present in the widget package." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_zz">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of zz.wgt with the command : wrt-launcher -l, then uninstall the zz.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/zz.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the zz widget logo.</step_desc>
+              <expected>To pass, the icon must be empty.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent applies rule for getting a single attribute value from the defaultlocale attribute." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_dlocignore01">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ta-de-001.wgt with the command : wrt-launcher -l, then uninstall the ta-de-001.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-001.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of ta-de-001.wgt with the command :"wrt-launcher -l" and launch the ta-de-001.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent matches obscure, yet valid, language tags." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_dlocignore02">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ta-de-002.wgt with the command : wrt-launcher -l, then uninstall the ta-de-002.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-002.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of ta-de-002.wgt with the command :"wrt-launcher -l" and launch the ta-de-002.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that a language tag already part of the UA's locales list is ignored when it is repeated for defaultlocale attribute." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_dlocignore03">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ta-de-003.wgt with the command : wrt-launcher -l, then uninstall the ta-de-003.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-003.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of ta-de-003.wgt with the command :"wrt-launcher -l" and launch the ta-de-003.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the default locale is added to the end of the user agent's locale list (and does not override the default language, which is assumed to be 'en')." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_dlocignore04">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ta-de-004.wgt with the command : wrt-launcher -l, then uninstall the ta-de-004.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-004.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of ta-de-004.wgt with the command :"wrt-launcher -l" and launch the ta-de-004.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that an user agent correctly applies the rule to get a single attribute value and the rule for getting text content with normalized white space." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_as">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of as.wgt with the command : wrt-launcher -l, then uninstall the as.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/as.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of as.wgt with the command :"wrt-launcher -l" and launch the as.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that an user agent correctly processes a name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_ao">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of ao.wgt with the command : wrt-launcher -l, then uninstall the ao.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/ao.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of ao.wgt with the command :"wrt-launcher -l" and launch the ao.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if the UA can locate the start file when there is no widget elements to process." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_d3">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of d3.wgt with the command : wrt-launcher -l, then uninstall the d3.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/d3.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of d3.wgt with the command :"wrt-launcher -l" and launch the d3.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent skips the content element with the src attribute but loads the default start file according to the first content element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_d8">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of d8.wgt with the command : wrt-launcher -l, then uninstall the d8.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/d8.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of d8.wgt with the command :"wrt-launcher -l" and launch the d8.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that the user agent skips a content element without the src attribute and loads the default start file." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_d7">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of d7.wgt with the command : wrt-launcher -l, then uninstall the d7.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/d7.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of d7.wgt with the command :"wrt-launcher -l" and launch the d7.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that an user agent correctly processes a name element with xml:lang attribute." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_oa">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of oa.wgt with the command : wrt-launcher -l, then uninstall the oa.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/oa.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of oa.wgt with the command :"wrt-launcher -l" and launch the oa.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction applies to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nlro01">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nlro01.wgt with the command : wrt-launcher -l, then uninstall the i18nlro01.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro01.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nlro01.wgt with the command :"wrt-launcher -l" and launch the i18nlro01.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrtl44">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl44.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl44.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrtl44.wgt with the command :"wrt-launcher -l" and launch the i18nrtl44.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nlro44">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nlro44.wgt with the command : wrt-launcher -l, then uninstall the i18nlro44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro44.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nlro44.wgt with the command :"wrt-launcher -l" and launch the i18nlro44.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LTR direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nltr44">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nltr44.wgt with the command : wrt-launcher -l, then uninstall the i18nltr44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr44.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nltr44.wgt with the command :"wrt-launcher -l" and launch the i18nltr44.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RLO direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Packaging and XML Configuration" execution_type="manual" priority="P3" id="WidgetPackaging_i18nrlo44">
+        <description>
+          <pre_condition></pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo44.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Install the widget with the command: wrt-installer -i /opt/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo44.wgt</step_desc>
+              <expected>Widget application is able to be installed successfully.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Get the 'application id' of i18nrlo44.wgt with the command :"wrt-launcher -l" and launch the i18nrlo44.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
+              <expected>To pass, the widget can be started successfully and the screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90"></test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Packaging and XML Configuration" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-widgets-20110927/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="widgetinterface">
+      <testcase purpose="Test that the UA retains the changes made to the storage on subsequent initializations." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_au">
+        <description>
+          <pre_condition>Make sure au.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/au.wgt</pre_condition>
+          <post_condition>Get the 'application id' of au.wgt with the command : wrt-launcher -l, then uninstall the au.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch au.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "Please close the widget and open it again" on gray background.</expected>
+            </step>
+            <step order="2">
+              <step_desc>Restart au.wgt application.</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/au.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that, upon invocation of the clear() method, a user agent queues a task to fire a StorageEvent event at the window object of an iframe contained by the start file." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_clear-fires-event">
+        <description>
+          <pre_condition>Make sure clear-fires-event.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/clear-fires-event.wgt</pre_condition>
+          <post_condition>Get the 'application id' of clear-fires-event.wgt with the command : wrt-launcher -l, then uninstall the clear-fires-event.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch clear-fires-event.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/clear-fires-event.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that upon getting any of the attributes from the attributes column of the configuration attributes table, a user agent must return the corresponding value from the 'Values in Table of Configuration Defaults' column." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_return-emtpy-strings">
+        <description>
+          <pre_condition>Make sure return-emtpy-strings.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/return-emtpy-strings.wgt</pre_condition>
+          <post_condition>Get the 'application id' of return-emtpy-strings.wgt with the command : wrt-launcher -l, then uninstall the return-emtpy-strings.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch return-emtpy-strings.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/return-emtpy-strings.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that, upon invocation of the removeItem() method, a user agent queues a task to fire a StorageEvent event at the window object of an iframe contained by the start file." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_removeItem-fires-event">
+        <description>
+          <pre_condition>Make sure removeItem-fires-event.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/removeItem-fires-event.wgt</pre_condition>
+          <post_condition>Get the 'application id' of removeItem-fires-event.wgt with the command : wrt-launcher -l, then uninstall the removeItem-fires-event.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch removeItem-fires-event.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/removeItem-fires-event.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that, upon invocation of the setItem() method, a user agent queues a task to fire a StorageEvent event at the window object of an iframe contained by the start file." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_setItem-fires-event">
+        <description>
+          <pre_condition>Make sure setItem-fires-event.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/setItem-fires-event.wgt</pre_condition>
+          <post_condition>Get the 'application id' of setItem-fires-event.wgt with the command : wrt-launcher -l, then uninstall the setItem-fires-event.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch setItem-fires-event.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/setItem-fires-event.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test if widget.name is set correctly." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_ai">
+        <description>
+          <pre_condition>Make sure ai.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/ai.wgt</pre_condition>
+          <post_condition>Get the 'application id' of ai.wgt with the command : wrt-launcher -l, then uninstall the ai.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch ai.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/ai.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction applies to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro01">
+        <description>
+          <pre_condition>Make sure i18nlro01.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro01.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro01.wgt with the command : wrt-launcher -l, then uninstall the i18nlro01.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro01.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro01.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction applies to the short attribute of the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro02">
+        <description>
+          <pre_condition>Make sure i18nlro02.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro02.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro02.wgt with the command : wrt-launcher -l, then uninstall the i18nlro02.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro02.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro02.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction applies to the span element within the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro06">
+        <description>
+          <pre_condition>Make sure i18nlro06.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro06.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro06.wgt with the command : wrt-launcher -l, then uninstall the i18nlro06.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro06.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro06.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LRO and RLO directions apply within the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro10">
+        <description>
+          <pre_condition>Make sure i18nlro10.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro10.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro10.wgt with the command : wrt-launcher -l, then uninstall the i18nlro10.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro10.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro10.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction is inherited by the name element from the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro14">
+        <description>
+          <pre_condition>Make sure i18nlro14.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro14.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro14.wgt with the command : wrt-launcher -l, then uninstall the i18nlro14.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro14.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro14.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction is inherited by the short attribute of the name element from the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro15">
+        <description>
+          <pre_condition>Make sure i18nlro15.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro15.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro15.wgt with the command : wrt-launcher -l, then uninstall the i18nlro15.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro15.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro15.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LRO and LTR directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro19">
+        <description>
+          <pre_condition>Make sure i18nlro19.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro19.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro19.wgt with the command : wrt-launcher -l, then uninstall the i18nlro19.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro19.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro19.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LRO and RTL directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nlro20">
+        <description>
+          <pre_condition>Make sure i18nlro20.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro20.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro20.wgt with the command : wrt-launcher -l, then uninstall the i18nlro20.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro20.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro20.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LRO and LRO directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nlro21">
+        <description>
+          <pre_condition>Make sure i18nlro21.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro21.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro21.wgt with the command : wrt-launcher -l, then uninstall the i18nlro21.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro21.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro21.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LRO and RLO directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nlro22">
+        <description>
+          <pre_condition>Make sure i18nlro22.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro22.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro22.wgt with the command : wrt-launcher -l, then uninstall the i18nlro22.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro22.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro22.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LTR direction applies to the span element within the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nltr06">
+        <description>
+          <pre_condition>Make sure i18nltr06.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr06.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nltr06.wgt with the command : wrt-launcher -l, then uninstall the i18nltr06.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nltr06.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr06.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LTR and RTL directions apply within the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nltr10">
+        <description>
+          <pre_condition>Make sure i18nltr10.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr10.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nltr10.wgt with the command : wrt-launcher -l, then uninstall the i18nltr10.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nltr10.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr10.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LTR and RTL directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nltr20">
+        <description>
+          <pre_condition>Make sure i18nltr20.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr20.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nltr20.wgt with the command : wrt-launcher -l, then uninstall the i18nltr20.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nltr20.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr20.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LTR and LRO directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nltr21">
+        <description>
+          <pre_condition>Make sure i18nltr21.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr21.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nltr21.wgt with the command : wrt-launcher -l, then uninstall the i18nltr21.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nltr21.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr21.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested LTR and RLO directions apply correctly." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nltr22">
+        <description>
+          <pre_condition>Make sure i18nltr22.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr22.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nltr22.wgt with the command : wrt-launcher -l, then uninstall the i18nltr22.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nltr22.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr22.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RLO and LRO directions apply within the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrlo10">
+        <description>
+          <pre_condition>Make sure i18nrlo10.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo10.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo10.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo10.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrlo10.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo10.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RLO and LTR directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrlo19">
+        <description>
+          <pre_condition>Make sure i18nrlo19.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo19.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo19.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo19.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrlo19.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo19.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RLO and RTL directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrlo20">
+        <description>
+          <pre_condition>Make sure i18nrlo20.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo20.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo20.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo20.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrlo20.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo20.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RLO and LRO directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrlo21">
+        <description>
+          <pre_condition>Make sure i18nrlo21.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo21.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo21.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo21.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrlo21.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo21.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RLO directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrlo22">
+        <description>
+          <pre_condition>Make sure i18nrlo22.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo22.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo22.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo22.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrlo22.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo22.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction applies to the span element within the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrtl06">
+        <description>
+          <pre_condition>Make sure i18nrtl06.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl06.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl06.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl06.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrtl06.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl06.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RTL and RTL directions apply within the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrtl10">
+        <description>
+          <pre_condition>Make sure i18nrtl10.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl10.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl10.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl10.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrtl10.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl10.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RTL directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrtl20">
+        <description>
+          <pre_condition>Make sure i18nrtl20.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl20.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl20.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl20.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrtl20.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl20.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that nested RTL and LRO directions apply correctly to the name element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrtl21">
+        <description>
+          <pre_condition>Make sure i18nrtl21.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl21.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl21.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl21.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrtl21.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl21.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LTR direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nltr44">
+        <description>
+          <pre_condition>Make sure i18nltr44.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr44.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nltr44.wgt with the command : wrt-launcher -l, then uninstall the i18nltr44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nltr44.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr44.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RTL direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrtl44">
+        <description>
+          <pre_condition>Make sure i18nrtl44.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl44.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrtl44.wgt with the command : wrt-launcher -l, then uninstall the i18nrtl44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrtl44.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl44.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that LRO direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="i18nlro44">
+        <description>
+          <pre_condition>Make sure i18nlro44.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro44.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nlro44.wgt with the command : wrt-launcher -l, then uninstall the i18nlro44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nlro44.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro44.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Test that RLO direction does not apply to the xml:lang attribute of the widget element." type="compliance" status="approved" component="WebAPI/Widget/Widget Interface" execution_type="manual" priority="P3" id="WidgetInterface_i18nrlo44">
+        <description>
+          <pre_condition>Make sure i18nrlo44.wgt is installed with the command : wrt-installer -i /opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo44.wgt</pre_condition>
+          <post_condition>Get the 'application id' of i18nrlo44.wgt with the command : wrt-launcher -l, then uninstall the i18nrlo44.wgt with the command : wrt-installer -un 'application id'</post_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Launch i18nrlo44.wgt with the command : wrt-launcher -s 'application id'</step_desc>
+              <expected>The screen shows "PASS" on green background.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90">/opt/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo44.wgt</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Widget" specification="Widget Interface" section="Widget" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-widgets-apis-20110607/</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="video">
+      <testcase purpose="Check that a video loads but is not playing, since the default state is paused" type="compliance" status="approved" component="WebAPI/Media/HTML5 The video element (Partial)" execution_type="manual" priority="P2" id="video_000">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to check that a video loads but is not playing, since the default state is paused</step_desc>
+              <expected>a video loads but is not playing, since the default state is pause</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/video/w3c/video_000.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="src" interface="HTMLVideoElement" specification="HTML5 The video element (Partial)" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Seeking to a value less than 'startTime' seeks to 'startTime'" type="compliance" status="approved" component="WebAPI/Media/HTML5 The video element (Partial)" execution_type="manual" priority="P2" id="video_007">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Seeking to a value less than 'startTime' seeks to 'startTime'</step_desc>
+              <expected>the text 'PASS' appears to the left and the text 'Your browser does not support media elements.' does not appear anywhere on this page</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/video/w3c/video_007.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="startTime" interface="TextTrackCue" specification="HTML5 The video element (Partial)" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/media-elements.html#texttrackcue</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="The 'src' IDL attribute of media elements reflects the content attribute (relative URI)" type="compliance" status="approved" component="WebAPI/Media/HTML5 The video element (Partial)" execution_type="manual" priority="P2" id="video_011">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to check that the 'src' IDL attribute of media elements reflects the content attribute (relative URI)</step_desc>
+              <expected>the text 'PASS' appears to the left and the text 'Your browser does not support media elements.' does not appear anywhere on this page</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/video/w3c/video_011.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="src" interface="HTMLVideoElement" specification="HTML5 The video element (Partial)" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the video element has a current media controller that expecting the loop attribute has no effect" type="compliance" status="approved" component="WebAPI/Media/HTML5 The video element (Partial)" execution_type="manual" priority="P2" id="video_loop_current_media_controller">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to check if the video element has a current media controller that expecting the loop attribute has no effect</step_desc>
+              <expected>the video doesn't repeatly play and the text 'The user agent doesn't support media element.' does not appear anywhere on this page</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/video/w3c/video_loop_current_media_controller.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="controller" interface="HTMLVideoElement" specification="HTML5 The video element (Partial)" section="Media" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="ui">
+      <testcase purpose="Check if form element required property value is required" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Basic User Interface Module Level 3 (CSS3 UI) (Partial)" execution_type="manual" priority="P3" id="CSS3UI_pseudo-classes_required">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if form element required property value is required</step_desc>
+              <expected>PASS: the second input box border and font color is red</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/ui/CSS3UI_pseudo-classes_required.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="CSS" specification="CSS Basic User Interface Module Level 3 (CSS3 UI) (Partial)" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-ui-20120117</spec_url>
+            <spec_statement>A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted Elements that are not form elements are neither required nor optional</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="transitions">
+      <testcase purpose="To check if border-bottom-width can implement transition function normally" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Transitions Module Level 3" execution_type="manual" priority="P1" id="css3_transition_tests_entry14">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if border-bottom-width can implement transition function normally</step_desc>
+              <expected>All test results are marked "PASS"</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/transitions/webkit/shorthand-border-transitions.html?total_num=10&amp;amp;locator_key=id&amp;amp;value=7</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="Property" element_name="transition" interface="CSS" specification="CSS Transitions Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-transitions-20120403/#transitions</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="To check if shorthand properties transform-origin can implement transition-property function normally" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Transitions Module Level 3" execution_type="manual" priority="P1" id="css3_transition_tests_entry23">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if shorthand properties transform-origin can implement transition-property function normally</step_desc>
+              <expected>All test results are marked "PASS"</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/transitions/webkit/shorthand-transitions.html?total_num=6&amp;amp;locator_key=id&amp;amp;value=6</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="Property" element_name="transition-property" interface="CSS" specification="CSS Transitions Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-transitions-20120403/#transition-property-property</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="To check if shorthand properties margin-top can implement transition-property function normally" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Transitions Module Level 3" execution_type="manual" priority="P1" id="css3_transition_tests_entry19">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if shorthand properties margin-top can implement transition-property function normally</step_desc>
+              <expected>All test results are marked "PASS"</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/transitions/webkit/shorthand-transitions.html?total_num=6&amp;amp;locator_key=id&amp;amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="Property" element_name="transition-property" interface="CSS" specification="CSS Transitions Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-transitions-20120403/#transition-property-property</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="To check if shorthand properties padding-top can implement transition-property function normally" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Transitions Module Level 3" execution_type="manual" priority="P1" id="css3_transition_tests_entry18">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if shorthand properties padding-top can implement transition-property function normally</step_desc>
+              <expected>All test results are marked "PASS"</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/transitions/webkit/shorthand-transitions.html?total_num=6&amp;amp;locator_key=id&amp;amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="Property" element_name="transition-property" interface="CSS" specification="CSS Transitions Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-transitions-20120403/#transition-property-property</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="To check if transition: left 4s linear 1s can implement transition-property function normally" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Transitions Module Level 3" execution_type="manual" priority="P1" id="css3_transition_tests_entry7">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check that transition: left 4s linear 1s can implement transition-property function normally</step_desc>
+              <expected>All test results are marked "PASS"</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/transitions/webkit/delay.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="Property" element_name="transition-delay" interface="CSS" specification="CSS Transitions Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-transitions-20120403/#transition-delay-property</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="touchevent">
+      <testcase purpose="Check if touchEvent.altKey attribute is defined." type="compliance" status="approved" component="WebAPI/Device/Touch Events version 1 (Partial)" execution_type="manual" priority="P1" id="TouchEvent_altKey_exist">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the "touchEvent_touchEvent_altKey" Check if touchEvent.altKey attribute is defined.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/touchevent/TouchEvent_altKey_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="altKey" interface="TouchEvent" specification="Touch Events version 1 (Partial)" section="Device" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if touchEvent.ctrlKey attribute is defined." type="compliance" status="approved" component="WebAPI/Device/Touch Events version 1 (Partial)" execution_type="manual" priority="P1" id="TouchEvent_ctrlKey_exist">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the "touchEvent_touchEvent_ctrlKey" Check if touchEvent.ctrlKey attribute is defined.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/touchevent/TouchEvent_ctrlKey_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="ctrlKey" interface="TouchEvent" specification="Touch Events version 1 (Partial)" section="Device" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if touchEvent.metaKey attribute is defined." type="compliance" status="approved" component="WebAPI/Device/Touch Events version 1 (Partial)" execution_type="manual" priority="P1" id="TouchEvent_metaKey_exist">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the "touchEvent_touchEvent_metaKey" Check if touchEvent.metaKey attribute is defined.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/touchevent/TouchEvent_metaKey_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="metaKey" interface="TouchEvent" specification="Touch Events version 1 (Partial)" section="Device" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if touchEvent.shiftKey attribute is defined." type="compliance" status="approved" component="WebAPI/Device/Touch Events version 1 (Partial)" execution_type="manual" priority="P1" id="TouchEvent_shiftKey_exist">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the "touchEvent_touchEvent_shiftKey" Check if touchEvent.shiftKey attribute is defined.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/touchevent/TouchEvent_shiftKey_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="shiftKey" interface="TouchEvent" specification="Touch Events version 1 (Partial)" section="Device" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if touchstart event is dispatched before any mouse event during multiple touches" type="compliance" status="approved" component="WebAPI/Device/Touch Events version 1 (Partial)" execution_type="manual" priority="P3" id="multitouch_mousedown_event">
+        <description>
+          <pre_condition>Test device supports touch.</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Open the test page: multi-touch.html</step_desc>
+              <expected>Page opened with 2 touch boxes</expected>
+            </step>
+            <step order="2">
+              <step_desc>Follow the introduction on the page</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/touchevent/w3c/multi-touch.html?total_num=6&amp;locator_key=id&amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="TouchEvent" specification="Touch Events version 1 (Partial)" section="Device" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface</spec_url>
+            <spec_statement>If the user agent dispatches both touch events and mouse events in response to a single user action, then the touchstart event type must be dispatched before any mouse event types for that action.</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if touchend event is received during multiple touches" type="compliance" status="approved" component="WebAPI/Device/Touch Events version 1 (Partial)" execution_type="manual" priority="P3" id="multitouch_touchend_event">
+        <description>
+          <pre_condition>Test device supports touch.</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Open the test page: multi-touch.html</step_desc>
+              <expected>Page opened with 2 touch boxes</expected>
+            </step>
+            <step order="2">
+              <step_desc>Follow the introduction on the page</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/touchevent/w3c/multi-touch.html?total_num=6&amp;locator_key=id&amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="TouchEvent" specification="Touch Events version 1 (Partial)" section="Device" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface</spec_url>
+            <spec_statement>This interface defines the touchstart, touchend, touchmove, and touchcancel event types. TouchEvent objects are immutable; after one is created and initialized, its attributes must not change.</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if touchmove event is received during multiple touches" type="compliance" status="approved" component="WebAPI/Device/Touch Events version 1 (Partial)" execution_type="manual" priority="P3" id="multitouch_touchmove_event">
+        <description>
+          <pre_condition>Test device supports touch.</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Open the test page: multi-touch.html</step_desc>
+              <expected>Page opened with 2 touch boxes</expected>
+            </step>
+            <step order="2">
+              <step_desc>Follow the introduction on the page</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/touchevent/w3c/multi-touch.html?total_num=6&amp;locator_key=id&amp;value=4</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="TouchEvent" specification="Touch Events version 1 (Partial)" section="Device" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface</spec_url>
+            <spec_statement>This interface defines the touchstart, touchend, touchmove, and touchcancel event types. TouchEvent objects are immutable; after one is created and initialized, its attributes must not change.</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="text">
+      <testcase purpose="Check that the CSS white-space:nowrap and clear float are identical" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Text Module Level 3 (Partial)" execution_type="manual" priority="P1" id="css3_TextEffects_tests_entry5">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the "nowrap-clear-float" to check if the CSS white-space:nowrap and clear float are identical</step_desc>
+              <expected>The span text should be below the blue square</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/text/webkit/nowrap-clear-float.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="white-space" interface="CSS" specification="CSS Text Module Level 3 (Partial)" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-text-20121113/#white-space</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="To check the CSS white-space:pre-wrap is rendered properly" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Text Module Level 3 (Partial)" execution_type="manual" priority="P1" id="css3_TextEffects_tests_entry6">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the "pre-wrap-line-test" to check if the CSS white-space:pre-wrap is rendered properly.</step_desc>
+              <expected>Multiple consecutive spaces in a webpage browser can truly present</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/text/webkit/pre-wrap-line-test.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="white-space" interface="CSS" specification="CSS Text Module Level 3 (Partial)" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-css3-text-20121113/#white-space</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="svg">
+      <testcase purpose="Check if SVG inside HTML CAPTION element is parsed  correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P3" id="foreign_content_four_rect_svg_in_caption">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if a green square is displayed above and centered relative to the table</step_desc>
+              <expected>A green square is dispalyed above and centered relative to the table</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_004.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SVG inside HTML FORM element is parsed correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P3" id="foreign_content_five_rect_svg_in_form">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if green rectangle is displayed below 'FillerText1'</step_desc>
+              <expected>A green rectangle is displayed below 'FillerText1'</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_005.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SVG inside HTML 'HTML' element is parsed correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P3" id="foreign_content_six_rect_svg_in_html">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if a green rectangle is displayed on the page above this line</step_desc>
+              <expected>A green rectangle is displayed below a text line</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_006.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SVG elements are styled using ID Selector" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P3" id="foreign_content_eleven_rect_svg_in_div_id_style">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if a green square is displayed.</step_desc>
+              <expected>A green square is displayed below a text line</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_011.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SVG elements are styled using CLASS Selector" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P3" id="foreign_content_thirteen_rect_svg_in_div_class_style">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if a green square is displayed.</step_desc>
+              <expected>A green square is displayed below a text line</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_013.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the SVG inside HTML label element parses correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P3" id="svg_label_inline">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the SVG inside HTML label element parses correctly</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/svg/svg_label_inline.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SVG inside HTML OBJECT element is parsed correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P1" id="foreign_content_one_rect_svg_in_object">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if a green rectangle is displayed on the page.</step_desc>
+              <expected>A green rectangle is displayed on the page below a text line</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_001.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SVG inside HTML BUTTON element is parsed correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P1" id="foreign_content_three_rect_svg_in_button">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the button has a green rectangle while 'FillerText1' and 'FillerText3' are on either side of the button</step_desc>
+              <expected>A a green rectangle while 'FillerText1' and 'FillerText3' are on either side of the button</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_003.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SVG inside HTML 'BODY' element is parsed correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 SVG" execution_type="manual" priority="P1" id="foreign_content_eight_rect_svg_in_body">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if a green rectangle is displayed on the page</step_desc>
+              <expected>A green rectangle is displayed below a text line</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/svg/w3c/foreign_content_008.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="SVGSVGElement" specification="HTML5 SVG" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/mathml.html#svg</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="sessionhistory">
+      <testcase purpose="Check if the history.forward method works well." type="compliance" status="approved" component="WebAPI/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="manual" priority="P1" id="history_forward_basic">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the page is redirected to 002.html after click the button forward.</step_desc>
+              <expected>The page is redirected to 002.html</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/sessionhistory/history_forward_basic.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="forward" interface="History" specification="HTML5 The session history of browsing contexts (Partial)" section="Communication" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/history.html#the-history-interface</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="sandbox">
+      <testcase purpose="Block form submission inside iframe with sandbox attribute" type="compliance" status="approved" component="WebAPI/Security/HTML5 The iframe element" execution_type="manual" priority="P2" id="attri_default_block_submit">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Steps:
+1. Click button "Submit Form".</step_desc>
+              <expected>Test passes if there is no red on the page and there is no navigation in the below iframe after following the above steps</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/sandbox/w3c/sandbox_007.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="sandbox" interface="HTMLIFrameElement" specification="HTML5 The iframe element" section="Security" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-iframe-element.html?path=5_2_8#the-iframe-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="pagevisibility">
+      <testcase purpose="Check if webkitVisibilityState is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P0" id="pagevisibility_DocumentVisibility_VisibilityState_exist_02">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if webkitVisibilityState is defined.</step_desc>
+              <expected>The webkitVisibilityState is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_api_exists.htm?total_num=2&amp;locator_key=id&amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames whose style is 'visibility:hidden' matches the hidden attribute inside of the root document." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_Hidden_iframe_hideVisibility_match_05">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames whose style is 'visibility:hidden' matches the hidden attribute inside of the root document.</step_desc>
+              <expected>The hidden attribute inside of the IFrames whose style is 'visibility:hidden' matches the hidden attribute inside of the root document.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm?total_num=6&amp;locator_key=id&amp;value=5</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames with default style cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_Hidden_iframe_default_overwritten_01">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames with default style cannot be overwritten.</step_desc>
+              <expected>The hidden attribute inside of the IFrames with default style cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the root document cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_Hidden_overwritten_01">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the root document cannot be overwritten.</step_desc>
+              <expected>The hidden attribute inside of the root document cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_read_only_conformance.htm?total_num=2&amp;locator_key=id&amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' matches the visibilityState attribute inside the root document." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_hideVisibility_match_06">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' matches the visibilityState attribute inside of the root document.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' matches the visibilityState attribute inside of the root document.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm?total_num=6&amp;locator_key=id&amp;value=6</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P1" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_hideVisibility_exist_02">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' is defined.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames with default style matches the hidden attribute inside of the root document." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_Hidden_iframe_default_match_01">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames with default style matches the hidden attribute inside of the root document.</step_desc>
+              <expected>The hidden attribute inside of the IFrames with default style matches the hidden attribute inside of the root document.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm?total_num=6&amp;locator_key=id&amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames with default style cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_default_overwritten_03">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames with default style cannot be overwritten.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames with default style cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=3</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames whose style is 'visibility:hidden' cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_Hidden_iframe_hideVisibility_overwritten_04">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames whose style is 'visibility:hidden' cannot be overwritten.</step_desc>
+              <expected>The hidden attribute inside of the IFrames whose style is 'visibility:hidden' cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=4</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if visibilityState attribute inside of the root document cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_VisibilityState_overwritten_02">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the root document cannot be overwritten.</step_desc>
+              <expected>The the visibilityState attribute inside of the root document cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_read_only_conformance.htm?total_num=2&amp;locator_key=id&amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames whose style is 'display:none' cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_Hidden_iframe_noDisplay_overwritten_05">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames whose style is 'display:none' cannot be overwritten.</step_desc>
+              <expected>The hidden attribute inside of the IFrames whose style is 'display:none' cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=5</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames with default style is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P1" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_default_exist_06">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames with default style is defined.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames with default style is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=6</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames whose style is 'visibility:hidden' is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P1" id="pagevisibility_DocumentVisibility_Hidden_iframe_hideVisibility_exist_07">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames whose style is 'visibility:hidden' is defined.</step_desc>
+              <expected>The hidden attribute inside of the IFrames whose style is 'visibility:hidden' is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=7</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_hideVisibility_overwritten_08">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' cannot be overwritten.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames whose style is 'visibility:hidden' cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=8</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if hidden is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P0" id="pagevisibility_DocumentVisibility_Hidden_exist_01">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden is defined.</step_desc>
+              <expected>The hidden is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_api_exists.htm?total_num=2&amp;locator_key=id&amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames whose style is 'display:none' is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P1" id="pagevisibility_DocumentVisibility_Hidden_iframe_noDisplay_exist_09">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames whose style is 'display:none' is defined.</step_desc>
+              <expected>The hidden attribute inside of the IFrames whose style is 'display:none' is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=9</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames which style is 'display:none' matches the visibilityState attribute inside of the root document." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_noDisplay_match_04">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames whose style is 'display:none' matches the visibilityState attribute inside of the root document.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames whose style is 'display:none' matches the visibilityState attribute inside of the root document.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm?total_num=6&amp;locator_key=id&amp;value=4</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames with default style is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P1" id="pagevisibility_DocumentVisibility_Hidden_iframe_default_exist_10">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames with default style is defined.</step_desc>
+              <expected>The hidden attribute inside of the IFrames with default style is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=10</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames with default style matches the visibilityState attribute inside of the root document." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_default_match_02">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames with default style matches the visibilityState attribute inside of the root document.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames with default style matches the visibilityState attribute inside of the root document.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm?total_num=6&amp;locator_key=id&amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames whose style is 'display:none' is defined." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P1" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_noDisplay_exist_11">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames whose style is 'display:none' is defined.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames whose style is 'display:none' is defined.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=11</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute inside of the IFrames whose style is 'display:none' matches the hidden attribute inside of the root document." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_Hidden_iframe_noDisplay_match_03">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute inside of the IFrames whose style is 'display:none' matches the hidden attribute inside of the root document.</step_desc>
+              <expected>The hidden attribute inside of the IFrames whose style is 'display:none' matches the hidden attribute inside of the root document.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe_visibility.htm?total_num=6&amp;locator_key=id&amp;value=3</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="hidden" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the visibilityState attribute inside of the IFrames whose style is 'display:none' cannot be overwritten." type="compliance" status="approved" component="WebAPI/Performance and Optimization/Page Visibility" execution_type="manual" priority="P2" id="pagevisibility_DocumentVisibility_VisibilityState_iframe_noDisplay_overwritten_12">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the visibilityState attribute inside of the IFrames whose style is 'display:none' cannot be overwritten.</step_desc>
+              <expected>The visibilityState attribute inside of the IFrames whose style is 'display:none' cannot be overwritten.</expected>
+            </step>
+          </steps>
+          <test_script_entry timeout="90" test_script_expected_result="0">/opt/tct-manual-w3c-tests/pagevisibility/w3c/test_iframe.htm?total_num=12&amp;locator_key=id&amp;value=12</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="visibilityState" interface="DocumentVisibility" specification="Page Visibility" section="Performance and Optimization" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/page-visibility/</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="fileapi">
+      <testcase purpose="Check the attribute of the interface Blob size is number type" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="manual" priority="P2" id="Blob_size_type">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check the attribute of the interface Blob size is number type</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/fileapi/Blob_size_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="size" interface="Blob" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-size</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute type value of interface Blob is string type" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="manual" priority="P2" id="Blob_type_type">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the attribute type value of interface Blob is string type</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/fileapi/Blob_type_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="type" interface="Blob" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-type</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute type value of interface Blob return the media type" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="manual" priority="P2" id="Blob_type_normal">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the attribute type value of interface Blob return the media type</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/fileapi/Blob_type_normal.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="type" interface="Blob" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-type</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="extra">
+      <testcase purpose="Check if a.href supports simple anchor with relative path" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Attributes" execution_type="manual" priority="P1" id="anchor_href_relative_path">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the value of HTMLAnchorElement href attribute.</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Remove the value of HTMLAnchorElement href attribute by setting it as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="3">
+              <step_desc>Set the value of HTMLAnchorElement href attribute as simple anchor with relative path</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="4">
+              <step_desc>Check if the first column of second row of the table displays Pass.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm?total_num=7&amp;locator_key=id&amp;value=1</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="href" interface="HTMLAnchorElement" specification="HTML5 a element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/text-level-semantics.html#the-a-element</spec_url>
+            <spec_statement>stringifier attribute DOMString href</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if a.href supports simple anchor with non-relative path" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Attributes" execution_type="manual" priority="P2" id="anchor_href_absolute_path">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the value of HTMLAnchorElement href attribute</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Remove the value of HTMLAnchorElement href attribute by setting it as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="3">
+              <step_desc>Set the value of HTMLAnchorElement href attribute as simple anchor with non-relative path</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="4">
+              <step_desc>Check if the first column of third row of the table displays Pass.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm?total_num=7&amp;locator_key=id&amp;value=2</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="href" interface="HTMLAnchorElement" specification="HTML5 a element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/text-level-semantics.html#the-a-element</spec_url>
+            <spec_statement>stringifier attribute DOMString href</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if a.href supports simple anchor with empty string" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Attributes" execution_type="manual" priority="P2" id="anchor_href_empty_string">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the value of HTMLAnchorElement href attribute</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Remove the value of HTMLAnchorElement href attribute by setting it as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="3">
+              <step_desc>Set the value of HTMLAnchorElement href attribute as simple anchor with empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="4">
+              <step_desc>Check if the first column of fourth row of the table displays Pass.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm?total_num=7&amp;locator_key=id&amp;value=3</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="href" interface="HTMLAnchorElement" specification="HTML5 a element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/text-level-semantics.html#the-a-element</spec_url>
+            <spec_statement>stringifier attribute DOMString href</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if 'A' element supports no href attribute" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Attributes" execution_type="manual" priority="P2" id="anchor_href_non_existent">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the value of HTMLAnchorElement href attribute as null</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Remove the value of HTMLAnchorElement href attribute by setting it as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="3">
+              <step_desc>Remove the HTMLAnchorElement href attribute for null</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="4">
+              <step_desc>Check if the first column of fifth row of the table displays Pass.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm?total_num=7&amp;locator_key=id&amp;value=4</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="href" interface="HTMLAnchorElement" specification="HTML5 a element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/text-level-semantics.html#the-a-element</spec_url>
+            <spec_statement>If the a element has no href attribute, then the element represents a placeholder for where a link might otherwise have been placed, if it had been relevant.</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if a.href supports advanced anchor with non-relative path containing search string" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Attributes" execution_type="manual" priority="P2" id="anchor_href_search_string">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the value of HTMLAnchorElement href attribute</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Remove the value of HTMLAnchorElement href attribute by setting it as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="3">
+              <step_desc>Set the value of HTMLAnchorElement href attribute as advanced anchor with non-relative path containing search string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="4">
+              <step_desc>Check if the first column of sixth row of the table displays Pass.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm?total_num=7&amp;locator_key=id&amp;value=5</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="href" interface="HTMLAnchorElement" specification="HTML5 a element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/text-level-semantics.html#the-a-element</spec_url>
+            <spec_statement>stringifier attribute DOMString href</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if a.href supports advanced anchor with non-relative path containing search string, username and password" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Attributes" execution_type="manual" priority="P2" id="anchor_href_username_password">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the value of HTMLAnchorElement href attribute</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Remove the value of HTMLAnchorElement href attribute by setting it as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="3">
+              <step_desc>Set the value of HTMLAnchorElement href attribute as advanced anchor with non-relative path containing search string, username and password</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="4">
+              <step_desc>Check if the first column of seventh row of the table displays Pass.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm?total_num=7&amp;locator_key=id&amp;value=6</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="href" interface="HTMLAnchorElement" specification="HTML5 a element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/text-level-semantics.html#the-a-element</spec_url>
+            <spec_statement>stringifier attribute DOMString href</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if a.href supports advanced anchor with non-relative path containing some uppercase letters" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Attributes" execution_type="manual" priority="P2" id="anchor_href_uppercase_letters">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the value of HTMLAnchorElement href attribute</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Remove the value of HTMLAnchorElement href attribute by setting it as empty string</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="3">
+              <step_desc>Set the value of HTMLAnchorElement href attribute as advanced anchor with non-relative path containing some uppercase letters</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="4">
+              <step_desc>Check if the first column of last row of the table displays Pass.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/attributes/w3c/anchor_href.htm?total_num=7&amp;locator_key=id&amp;value=7</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="href" interface="HTMLAnchorElement" specification="HTML5 a element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/text-level-semantics.html#the-a-element</spec_url>
+            <spec_statement>stringifier attribute DOMString href</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if xhtml5 area element supports nohref attribute" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Xhtml5" execution_type="manual" priority="P1" id="area_noref">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Click on the Blue Square</step_desc>
+              <expected>The square doesn't do anything</expected>
+            </step>
+            <step order="2">
+              <step_desc>Click on the area around the square</step_desc>
+              <expected>The square takes you to another page</expected>
+            </step>
+            <step order="3">
+              <step_desc>Click on words "Click here"</step_desc>
+              <expected>The link takes you back to the previous page</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/xhtml5/w3c/area_noref.xhtml</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="nohref" interface="HTMLAreaElement" specification="HTML5 area element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url/>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check xhtml5 body element supports link attribute" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Xhtml5" execution_type="manual" priority="P1" id="body_link">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Delete your browsing history and navigate to this page again</step_desc>
+              <expected>Pass</expected>
+            </step>
+            <step order="2">
+              <step_desc>Check the color of the link "LINK"</step_desc>
+              <expected>This LINK should be displayed in yellow</expected>
+            </step>
+            <step order="3">
+              <step_desc>Click on the link "LINK" and click on the "back" link</step_desc>
+              <expected>This LINK should take default color of visited link</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/xhtml5/w3c/body_link.xhtml</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="link" interface="HTMLBodyElement" specification="HTML5 body element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url/>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check xhtml5 body element supports text attribute in the RGB Hexadecimal color" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Xhtml5" execution_type="manual" priority="P1" id="body_text_00ffff">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the color of first 2 lines text</step_desc>
+              <expected>The color of the text matched the image below in blue</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/xhtml5/w3c/body_text_00ffff.xhtml</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="text" interface="HTMLBodyElement" specification="HTML5 body element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url/>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if xhtml5 supports css style in comment" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Xhtml5" execution_type="manual" priority="P3" id="html_style_in_comment">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the color of the last line text</step_desc>
+              <expected>The color of the text is green</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/xhtml5/w3c/html_style_in_comment.xhtml</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="HTMLStyleElement" specification="HTML5 style element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url/>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if xhtml5 img element supports border attribute in percentage" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Xhtml5" execution_type="manual" priority="P1" id="img_border_percent">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the actual image on left matches the expected image on the right</step_desc>
+              <expected>The 2 images with border as 0% and 50% match the expected images respectively</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/xhtml5/w3c/img_border_percent.xhtml</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="border" interface="HTMLImageElement" specification="HTML5 img element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url/>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if xhtml5 object element supports border attribute in percentage" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Xhtml5" execution_type="manual" priority="P1" id="object_border_perc">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the actual image on left matches the expected image on the right</step_desc>
+              <expected>The image with border as 50% matches the expected image</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_perc.xhtml</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="border" interface="HTMLObjectElement" specification="HTML5 object element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url/>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if xhtml5 object element supports border attribute in pixel" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Xhtml5" execution_type="manual" priority="P1" id="object_border_pixel">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the actual image on left matches the expected image on the right</step_desc>
+              <expected>The image with border as 50px matches the expected image</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/xhtml5/w3c/object_border_pixel.xhtml</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="border" interface="HTMLObjectElement" specification="HTML5 object element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url/>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the figure element visual effect" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Semantics" execution_type="manual" priority="P3" id="figure_element_support">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the figure element visual effect</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figure-element/figure_element.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/grouping-content.html#the-figure-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the figcaption element visual effect" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Semantics" execution_type="manual" priority="P3" id="figcaption_element_support">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the figcaption element visual effect</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/semantics/grouping-content/the-figcaption-element/figcaption_element.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/grouping-content.html#the-figcaption-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the textarea maxlength attribute exists" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Semantics" execution_type="manual" priority="P1" id="textarea_element_maxLength">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the textarea maxlength attribute exists</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/semantics/forms/the-textarea-element/textarea_element_maxLength.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="maxLength" interface="HTMLTextAreaElement" specification="HTML5 textarea element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-html5-20110525/the-button-element.html#the-textarea-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the mark background is yellow" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Semantics" execution_type="manual" priority="P3" id="mark_background_is_yellow">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the mark background is yellow</step_desc>
+              <expected>Test passes if the highlighted part below is 1.1</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/extra/semantics/text-level-semantics/the-mark-element/mark_element_base_usage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/text-level-semantics.html#the-mark-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the reversed attribute on ol element" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Semantics" execution_type="manual" priority="P3" id="reversed_on_ol_element">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the reversed attribute on ol element</step_desc>
+              <expected>Test Pass if ol reversed</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/w3c/semantics/grouping-content/the-ol-element/reversed-1a.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/grouping-content.html#the-ol-element</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the hidden attribute support" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Semantics" execution_type="manual" priority="P3" id="hidden_attribute_support">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the hidden attribute support</step_desc>
+              <expected>Test Pass if only show "This line should be visible."</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/w3c/editing/the-hidden-attribute/hidden-1a.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 element" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/editing.html#editing-0</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if pop the alert dialog" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Browsers" execution_type="manual" priority="P3" id="window_alert_base">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if pop the alert dialog</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_alert_base.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Window" specification="HTML5 window object" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#window</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if pop the confirm dialog" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Browsers" execution_type="manual" priority="P3" id="window_confirm_base">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if pop the confirm dialog</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_confirm_base.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Window" specification="HTML5 window object" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#window</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if pop the prompt dialog" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Browsers" execution_type="manual" priority="P3" id="window_prompt_base">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if pop the prompt dialog</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/browsers/the-window-object/the-window-object/window_prompt_base.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="Window" specification="HTML5 window object" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#window</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the document oninput event exists" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Dom" execution_type="manual" priority="P1" id="document_oninput_event">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check the document oninput event exists</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_oninput_event.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="oninput" interface="Document" specification="HTML5 document object" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/dom.html#document</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the document onchange event exists" type="compliance" status="approved" component="WebAPI/W3C_EXTRAHTML5/Dom" execution_type="manual" priority="P1" id="document_onchange_event">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check the document onchange event exists</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/extra/dom/documents/the-document-object/document_onchange_event.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="onchange" interface="Document" specification="HTML5 document object" section="ExtraHTML5" category="W3C HTML5 API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/CR-html5-20121217/dom.html#document</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="colors">
+      <testcase purpose="Check that H values in hsl() colors was treated like angles, even if it is outside [0,360)." type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry45">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if H values in hsl() colors was treated like angles, even if it is outside [0,360).</step_desc>
+              <expected>Each column in the following table has every cell the same color, except for the checkerboard pattern at the right and left used to indicate the row positions</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t424-hsl-h-rotating-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the basic functioning of hsl() colors." type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P1" id="css3_colors_tests_entry43">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check the basic functioning of hsl() colors</step_desc>
+              <expected>The text is green</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t424-hsl-basic-a.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the clipping of hsla() values when they are beyond the scope of device gamut." type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry49">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check that the clipping values of hsla() are outside the device gamut</step_desc>
+              <expected>Every row in this table have both columns the same color</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t425-hsla-clip-outside-device-gamut-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check H values in hsla() colors should be treated like angles, even if it is outside [0,360)" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry50">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if H values in hsla() colors was treated like angles, even when outside [0,360)</step_desc>
+              <expected>Each column in the following table has every cell the same color, except for the checkerboard pattern at the right and left used to indicate the row positions</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t425-hsla-h-rotating-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that alpha components of rgba() colors greater than 1 are treated to 1" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P1" id="css3_colors_tests_entry32">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if alpha components of rgba() colors greater than 1 are treated to 1</step_desc>
+              <expected>There is six lines of text in same color-black</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a1.0-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the implementation of algorithm for converting hsla() colors to rgb() colors" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry54">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check implementation of algorithm for converting hsla() colors to rgb() colors</step_desc>
+              <expected>Every pairs of two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change gradually from one kind of color to another one</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t425-hsla-values-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the rules for parsing of hsl() colors." type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry46">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check the rules for parsing of hsl() colors</step_desc>
+              <expected>The text is dark green</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t424-hsl-parsing-f.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that alpha components of rgba() colors less than 0 are treated to 0" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P1" id="css3_colors_tests_entry31">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if alpha components of rgba() colors less than 0 are treated to 0</step_desc>
+              <expected>There is only the text 'This should be the only text visible on this page.' displayed</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t422-rgba-clamping-a0.0-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that rgba() values produce correct colors" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry34">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if rgba() values produce correct colors</step_desc>
+              <expected>There are five lines of text in expected background or text color</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-int-a.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that the 'transparent' color keyword makes colors white transparent" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry41">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if the 'transparent' color keyword makes colors transparent</step_desc>
+              <expected>This should be the only text visible on this page</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t423-transparent-1-a.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that whitespace is allowed within rgba() functions" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P1" id="css3_colors_tests_entry37">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if whitespace is allowed within rgba() functions</step_desc>
+              <expected>All text is green</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-whitespace-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that rgba() values are only accepted when all integers or all percentages" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry35">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if rgba() values are only accepted when all integers or all percentages</step_desc>
+              <expected>The text is green</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t422-rgba-func-no-mixed-f.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the implementation of algorithm for converting hsl() colors to rgb() colors" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry47">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check the implementation of algorithm for converting hsl() colors to rgb() colors</step_desc>
+              <expected>Every pairs of two matching (except the checkerboard at both ends to show where the rows are) rows of colors should change gradually from one kind of color to another one</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t424-hsl-values-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that clipping of hsl() values are outside the device gamut" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry44">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if clipping of hsl() values are outside the device gamut</step_desc>
+              <expected>Every row in this table have both columns the same color</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t424-hsl-clip-outside-gamut-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check that the 'transparent' color keyword makes colors black transparent" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry42">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if the 'transparent' color keyword makes colors transparent</step_desc>
+              <expected>This should be the only text visible on this page</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t423-transparent-2-a.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the rules for parsing of hsla() colors" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry53">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check the rules for parsing of hsla() colors</step_desc>
+              <expected>The text is dark green</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t425-hsla-parsing-f.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check clipping of rgba() values are outside the device gamut" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="css3_colors_tests_entry33">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Use WRT to visit the test script file to check if clipping of rgba() values are outside the device gamut</step_desc>
+              <expected>Every row in this table have both columns the same color</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/csswg/t422-rgba-clip-outside-device-gamut-b.xht</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#colorunits</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the color effect in Pseudo-classes on test div" type="compliance" status="approved" component="WebAPI/DOM, Forms and Styles/CSS Color Module Level 3" execution_type="manual" priority="P2" id="CSS3Colors_color_pseudo-classes">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Set different color on different Pseudo-classes to check the color effect in Pseudo-classes on test div</step_desc>
+              <expected>The text color before clicked is black. After it is clicked, the color changes to blue.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-manual-w3c-tests/colors/CSS3Colors_color_pseudo-classes.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="property" element_name="color" interface="CSS" specification="CSS Color Module Level 3" section="DOM, Forms and Styles" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/REC-css3-color-20110607/#sample</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="canvas">
+      <testcase purpose="check if Shadows look correct for large blurs" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d_shadow_blur_high">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>check if Shadows look correct for large blurs</step_desc>
+              <expected>Shadows look correct for large blurs</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.shadow.blur.high.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="shadowBlur" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-shadowblur</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if fillText function can handle maxWidth correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d_text_draw_fill_maxWidth_large">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if fillText function can handle maxWidth correctly</step_desc>
+              <expected>fillText handles maxWidth correctly</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.large.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="fillText" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-filltext</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Coordinate space goes from top-left to bottom-right" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P3" id="2d_coordinatespace">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if Coordinate space goes from top-left to bottom-right</step_desc>
+              <expected>Coordinate space goes from top-left to bottom-right</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.coordinatespace.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#canvasrenderingcontext2d</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if CSS-scaled canvases get drawn correctly" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d.scaled">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if CSS-scaled canvases get drawn correctly</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.scaled.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="canvas" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-canvas</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if fillText respects Right-To-Left Override characters" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d.text.draw.fill.rtl">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if fillText respects Right-To-Left Override characters</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.rtl.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="fillText" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-filltext</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the square value of lineCap means that a rectangle with the length of the line width and the width of half the line width, placed flat against the edge perpendicular to the direction of the line, must be added at the end of each line." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_linestyles_linecap_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>The square value of lineCap means that a rectangle with the length of the line width and the width of half the line width, placed flat against the edge perpendicular to the direction of the line, must be added at the end of each line.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_linestyles_linecap_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="lineCap" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-linecap</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the createLinearGradient method of CanvasRenderingContext2D interface." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_colorsandstyles_createlineargradient_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the createLinearGradient method of CanvasRenderingContext2D interface.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_colorsandstyles_createlineargradient_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="createLinearGradient" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-createlineargradient</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the arcTo method of CanvasRenderingContext2D interface." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_complexshapes_arcto_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the arcTo method of CanvasRenderingContext2D interface.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_arcto_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="arcTo" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-arcto</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the bezierCurveTo method of CanvasRenderingContext2D interface." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_complexshapes_beziercurveto_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the bezierCurveTo method of CanvasRenderingContext2D interface.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_complexshapes_beziercurveto_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="bezierCurveTo" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-beziercurveto</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the globalCompositeOperation attribute of CanvasRenderingContext2D interface." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_compositing_globalcompositeoperation_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the globalCompositeOperation attribute of CanvasRenderingContext2D interface.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_compositing_globalcompositeoperation_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="globalCompositeOperation" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-globalcompositeoperation</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the createLinearGradient method of CanvasRenderingContext2D interface." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_shadows_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the createLinearGradient method of CanvasRenderingContext2D interface.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_shadows_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="createLinearGradient" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-createlineargradient</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the restore method of CanvasRenderingContext2D interface." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_state_restore_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the restore method of CanvasRenderingContext2D interface.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_state_restore_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="restore" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-restore</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if ignore 'inherit' property-independent style sheet syntax without assigning a new font value." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_text_font_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if ignore 'inherit' property-independent style sheet syntax without assigning a new font value.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_text_font_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="canvas" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-canvas</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the scale method of CanvasRenderingContext2D interface." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="canvas_transformations_scale_001">
+        <description>
+          <pre_condition/>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check the scale method of CanvasRenderingContext2D interface.</step_desc>
+              <expected>All test results are marked 'PASS'.</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/canvas_transformations_scale_001.htm</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="scale" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-scale</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the strokeText method can draw stroked text" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d_text_draw_stroke_basic">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the strokeText method can draw stroked text</step_desc>
+              <expected>strokeText draws stroked text</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.stroke.basic.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="strokeText" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-stroketext</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the stroked and filled texts have same kerning exactly." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d_text_draw_kern_consistent">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the stroked and filled texts have same kerning exactly.</step_desc>
+              <expected>Stroked and filled text should have exactly the same kerning so it overlaps</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.kern.consistent.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="strokeText" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-stroketext</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the fillText method  can draw filled text" type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d_text_draw_fill_basic">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the fillText method  can draw filled text</step_desc>
+              <expected>fillText draws filled text</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.basic.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="fillText" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-filltext</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if fillText method can handle maxWidth correctly when it is set to 0." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d_text_draw_fill_maxWidth_zero">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if fillText method can handle maxWidth correctly when it is set to 0.</step_desc>
+              <expected>fillText handles maxWidth correctly</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.zero.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="fillText" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-filltext</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if fillText method can handle maxWidth correctly when it is set to 'small'." type="compliance" status="approved" component="WebAPI/Graphics/HTML5 The canvas element (Partial)" execution_type="manual" priority="P2" id="2d_text_draw_fill_maxWidth_small">
+        <description>
+          <pre_condition>TBD</pre_condition>
+          <post_condition/>
+          <steps>
+            <step order="1">
+              <step_desc>Check if fillText method can handle maxWidth correctly when it is set to 'small'.</step_desc>
+              <expected>fillText function handles maxWidth correctly</expected>
+            </step>
+          </steps>
+          <test_script_entry test_script_expected_result="0">/opt/tct-manual-w3c-tests/canvas/w3c/2d.text.draw.fill.maxWidth.small.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="method" element_name="fillText" interface="CanvasRenderingContext2D" specification="HTML5 The canvas element (Partial)" section="Graphics" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2012/WD-2dcontext-20120329/#dom-context-2d-filltext</spec_url>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+  </suite>
+</test_definition>
diff --git a/tct-manual-w3c-tests/text/Makefile.am b/tct-manual-w3c-tests/text/Makefile.am
new file mode 100644 (file)
index 0000000..943e6a4
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = webkit
+text_SCRIPTS = *
+textdir = /opt/tct-manual-w3c-tests/text
+EXTRA_DIST = $(text_SCRIPTS)
diff --git a/tct-manual-w3c-tests/text/webkit/COPYING b/tct-manual-w3c-tests/text/webkit/COPYING
new file mode 100644 (file)
index 0000000..0538336
--- /dev/null
@@ -0,0 +1,27 @@
+All test cases in this folder come from
+http://svn.webkit.org/repository/webkit/trunk/LayoutTests/fast/text/
+
+These tests are under BSD Two Clause License:
+http://trac.webkit.org/browser/trunk/Source/WebKit/LICENSE
+
+Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1.  Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+2.  Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/tct-manual-w3c-tests/text/webkit/Makefile.am b/tct-manual-w3c-tests/text/webkit/Makefile.am
new file mode 100644 (file)
index 0000000..006dfd1
--- /dev/null
@@ -0,0 +1,3 @@
+textw3c_SCRIPTS = *.html
+textw3cdir = /opt/tct-manual-w3c-tests/text/webkit
+EXTRA_DIST = $(textw3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/text/webkit/nowrap-clear-float.html b/tct-manual-w3c-tests/text/webkit/nowrap-clear-float.html
new file mode 100644 (file)
index 0000000..fab3e87
--- /dev/null
@@ -0,0 +1,4 @@
+<div style="width: 200px;">
+    <div style="float: left; width: 100px; height: 100px; background-color: lightblue;"></div>
+    <span style="white-space: nowrap">This text should be below the blue square.</span>
+</div>
diff --git a/tct-manual-w3c-tests/text/webkit/pre-wrap-line-test.html b/tct-manual-w3c-tests/text/webkit/pre-wrap-line-test.html
new file mode 100644 (file)
index 0000000..5a7f787
--- /dev/null
@@ -0,0 +1,2 @@
+                                                                       
+<table><tr><td><div style="white-space:pre-wrap">Three cheers    for OldVet and the letter he wrote to Senator Dodd (see above Comment).  We all need to be proactive and contact our senators and representatives to let them know our strong feelings on this subject.  I would lose what little faith I have left in our government if they engineered a tax payer bailout. 
diff --git a/tct-manual-w3c-tests/touchevent/Makefile.am b/tct-manual-w3c-tests/touchevent/Makefile.am
new file mode 100644 (file)
index 0000000..6ff1c19
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c
+TouchEvent_SCRIPTS = *
+TouchEventdir = /opt/tct-manual-w3c-tests/touchevent
+EXTRA_DIST = $(TouchEvent_SCRIPTS)
diff --git a/tct-manual-w3c-tests/touchevent/TouchEvent_altKey_exist.html b/tct-manual-w3c-tests/touchevent/TouchEvent_altKey_exist.html
new file mode 100644 (file)
index 0000000..cacd77a
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Cui,Jieqiong <jieqiongx.cui@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>TouchEvent Test: TouchEvent_altKey_exist</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface" />
+    <meta name="flags" content="interact" />
+    <meta name="assert" content="Check if the attribute altKey exists" />
+    <script src="../resources/blacklist.js" type="text/javascript"></script>
+    <script src="../resources/testharness.js" type="text/javascript"></script>
+    <script src="../resources/testharnessreport.js" type="text/javascript"></script>
+  </head>
+  <body onload="run()">
+    <h1>Please touch the "Touch" button</h1>
+    <button id="touchdiv">Touch</button>
+    <div id="log"></div>
+    <script>
+        t = async_test(document.title, { timeout: 300000000000});
+        function listener(ev) {
+            t.step(function() {
+                assert_true("altKey" in ev, "the attribute altkey exists");
+            });
+            t.done();
+        }
+        function run() {
+            if (!is_platform_supported("TouchEventsManager.createTouch")) {
+                try {
+                    document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+                } catch (err) {
+                    t.step(function() {
+                        if (err.name == "NOT_SUPPORTED_ERROR") {
+                            assert_true(true, "Mark the case as \"PASS\" because the platform actually doesn't support the interface");
+                        } else {
+                            assert_true(false, "Exception while get altKey attribute" + err.name + err.message);
+                        }
+                    });
+                    t.done();
+                }
+                return;
+            }
+            //The API is not in blacklist, then do normal tests
+            try {
+                document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+            } catch (err) {
+                t.step(function() {
+                    assert_true(false, "Exception while get altkey attribute " + err.name + err.message);
+                });
+                t.done();
+            }
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/touchevent/TouchEvent_ctrlKey_exist.html b/tct-manual-w3c-tests/touchevent/TouchEvent_ctrlKey_exist.html
new file mode 100644 (file)
index 0000000..4666e41
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Cui,Jieqiong <jieqiongx.cui@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>TouchEvent Test: TouchEvent_ctrlKey_exist</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface" />
+    <meta name="flags" content="interact" />
+    <meta name="assert" content="Check if the attribute ctrlKey exists" />
+    <script src="../resources/blacklist.js" type="text/javascript"></script>
+    <script src="../resources/testharness.js" type="text/javascript"></script>
+    <script src="../resources/testharnessreport.js" type="text/javascript"></script>
+  </head>
+  <body onload="run()">
+    <h1>Please touch the "Touch" button</h1>
+    <button id="touchdiv">Touch</button>
+    <div id="log"></div>
+    <script>
+        t = async_test(document.title, { timeout: 300000000000});
+        function listener(ev) {
+            t.step(function() {
+                assert_true("ctrlKey" in ev, "the attribute ctrlKey exists");
+            });
+            t.done();
+        }
+        function run() {
+            if (!is_platform_supported("TouchEventsManager.createTouch")) {
+                try {
+                    document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+                } catch (err) {
+                    t.step(function() {
+                        if (err.name == "NOT_SUPPORTED_ERROR") {
+                            assert_true(true, "Mark the case as \"PASS\" because the platform actually doesn't support the interface");
+                        } else {
+                            assert_true(false, "Exception while get ctrlKey attribute" + err.name + err.message);
+                        }
+                    });
+                    t.done();
+                }
+                return;
+            }
+            //The API is not in blacklist, then do normal tests
+            try {
+                document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+            } catch (err) {
+                t.step(function() {
+                    assert_true(false, "Exception while get ctrlKey attribute " + err.name + err.message);
+                });
+                t.done();
+            }
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/touchevent/TouchEvent_metaKey_exist.html b/tct-manual-w3c-tests/touchevent/TouchEvent_metaKey_exist.html
new file mode 100644 (file)
index 0000000..4d271c6
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Cui,Jieqiong <jieqiongx.cui@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>TouchEvent Test: TouchEvent_metaKey_exist</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface" />
+    <meta name="flags" content="interact" />
+    <meta name="assert" content="Check if the attribute metaKey exists" />
+    <script src="../resources/blacklist.js" type="text/javascript"></script>
+    <script src="../resources/testharness.js" type="text/javascript"></script>
+    <script src="../resources/testharnessreport.js" type="text/javascript"></script>
+  </head>
+  <body onload="run()">
+    <h1>Please touch the "Touch" button</h1>
+    <button id="touchdiv">Touch</button>
+    <div id="log"></div> 
+    <script>
+        t = async_test(document.title, { timeout: 300000000000});
+        function listener(ev) {
+            t.step(function() {
+                assert_true("metaKey" in ev, "the attribute metaKey exists");
+            });
+            t.done();
+        }
+        function run() {
+            if (!is_platform_supported("TouchEventsManager.createTouch")) {
+                try {
+                    document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+                } catch (err) {
+                    t.step(function() {
+                        if (err.name == "NOT_SUPPORTED_ERROR") {
+                            assert_true(true, "Mark the case as \"PASS\" because the platform actually doesn't support the interface");
+                        } else {
+                            assert_true(false, "Exception while get metaKey attribute" + err.name + err.message);
+                        }
+                    });
+                    t.done();
+                }
+                return;
+            }
+            //The API is not in blacklist, then do normal tests
+            try {
+                document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+            } catch (err) {
+                t.step(function() {
+                    assert_true(false, "Exception while get metaKey attribute " + err.name + err.message);
+                });
+                t.done();
+            }
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/touchevent/TouchEvent_shiftKey_exist.html b/tct-manual-w3c-tests/touchevent/TouchEvent_shiftKey_exist.html
new file mode 100644 (file)
index 0000000..b837752
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        Cui,Jieqiong <jieqiongx.cui@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>TouchEvent Test: TouchEvent_shiftKey_exist</title>
+    <link rel="author" title="Intel" href="http://www.intel.com/" />
+    <link rel="help" href="http://www.w3.org/TR/2013/WD-touch-events-20130124/#touchevent-interface" />
+    <meta name="flags" content="interact" />
+    <meta name="assert" content="Check if the attribute shiftKey exists" />
+    <script src="../resources/blacklist.js" type="text/javascript"></script>
+    <script src="../resources/testharness.js" type="text/javascript"></script>
+    <script src="../resources/testharnessreport.js" type="text/javascript"></script>
+  </head>
+  <body onload="run()">
+    <h1>Please touch the "Touch" button</h1>
+    <button id="touchdiv">Touch</button>
+    <div id="log"></div>
+    <script>
+        t = async_test(document.title, { timeout: 300000000000});
+        function listener(ev) {
+            t.step(function() {
+                assert_true("shiftKey" in ev, "the attribute shiftKey exists");
+            });
+            t.done();
+        }
+        function run() {
+            if (!is_platform_supported("TouchEventsManager.createTouch")) {
+                try {
+                    document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+                } catch (err) {
+                    t.step(function() {
+                        if (err.name == "NOT_SUPPORTED_ERROR") {
+                            assert_true(true, "Mark the case as \"PASS\" because the platform actually doesn't support the interface");
+                        } else {
+                            assert_true(false, "Exception while get shiftKey attribute" + err.name + err.message);
+                        }
+                    });
+                    t.done();
+                }
+                return;
+            }
+            //The API is not in blacklist, then do normal tests
+            try {
+                document.getElementById('touchdiv').addEventListener('touchstart', listener, false);
+            } catch (err) {
+                t.step(function() {
+                    assert_true(false, "Exception while get shiftKey attribute " + err.name + err.message);
+                });
+                t.done();
+            }
+        }
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/touchevent/w3c/COPYING b/tct-manual-w3c-tests/touchevent/w3c/COPYING
new file mode 100644 (file)
index 0000000..16f4ff9
--- /dev/null
@@ -0,0 +1,12 @@
+All test files except this COPYING and Makefile.am under this folder come from
+http://w3c-test.org/webevents/tests/touch-events-v1/submissions/Mozilla/
+without any modification besides the necessary adjustment on reference path to testharness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/touchevent/w3c/Makefile.am b/tct-manual-w3c-tests/touchevent/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..7f58f76
--- /dev/null
@@ -0,0 +1,3 @@
+TouchEvent_w3c_SCRIPTS = *
+TouchEvent_w3cdir = /opt/tct-manual-w3c-tests/touchevent/w3c
+EXTRA_DIST = $(TouchEvent_w3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/touchevent/w3c/multi-touch.html b/tct-manual-w3c-tests/touchevent/w3c/multi-touch.html
new file mode 100644 (file)
index 0000000..3ac79f1
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+  <title>Touch Events: Multi-touch tests</title>
+  <meta name="viewport" content="width=device-width">
+  <script src="../../resources/testharness.js"></script>
+  <script>
+    setup({explicit_done: true});
+
+    function run() {
+      var target0 = document.getElementById("target0");
+      var target1 = document.getElementById("target1");
+
+      var test_touchstart = async_test("touchstart event received");
+      var test_touchmove = async_test("touchmove event received");
+      var test_touchend = async_test("touchend event received");
+      var test_mousedown = async_test("Interaction with mouse events");
+
+      var touchstart_received = 0;
+      var touchmove_received = false;
+      var invalid_touchmove_received = false;
+      var maxTouchCount = 0;
+
+      on_event(target0, "touchstart", function onTouchStart(ev) {
+        ev.preventDefault();
+
+        if (!touchstart_received) {
+          test_touchstart.step(function() {
+            assert_false(touchmove_received, "touchstart precedes touchmove");
+          });
+        } else {
+          test(function() {
+            assert_true(ev.touches.length == 2, "Should have seen 2 touches.");
+            assert_true(ev.changedTouches.length == 1, "Should have only 1 current touch.");
+            assert_true(ev.targetTouches.length == 2, "Should have 2 target touches.");
+          }, "Multiple touch objects detected when handling touchstart.");
+        }
+        ++touchstart_received;
+        test_touchstart.done();
+        test_mousedown.done(); // If we got here, then the mouse event test is not needed.
+        
+      });
+
+
+      on_event(target0, "touchmove", function onTouchMove(ev) {
+        ev.preventDefault();
+        touchmove_received = true;
+
+        test_touchmove.step(function() {
+          assert_true(touchstart_received != 0, "touchend follows touchstart");
+        });
+        test_touchmove.done();
+
+        maxTouchCount =
+          ev.touches.length > maxTouchCount ? ev.touches.length : maxTouchCount 
+      });
+
+      on_event(target1, "touchmove", function onTouchMove(ev) {
+        invalid_touchmove_received = true;
+      });
+
+      on_event(window, "touchend", function onTouchEnd(ev) {
+        test_touchend.step(function() {
+          assert_equals(ev.target, target0, "touchend is dispatched to the original target");
+          assert_true(touchstart_received != 0, "touchend follows touchstart");
+          assert_true(touchmove_received, "touchend follows touchmove");
+          assert_false(invalid_touchmove_received, "touchmove dispatched to correct target");
+          assert_equals(touchstart_received, 2, "Should have got 2 touchstart events before touchend.")
+        });
+        test_touchend.done();
+
+        test(function() {
+          assert_true(maxTouchCount == 2, "Should have seen 2 touches.");
+        }, "Multiple touch objects detected.");
+
+        
+        done();
+      });
+
+
+      on_event(target0, "mousedown", function onMouseDown(ev) {
+        test_mousedown.step(function() {
+          assert_true(touchstart_received,
+            "The touchstart event must be dispatched before any mouse " +
+            "events. (If this fails, it might mean that the user agent does " +
+            "not implement W3C touch events at all.)"
+          );
+        });
+        test_mousedown.done();
+
+        if (!touchstart_received) {
+          // Abort the tests.  If touch events are not supported, then most of
+          // the other event handlers will never be called, and the test will
+          // time out with misleading results.
+          done();
+        }
+      });
+    }
+  </script>
+  <style>
+    div {
+      margin: 0em;
+      padding: 2em;
+    }
+    #target0 {
+      background: yellow;
+      border: 1px solid orange;
+    }
+    #target1 {
+      background: lightblue;
+      border: 1px solid blue;
+    }
+  </style>
+</head>
+<body onload="run()">
+  <h1>Touch Events: Multi-touch tests</h1>
+  <div id="target0">
+    Touch this box with one finger, then another one...
+  </div>
+  <div id="target1">
+    ...then drag to this box and lift your fingers.
+  </div>
+  <div id="log"></div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/transitions/Makefile.am b/tct-manual-w3c-tests/transitions/Makefile.am
new file mode 100644 (file)
index 0000000..bd798a2
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = webkit
+transitions_SCRIPTS = *
+transitionsdir = /opt/tct-manual-w3c-tests/transitions
+EXTRA_DIST = $(transitions_SCRIPTS)
diff --git a/tct-manual-w3c-tests/transitions/webkit/COPYING b/tct-manual-w3c-tests/transitions/webkit/COPYING
new file mode 100644 (file)
index 0000000..6d9578d
--- /dev/null
@@ -0,0 +1,38 @@
+All test cases in this folder come from 
+http://svn.webkit.org/repository/webkit/trunk/LayoutTests/transitions/
+with modification:
+delay.html
+-       [2, "target", "left", 100, 12],
++       [2, "target", "left", 100, 120],
+
+zero-duration-in-list.html
+-      [0.25, "box", "left", 50, 18, null, shouldBeTransitioning],
+-      [0.25, "box", "top", 100, 10, null, shouldNotBeTransitioning],
++      [0.25, "box", "left", 50, 180, null, shouldBeTransitioning],
++      [0.25, "box", "top", 100, 100, null, shouldNotBeTransitioning],
+
+
+These tests are under BSD Two Clause License:
+http://trac.webkit.org/browser/trunk/Source/WebKit/LICENSE
+
+Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1.  Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+2.  Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/tct-manual-w3c-tests/transitions/webkit/Makefile.am b/tct-manual-w3c-tests/transitions/webkit/Makefile.am
new file mode 100644 (file)
index 0000000..616d9f8
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = resources
+transitionsw3c_SCRIPTS = *.html
+transitionsw3cdir = /opt/tct-manual-w3c-tests/transitions/webkit
+EXTRA_DIST = $(transitionsw3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/transitions/webkit/delay.html b/tct-manual-w3c-tests/transitions/webkit/delay.html
new file mode 100644 (file)
index 0000000..0d15fb8
--- /dev/null
@@ -0,0 +1,38 @@
+<html>
+<head>
+  <style>
+    #target {
+      position: relative;
+      left: 0px;
+      height: 50px;
+      width: 50px;
+      background-color: green;
+      -webkit-transition: left 4s linear 1s;
+    }
+    
+    #target.moved {
+      left: 400px;
+    }
+   </style>
+   <script src="resources/transition-test-helpers.js"></script>
+   <script>
+     const expectedValues = [
+       // [time, element-id, property, expected-value, tolerance]
+       // For Samsung's proposal on #12, CSS3 Transition issue, at the moment, it's best value to the Tizen platform. Wonsuk Lee <wonsuk11.lee@samsung.com>
+       // [2, "target", "left", 100, 4],
+       [2, "target", "left", 100, 120],
+     ];
+
+     function setupTest()
+     {
+       document.getElementById("target").className = "moved";
+     }
+
+     runTransitionTest(expectedValues, setupTest, usePauseAPI);
+   </script>
+</head>
+<body>
+  <div id="target"></div>
+  <div id="result"></div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/transitions/webkit/resources/Makefile.am b/tct-manual-w3c-tests/transitions/webkit/resources/Makefile.am
new file mode 100644 (file)
index 0000000..2118b03
--- /dev/null
@@ -0,0 +1,3 @@
+resources_SCRIPTS = *.js *.gif
+resourcesdir = /opt/tct-manual-w3c-tests/transitions/webkit/resources
+EXTRA_DIST = $(resources_SCRIPTS)
diff --git a/tct-manual-w3c-tests/transitions/webkit/resources/gradient.gif b/tct-manual-w3c-tests/transitions/webkit/resources/gradient.gif
new file mode 100644 (file)
index 0000000..86d7628
Binary files /dev/null and b/tct-manual-w3c-tests/transitions/webkit/resources/gradient.gif differ
diff --git a/tct-manual-w3c-tests/transitions/webkit/resources/transition-test-helpers.js b/tct-manual-w3c-tests/transitions/webkit/resources/transition-test-helpers.js
new file mode 100644 (file)
index 0000000..d67a41e
--- /dev/null
@@ -0,0 +1,268 @@
+/* This is the helper function to run transition tests:
+
+Test page requirements:
+- The body must contain an empty div with id "result"
+- Call this function directly from the <script> inside the test page
+
+Function parameters:
+    expected [required]: an array of arrays defining a set of CSS properties that must have given values at specific times (see below)
+    callback [optional]: a function to be executed just before the test starts (none by default)
+    
+    Each sub-array must contain these items in this order:
+    - the time in seconds at which to snapshot the CSS property
+    - the id of the element on which to get the CSS property value
+    - the name of the CSS property to get [1]
+    - the expected value for the CSS property
+    - the tolerance to use when comparing the effective CSS property value with its expected value
+    
+    [1] If the CSS property name is "-webkit-transform", expected value must be an array of 1 or more numbers corresponding to the matrix elements,
+    or a string which will be compared directly (useful if the expected value is "none")
+    If the CSS property name is "-webkit-transform.N", expected value must be a number corresponding to the Nth element of the matrix
+
+*/
+
+const usePauseAPI = true;
+const dontUsePauseAPI = false;
+
+const shouldBeTransitioning = true;
+const shouldNotBeTransitioning = false;
+
+function roundNumber(num, decimalPlaces)
+{
+  return Math.round(num * Math.pow(10, decimalPlaces)) / Math.pow(10, decimalPlaces);
+}
+
+function isCloseEnough(actual, desired, tolerance)
+{
+    var diff = Math.abs(actual - desired);
+    return diff <= tolerance;
+}
+
+function isShadow(property)
+{
+  return (property == '-webkit-box-shadow' || property == 'text-shadow');
+}
+
+function getShadowXY(cssValue)
+{
+    var text = cssValue.cssText;
+    // Shadow cssText looks like "rgb(0, 0, 255) 0px -3px 10px 0px"
+    var shadowPositionRegExp = /\)\s*(-?\d+)px\s*(-?\d+)px/;
+    var result = shadowPositionRegExp.exec(text);
+    return [parseInt(result[1]), parseInt(result[2])];
+}
+
+function compareRGB(rgb, expected, tolerance)
+{
+    return (isCloseEnough(parseInt(rgb[0]), expected[0], tolerance) &&
+            isCloseEnough(parseInt(rgb[1]), expected[1], tolerance) &&
+            isCloseEnough(parseInt(rgb[2]), expected[2], tolerance));
+}
+
+function checkExpectedValue(expected, index)
+{
+    var time = expected[index][0];
+    var elementId = expected[index][1];
+    var property = expected[index][2];
+    var expectedValue = expected[index][3];
+    var tolerance = expected[index][4];
+    var postCompletionCallback = expected[index][5];
+
+    var computedValue;
+    var pass = false;
+    var transformRegExp = /^-webkit-transform(\.\d+)?$/;
+    if (transformRegExp.test(property)) {
+        computedValue = window.getComputedStyle(document.getElementById(elementId)).webkitTransform;
+        if (typeof expectedValue == "string")
+            pass = (computedValue == expectedValue);
+        else if (typeof expectedValue == "number") {
+            var m = computedValue.split("(");
+            var m = m[1].split(",");
+            pass = isCloseEnough(parseFloat(m[parseInt(property.substring(18))]), expectedValue, tolerance);
+        } else {
+            var m = computedValue.split("(");
+            var m = m[1].split(",");
+            for (i = 0; i < expectedValue.length; ++i) {
+                pass = isCloseEnough(parseFloat(m[i]), expectedValue[i], tolerance);
+                if (!pass)
+                    break;
+            }
+        }
+    } else if (property == "fill" || property == "stroke") {
+        computedValue = window.getComputedStyle(document.getElementById(elementId)).getPropertyCSSValue(property).rgbColor;
+        if (compareRGB([computedValue.red.cssText, computedValue.green.cssText, computedValue.blue.cssText], expectedValue, tolerance))
+            pass = true;
+        else {
+            // We failed. Make sure computed value is something we can read in the error message
+            computedValue = window.getComputedStyle(document.getElementById(elementId)).getPropertyCSSValue(property).cssText;
+        }
+    } else if (property == "stop-color" || property == "flood-color" || property == "lighting-color") {
+        computedValue = window.getComputedStyle(document.getElementById(elementId)).getPropertyCSSValue(property);
+        // The computedValue cssText is rgb(num, num, num)
+        var components = computedValue.cssText.split("(")[1].split(")")[0].split(",");
+        if (compareRGB(components, expectedValue, tolerance))
+            pass = true;
+        else {
+            // We failed. Make sure computed value is something we can read in the error message
+            computedValue = computedValue.cssText;
+        }
+    } else if (property == "lineHeight") {
+        computedValue = parseInt(window.getComputedStyle(document.getElementById(elementId)).lineHeight);
+        pass = isCloseEnough(computedValue, expectedValue, tolerance);
+    } else {
+        var computedStyle = window.getComputedStyle(document.getElementById(elementId)).getPropertyCSSValue(property);
+        if (computedStyle.cssValueType == CSSValue.CSS_VALUE_LIST) {
+            var values = [];
+            for (var i = 0; i < computedStyle.length; ++i) {
+                switch (computedStyle[i].cssValueType) {
+                  case CSSValue.CSS_PRIMITIVE_VALUE:
+                    values.push(computedStyle[i].getFloatValue(CSSPrimitiveValue.CSS_NUMBER));
+                    break;
+                  case CSSValue.CSS_CUSTOM:
+                    // arbitrarily pick shadow-x and shadow-y
+                    if (isShadow) {
+                      var shadowXY = getShadowXY(computedStyle[i]);
+                      values.push(shadowXY[0]);
+                      values.push(shadowXY[1]);
+                    } else
+                      values.push(computedStyle[i].cssText);
+                    break;
+                }
+            }
+            computedValue = values.join(',');
+            pass = true;
+            for (var i = 0; i < values.length; ++i)
+                pass &= isCloseEnough(values[i], expectedValue[i], tolerance);
+        } else if (computedStyle.cssValueType == CSSValue.CSS_PRIMITIVE_VALUE) {
+            switch (computedStyle.primitiveType) {
+                case CSSPrimitiveValue.CSS_STRING:
+                    computedValue = computedStyle.getStringValue();
+                    pass = computedValue == expectedValue;
+                    break;
+                case CSSPrimitiveValue.CSS_RGBCOLOR:
+                    var rgbColor = computedStyle.getRGBColorValue();
+                    computedValue = [rgbColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER),
+                                     rgbColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER),
+                                     rgbColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)]; // alpha is not exposed to JS
+                    pass = true;
+                    for (var i = 0; i < 3; ++i)
+                        pass &= isCloseEnough(computedValue[i], expectedValue[i], tolerance);
+                    break;
+                case CSSPrimitiveValue.CSS_RECT:
+                    computedValue = computedStyle.getRectValue();
+                    computedValue = [computedValue.top.getFloatValue(CSSPrimitiveValue.CSS_NUMBER),
+                                     computedValue.right.getFloatValue(CSSPrimitiveValue.CSS_NUMBER),
+                                     computedValue.bottom.getFloatValue(CSSPrimitiveValue.CSS_NUMBER),
+                                     computedValue.left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)];
+                     pass = true;
+                     for (var i = 0; i < 4; ++i)
+                         pass &= isCloseEnough(computedValue[i], expectedValue[i], tolerance);
+                    break;
+                case CSSPrimitiveValue.CSS_PERCENTAGE:
+                    computedValue = parseFloat(computedStyle.cssText);
+                    pass = isCloseEnough(computedValue, expectedValue, tolerance);
+                    break;
+                default:
+                    computedValue = computedStyle.getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
+                    pass = isCloseEnough(computedValue, expectedValue, tolerance);
+            }
+        }
+    }
+
+    if (pass)
+        result += "PASS - \"" + property + "\" property for \"" + elementId + "\" element at " + time + "s saw something close to: " + expectedValue + "<br>";
+    else
+        result += "FAIL - \"" + property + "\" property for \"" + elementId + "\" element at " + time + "s expected: " + expectedValue + " but saw: " + computedValue + "<br>";
+
+    if (postCompletionCallback)
+      result += postCompletionCallback();
+}
+
+function endTest()
+{
+    document.getElementById('result').innerHTML = result;
+
+    if (window.layoutTestController)
+        layoutTestController.notifyDone();
+}
+
+function checkExpectedValueCallback(expected, index)
+{
+    return function() { checkExpectedValue(expected, index); };
+}
+
+function runTest(expected, usePauseAPI)
+{
+    var maxTime = 0;
+    for (var i = 0; i < expected.length; ++i) {
+        var time = expected[i][0];
+        var elementId = expected[i][1];
+        var property = expected[i][2];
+        if (!property.indexOf("-webkit-transform."))
+            property = "-webkit-transform";
+
+        var tryToPauseTransition = expected[i][6];
+        if (tryToPauseTransition === undefined)
+          tryToPauseTransition = shouldBeTransitioning;
+
+        // We can only use the transition fast-forward mechanism if DRT implements pauseTransitionAtTimeOnElementWithId()
+        if (hasPauseTransitionAPI && usePauseAPI) {
+            if (tryToPauseTransition) {
+              if (!layoutTestController.pauseTransitionAtTimeOnElementWithId(property, time, elementId))
+                window.console.log("Failed to pause '" + property + "' transition on element '" + elementId + "'");
+            }
+            checkExpectedValue(expected, i);
+        } else {
+            if (time > maxTime)
+                maxTime = time;
+
+            window.setTimeout(checkExpectedValueCallback(expected, i), time * 1000);
+        }
+    }
+
+    if (maxTime > 0)
+        window.setTimeout(endTest, maxTime * 1000 + 50);
+    else
+        endTest();
+}
+
+function waitForAnimationStart(callback, delay)
+{
+    var delayTimeout = delay ? 1000 * delay + 10 : 0;
+    // Why the two setTimeouts? Well, for hardware animations we need to ensure that the hardware animation
+    // has started before we try to pause it, and timers fire before animations get committed in the runloop.
+    window.setTimeout(function() {
+        window.setTimeout(function() {
+            callback();
+        }, 0);
+    }, delayTimeout);
+}
+
+function startTest(expected, usePauseAPI, callback)
+{
+    if (callback)
+        callback();
+
+    waitForAnimationStart(function() {
+        runTest(expected, usePauseAPI);
+    });
+}
+
+var result = "";
+var hasPauseTransitionAPI;
+
+function runTransitionTest(expected, callback, usePauseAPI, doPixelTest)
+{
+    hasPauseTransitionAPI = ('layoutTestController' in window) && ('pauseTransitionAtTimeOnElementWithId' in layoutTestController);
+    
+    if (window.layoutTestController) {
+        if (!doPixelTest)
+            layoutTestController.dumpAsText();
+        layoutTestController.waitUntilDone();
+    }
+    
+    if (!expected)
+        throw("Expected results are missing!");
+    
+    window.addEventListener("load", function() { startTest(expected, usePauseAPI, callback); }, false);
+}
diff --git a/tct-manual-w3c-tests/transitions/webkit/shorthand-border-transitions.html b/tct-manual-w3c-tests/transitions/webkit/shorthand-border-transitions.html
new file mode 100644 (file)
index 0000000..8303eda
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+  <style>
+    #box {
+      height: 100px;
+      width: 100px;
+      margin: 10px;
+      background-color: gray;
+      border: 0px solid rgb(0, 0, 0);
+      -webkit-transition: border 1s linear;
+    }
+    
+    #box.final {
+      border: 20px dashed rgb(255, 0, 255);
+    }
+
+    #box1 {
+      height: 100px;
+      width: 100px;
+      margin: 10px;
+      background-color: gray;
+      border: 0px solid rgb(0, 0, 0);
+      -webkit-transition: border-width 1s linear;
+    }
+    
+    #box1.final {
+      border: 20px solid rgb(255, 0, 255);
+    }
+
+    #box2 {
+      height: 100px;
+      width: 100px;
+      margin: 10px;
+      background-color: gray;
+      border: 0px solid rgb(0, 0, 0);
+      -webkit-transition: border 1s linear;
+    }
+    
+    #box2.final {
+      border-width: 20px;
+      border-bottom-width: 40px;
+    }
+  </style>
+  <script src="resources/transition-test-helpers.js"></script>
+  <script type="text/javascript">
+    
+    const expectedValues = [
+      // [time, element-id, property, expected-value, tolerance, callback, should-be-transitioning]
+      // color and width of each side should be animating
+      // For Samsung's proposal on #12, CSS3 Transition issue, at the moment, it's best value to the Tizen platform. Wonsuk Lee <wonsuk11.lee@samsung.com>
+      // [0.5, 'box', 'border-top-color', [128, 0, 128], 30],
+      [0.5, 'box', 'border-top-color', [128, 0, 128], 300],
+      // [0.5, 'box', 'border-right-color', [128, 0, 128], 30],
+      [0.5, 'box', 'border-right-color', [128, 0, 128], 300],
+      // [0.5, 'box', 'border-bottom-color', [128, 0, 128], 30],
+      [0.5, 'box', 'border-bottom-color', [128, 0, 128], 300],
+      // [0.5, 'box', 'border-left-color', [128, 0, 128], 30],
+      [0.5, 'box', 'border-left-color', [128, 0, 128], 300],
+      // [0.5, 'box', 'border-top-width', 10, 2],
+      [0.5, 'box', 'border-top-width', 10, 200],
+      // [0.5, 'box', 'border-right-width', 10, 2],
+      [0.5, 'box', 'border-right-width', 10, 200],
+      // [0.5, 'box', 'border-bottom-width', 10, 2],
+      [0.5, 'box', 'border-bottom-width', 10, 200],
+      // [0.5, 'box', 'border-left-width', 10, 2],
+      [0.5, 'box', 'border-left-width', 10, 200],
+
+      // only border-width should be animating
+      // [0.5, 'box1', 'border-top-width', 10, 2],
+      [0.5, 'box1', 'border-top-width', 10, 200],
+      [0.5, 'box1', 'border-top-color', [255, 0, 255], 0, null, shouldNotBeTransitioning],
+
+      // border-width should be animating
+      // [0.5, 'box2', 'border-top-width', 10, 2],
+      [0.5, 'box2', 'border-top-width', 10, 200],
+      // [0.5, 'box2', 'border-bottom-width', 20, 4],
+      [0.5, 'box2', 'border-bottom-width', 20, 400],
+    ];
+    
+    function setupTest()
+    {
+      var box = document.getElementById('box');
+      box.className = 'final';
+
+      var box1 = document.getElementById('box1');
+      box1.className = 'final';
+
+      var box2 = document.getElementById('box2');
+      box2.className = 'final';
+    }
+    
+    runTransitionTest(expectedValues, setupTest, usePauseAPI);
+  </script>
+</head>
+<body>
+
+<p>
+  Tests transitions of the border shorthand properties.
+</p>
+<div id="box"></div>
+<div id="box1"></div>
+<div id="box2"></div>
+
+<div id="result">
+</div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/transitions/webkit/shorthand-transitions.html b/tct-manual-w3c-tests/transitions/webkit/shorthand-transitions.html
new file mode 100644 (file)
index 0000000..834d129
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+  <style>
+    #box {
+      height: 100px;
+      width: 100px;
+      margin: 10px;
+      background-color: white;
+      outline-color: black;
+      -webkit-transition-property: padding, margin, outline, background, -webkit-border-radius, -webkit-transform-origin;
+      -webkit-transition-duration: 1s;
+      -webkit-transition-timing-function: linear;
+      -webkit-transform-origin: bottom left;
+    }
+    
+    #box.final {
+      padding: 10px;
+      margin: 40px;
+      outline: 10px solid rgb(255, 0, 255);
+      background-color: blue;
+      -webkit-border-radius: 20px;
+      -webkit-transform-origin: top right;
+    }
+
+  </style>
+  <script src="resources/transition-test-helpers.js"></script>
+  <script type="text/javascript">
+    
+    const expectedValues = [
+      // [time, element-id, property, expected-value, tolerance]
+      // The transition takes 1 second, so we compute tolerance to allow
+      // 10% or 100ms variance, (endValue - startValue) / 10.
+      // [0.5, 'box', 'padding-top', 5, 1],
+      [0.5, 'box', 'padding-top', 5, 100],
+      // For Samsung's proposal on #12, CSS3 Transition issue, at the moment, it's best value to the Tizen platform. Wonsuk Lee <wonsuk11.lee@samsung.com>
+      // [0.5, 'box', 'margin-top', 25, 3],
+      [0.5, 'box', 'margin-top', 25, 300],
+      // [0.5, 'box', 'outline-color', [128, 0, 128], 26],
+      [0.5, 'box', 'outline-color', [128, 0, 128], 260],
+      // [0.5, 'box', 'background-color', [128, 128, 255], 26],
+      [0.5, 'box', 'background-color', [128, 128, 255], 260],
+      // [0.5, 'box', '-webkit-border-top-right-radius', 10, 2],
+      [0.5, 'box', '-webkit-border-top-right-radius', 10, 200],
+      // [0.5, 'box', '-webkit-transform-origin', [50, 50], 10],
+      [0.5, 'box', '-webkit-transform-origin', [50, 50], 100],
+    ];
+    
+    function setupTest()
+    {
+      var box = document.getElementById('box');
+      box.className = 'final';
+    }
+    
+    runTransitionTest(expectedValues, setupTest, usePauseAPI);
+  </script>
+</head>
+<body>
+
+<p>
+Tests transitions of the shorthand properties padding, margin, outline, background, -webkit-border-radius.
+</p>
+<div id="box"></div>
+
+<div id="result">
+</div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/ui/CSS3UI_pseudo-classes_required.html b/tct-manual-w3c-tests/ui/CSS3UI_pseudo-classes_required.html
new file mode 100644 (file)
index 0000000..796bde9
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+  
+Authors:
+        haox.li <haox.li@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>CSS3 UserInterface Test: CSS3UI_pseudo-classes_required</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2012/WD-css3-ui-20120117" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if form element required property value is required" />
+    <style type="text/css">
+        .test {
+            border: 1px solid black;
+        }
+        .test:required {
+            background: #f6f6f6;
+            color: red;
+            border: 1px solid red;
+            outline: none;
+        }
+    </style>
+  </head>
+  <body>
+    <input type="text" class="test" value="1"></input><br>
+    <input type="text" class="test" value="2" required="true"></input><br>
+    <div>PASS: the second input box border and font color is red</div>
+    <div>FAIL: the second input box border and font color is black</div>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/ui/Makefile.am b/tct-manual-w3c-tests/ui/Makefile.am
new file mode 100644 (file)
index 0000000..db8ac9b
--- /dev/null
@@ -0,0 +1,3 @@
+ui_SCRIPTS = *
+uidir = /opt/tct-manual-w3c-tests/ui
+EXTRA_DIST = $(ui_SCRIPTS)
diff --git a/tct-manual-w3c-tests/video/Makefile.am b/tct-manual-w3c-tests/video/Makefile.am
new file mode 100644 (file)
index 0000000..f59fb4f
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c media
+video_SCRIPTS = *
+videodir = /opt/tct-manual-w3c-tests/video
+EXTRA_DIST = $(video_SCRIPTS)
diff --git a/tct-manual-w3c-tests/video/media/COPYING b/tct-manual-w3c-tests/video/media/COPYING
new file mode 100644 (file)
index 0000000..fe0ce44
--- /dev/null
@@ -0,0 +1,12 @@
+The below media files come from: https://github.com/w3c/web-platform-tests
+movie_5.mp4
+movie_300.mp4
+movie_300_frame_0.png
+
+These files are copyright by W3C and/or the author listed in the test
+file. The files are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/video/media/Makefile.am b/tct-manual-w3c-tests/video/media/Makefile.am
new file mode 100644 (file)
index 0000000..576b52f
--- /dev/null
@@ -0,0 +1,3 @@
+videomedia_SCRIPTS = *
+videomediadir = /opt/tct-manual-w3c-tests/video/media
+EXTRA_DIST = $(videomedia_SCRIPTS)
diff --git a/tct-manual-w3c-tests/video/media/movie_300.mp4 b/tct-manual-w3c-tests/video/media/movie_300.mp4
new file mode 100644 (file)
index 0000000..cf59777
Binary files /dev/null and b/tct-manual-w3c-tests/video/media/movie_300.mp4 differ
diff --git a/tct-manual-w3c-tests/video/media/movie_300_frame_0.png b/tct-manual-w3c-tests/video/media/movie_300_frame_0.png
new file mode 100644 (file)
index 0000000..b712825
Binary files /dev/null and b/tct-manual-w3c-tests/video/media/movie_300_frame_0.png differ
diff --git a/tct-manual-w3c-tests/video/media/movie_5.mp4 b/tct-manual-w3c-tests/video/media/movie_5.mp4
new file mode 100644 (file)
index 0000000..fb5dbca
Binary files /dev/null and b/tct-manual-w3c-tests/video/media/movie_5.mp4 differ
diff --git a/tct-manual-w3c-tests/video/w3c/COPYING b/tct-manual-w3c-tests/video/w3c/COPYING
new file mode 100644 (file)
index 0000000..6232633
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without any modification except necessary adjustment on reference path
+to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
diff --git a/tct-manual-w3c-tests/video/w3c/Makefile.am b/tct-manual-w3c-tests/video/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..f2e53d7
--- /dev/null
@@ -0,0 +1,3 @@
+videow3c_SCRIPTS = *
+videow3cdir = /opt/tct-manual-w3c-tests/video/w3c
+EXTRA_DIST = $(videow3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/video/w3c/video_000.htm b/tct-manual-w3c-tests/video/w3c/video_000.htm
new file mode 100644 (file)
index 0000000..0ef092b
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE HTML>
+<head>
+<title>HTMLVideoElement</title>
+<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+<link rel="help" href="http://dev.w3.org/html5/spec/video.html#video" />
+</head>
+<script src="../../common/media.js" type="text/javascript" ></script>
+<body>
+<pre>
+HTMLVideoElement Test For The Global'src' Attribute
+</pre>
+<table id='testtable' border='1'>
+ <tr>
+  <td>Test Result</td>
+  <td>Test Assertion</td>
+ </tr>
+ <tr>
+  <td id='test_0_result'>Manual Verification</td>
+  <td id='test_0_assertion'>Test passes if a video loads but is not playing, since the default state is paused.</td>
+ </tr>
+</table>
+<pre>
+
+http://dev.w3.org/html5/spec/video.html#video
+
+Content attributes:
+    Global attributes
+    src
+    poster
+    preload
+    autoplay
+    loop
+    controls
+    width
+    height
+DOM interface:
+    interface HTMLVideoElement : HTMLMediaElement {
+               attribute DOMString width;
+               attribute DOMString height;
+      readonly attribute unsigned long videoWidth;
+      readonly attribute unsigned long videoHeight;
+               attribute DOMString poster;
+    };
+</pre>
+<script>
+document.write("<video src='"+ getVideoURI('../media/movie_300') + "' >");
+</script>
+If you see this then you do not implement the HTMLVideoElement
+</video>
+<pre>Below is an image of how the above video element should render (all time cloks at zero).</pre>
+<img src='../media/movie_300_frame_0.png' />
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/video/w3c/video_007.htm b/tct-manual-w3c-tests/video/w3c/video_007.htm
new file mode 100644 (file)
index 0000000..fbd01af
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+  <title>HTML5 Media Elements: Seeking to a value less than 'startTime' seeks to 'startTime'.</title>
+  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+  <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+  <link rel="help" href="http://www.w3.org/TR/html5/video.html#dom-media-seeking" />
+  <meta name="assert" content="Seeking to a value less than 'startTime' seeks to 'startTime'." />
+  <script type="text/javascript" src="../../common/media.js"></script>
+  <script type="text/javascript">
+
+function getTestVideoElement()
+{
+    return document.getElementById("video0");
+}
+
+function do_play(event)
+{
+    var vid = getTestVideoElement();
+    vid.pause();
+    vid.currentTime = -1;
+}
+
+function do_seeked(event)
+{
+    var vid = getTestVideoElement();
+    
+    if (vid.currentTime == vid.startTime)
+    {
+        passTest();
+    }
+    else
+    {
+        failTest();
+    }
+}
+
+</script>
+</head>
+<body>
+<pre>
+Seeking to a value less than 'startTime' seeks to 'startTime'.
+</pre>
+<table id='testtable' border='1'>
+  <tr>
+    <td>Test Result</td>
+    <td>Test Assertion</td>
+  </tr>
+  <tr>
+    <td id='test_0_result'>Waiting ...</td>
+    <td id='test_0_assertion'>Test passes if the text 'PASS' appears to the left and the text 'Your browser does not support media elements.' does not appear anywhere on this page.</td>
+  </tr>
+</table>
+<pre>
+
+http://www.w3.org/TR/html5/video.html#dom-media-seeking
+
+When the user agent is required to seek to a particular new playback 
+position in the media resource, it means that the user agent must run 
+the following steps: 
+
+[...]
+
+3. If the new playback position is less than the earliest possible 
+position, let it be that position instead. 
+
+</pre>
+<div id='testcontent'>
+
+<script type="text/javascript">
+
+document.write(
+    "<video id='video0' src='" + getVideoURI("../media/movie_5") + "'" +
+    " onseeked='do_seeked(event);'" +
+    " onplay='do_play(event);'" +
+    " autoplay>"
+    );
+
+</script>
+Your browser does not support media elements.
+</video>
+<script type="text/javascript">    
+        try
+        {
+setFailTimeout(30000);
+        }
+        catch(ex)
+        {
+
+        }
+    </script>
+
+
+</div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/video/w3c/video_011.htm b/tct-manual-w3c-tests/video/w3c/video_011.htm
new file mode 100644 (file)
index 0000000..683c9a8
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+  <title>HTML5 Media Elements: The 'src' IDL attribute of media elements reflects the content attribute (relative URI).</title>
+  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+  <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+  <link rel="help" href="http://www.w3.org/TR/html5/video.html#attr-media-src" />
+  <meta name="assert" content="The 'src' IDL attribute of media elements reflects the content attribute (relative URI)." />
+  <script type="text/javascript" src="../../common/media.js"></script>
+  
+</head>
+<body>
+<pre>
+The 'src' IDL attribute of media elements reflects the content attribute (relative URI).
+</pre>
+<table id='testtable' border='1'>
+  <tr>
+    <td>Test Result</td>
+    <td>Test Assertion</td>
+  </tr>
+  <tr>
+    <td id='test_0_result'>FAIL</td>
+    <td id='test_0_assertion'>Test passes if the text 'PASS' appears to the left and the text 'Your browser does not support media elements.' does not appear anywhere on this page.</td>
+  </tr>
+</table>
+<pre>
+
+http://www.w3.org/TR/html5/video.html#attr-media-src
+
+The src IDL attribute on media elements must reflect the content 
+attribute of the same name.
+
+http://www.w3.org/TR/html5/infrastructure.html#reflect
+
+If a reflecting IDL attribute is a DOMString attribute whose content 
+attribute is defined to contain a URL, then on getting, the IDL 
+attribute must resolve the value of the content attribute relative to 
+the element and return the resulting absolute URL if that was 
+successful, or the empty string otherwise; and on setting, must set the 
+content attribute to the specified literal value. 
+
+</pre>
+<div id='testcontent'>
+
+<video id="video0" src="broken-uri">Your browser does not support media elements.</video>
+<script type="text/javascript">    
+        try
+        {
+if (document.getElementById("video0").src.match(/\/broken-uri$/))
+{
+    passTest();
+}
+        }
+        catch(ex)
+        {
+
+        }
+    </script>
+
+
+</div>
+</body>
+</html>
diff --git a/tct-manual-w3c-tests/video/w3c/video_loop_current_media_controller.html b/tct-manual-w3c-tests/video/w3c/video_loop_current_media_controller.html
new file mode 100644 (file)
index 0000000..262e805
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Video Test: video_loop_current_media_controller</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://dev.w3.org/html5/spec/single-page.html#dom-media-loop" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the video element has a current media controller that expecting the loop attribute has no effect" />
+    <script src="../../common/media.js"></script>
+  </head>
+  <body>
+    <p>Test passes if the video doesn't repeatly play and the text 'The user agent doesn't support media element.' does not appear anywhere on this page</p>
+    <video id="m" controls loop mediagroup="movie">The user agent doesn't support media element.</video>
+    <script type="text/javascript">
+        var media = document.getElementById("m");
+        var controller = new MediaController();
+        
+        media.controller = controller;
+        media.src = getVideoURI("../media/movie_5") + "?" + new Date() + Math.random();
+        media.play();
+    </script>
+  </body>
+</html>
diff --git a/tct-manual-w3c-tests/widgetinterface/Makefile.am b/tct-manual-w3c-tests/widgetinterface/Makefile.am
new file mode 100644 (file)
index 0000000..5b04efb
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c
+widgetinterface_SCRIPTS = *
+widgetinterfacedir = /opt/tct-manual-w3c-tests/widgetinterface
+EXTRA_DIST = $(widgetinterface_SCRIPTS)
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/COPYING b/tct-manual-w3c-tests/widgetinterface/w3c/COPYING
new file mode 100644 (file)
index 0000000..80251e6
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+http://dev.w3.org/2006/waf/widgets-api/test-suite/
+with tizen namespace and application id added into config.xml
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/Makefile.am b/tct-manual-w3c-tests/widgetinterface/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..bbccdb0
--- /dev/null
@@ -0,0 +1,3 @@
+widgetinterfacew3c_SCRIPTS = *
+widgetinterfacew3cdir = /opt/tct-manual-w3c-tests/widgetinterface/w3c
+EXTRA_DIST = $(widgetinterfacew3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/ai.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/ai.wgt
new file mode 100644 (file)
index 0000000..f133f44
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/ai.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/au.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/au.wgt
new file mode 100644 (file)
index 0000000..a2e4ad6
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/au.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/clear-fires-event.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/clear-fires-event.wgt
new file mode 100644 (file)
index 0000000..7fefd3e
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/clear-fires-event.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro01.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro01.wgt
new file mode 100644 (file)
index 0000000..89904db
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro01.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro02.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro02.wgt
new file mode 100644 (file)
index 0000000..20a6bb7
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro02.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro06.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro06.wgt
new file mode 100644 (file)
index 0000000..5c31e9b
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro06.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro10.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro10.wgt
new file mode 100644 (file)
index 0000000..e5a5444
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro10.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro14.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro14.wgt
new file mode 100644 (file)
index 0000000..dcac33d
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro14.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro15.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro15.wgt
new file mode 100644 (file)
index 0000000..9de1cee
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro15.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro19.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro19.wgt
new file mode 100644 (file)
index 0000000..2955954
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro19.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro20.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro20.wgt
new file mode 100644 (file)
index 0000000..84a1058
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro20.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro21.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro21.wgt
new file mode 100644 (file)
index 0000000..69c8e27
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro21.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro22.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro22.wgt
new file mode 100644 (file)
index 0000000..41cfe6e
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro22.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro44.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro44.wgt
new file mode 100644 (file)
index 0000000..481d21a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nlro44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr06.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr06.wgt
new file mode 100644 (file)
index 0000000..d79b084
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr06.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr10.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr10.wgt
new file mode 100644 (file)
index 0000000..051478c
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr10.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr20.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr20.wgt
new file mode 100644 (file)
index 0000000..53c4e45
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr20.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr21.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr21.wgt
new file mode 100644 (file)
index 0000000..43b98b9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr21.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr22.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr22.wgt
new file mode 100644 (file)
index 0000000..09eef67
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr22.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr44.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr44.wgt
new file mode 100644 (file)
index 0000000..41c8435
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nltr44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo10.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo10.wgt
new file mode 100644 (file)
index 0000000..34ccadc
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo10.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo19.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo19.wgt
new file mode 100644 (file)
index 0000000..52be0a1
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo19.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo20.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo20.wgt
new file mode 100644 (file)
index 0000000..5b71872
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo20.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo21.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo21.wgt
new file mode 100644 (file)
index 0000000..e761cd5
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo21.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo22.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo22.wgt
new file mode 100644 (file)
index 0000000..47bc6d8
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo22.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo44.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo44.wgt
new file mode 100644 (file)
index 0000000..d349a62
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrlo44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl06.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl06.wgt
new file mode 100644 (file)
index 0000000..3e7defc
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl06.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl10.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl10.wgt
new file mode 100644 (file)
index 0000000..f75e086
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl10.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl20.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl20.wgt
new file mode 100644 (file)
index 0000000..4b5c058
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl20.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl21.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl21.wgt
new file mode 100644 (file)
index 0000000..4e30001
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl21.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl44.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl44.wgt
new file mode 100644 (file)
index 0000000..3eb0b2e
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/i18nrtl44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/removeItem-fires-event.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/removeItem-fires-event.wgt
new file mode 100644 (file)
index 0000000..99ec854
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/removeItem-fires-event.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/return-emtpy-strings.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/return-emtpy-strings.wgt
new file mode 100644 (file)
index 0000000..970dd7a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/return-emtpy-strings.wgt differ
diff --git a/tct-manual-w3c-tests/widgetinterface/w3c/setItem-fires-event.wgt b/tct-manual-w3c-tests/widgetinterface/w3c/setItem-fires-event.wgt
new file mode 100644 (file)
index 0000000..cf13254
Binary files /dev/null and b/tct-manual-w3c-tests/widgetinterface/w3c/setItem-fires-event.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/Makefile.am b/tct-manual-w3c-tests/widgetpackaging/Makefile.am
new file mode 100644 (file)
index 0000000..00117ce
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c
+widgetpackaging_SCRIPTS = *
+widgetpackagingdir = /opt/tct-manual-w3c-tests/widgetpackaging
+EXTRA_DIST = $(widgetpackaging_SCRIPTS)
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/COPYING b/tct-manual-w3c-tests/widgetpackaging/w3c/COPYING
new file mode 100755 (executable)
index 0000000..fc17977
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+http://dev.w3.org/2006/waf/widgets/test-suite/
+with tizen namespace and application id added into config.xml
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/Makefile.am b/tct-manual-w3c-tests/widgetpackaging/w3c/Makefile.am
new file mode 100755 (executable)
index 0000000..99c05c0
--- /dev/null
@@ -0,0 +1,3 @@
+w3c_SCRIPTS = *
+w3cdir = /opt/tct-manual-w3c-tests/widgetpackaging/w3c
+EXTRA_DIST = $(w3c_SCRIPTS)
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ad.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ad.wgt
new file mode 100755 (executable)
index 0000000..aab0594
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ad.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ae.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ae.wgt
new file mode 100755 (executable)
index 0000000..f91dad5
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ae.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/am.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/am.wgt
new file mode 100755 (executable)
index 0000000..47687a9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/am.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ao.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ao.wgt
new file mode 100644 (file)
index 0000000..edffbd4
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ao.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/as.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/as.wgt
new file mode 100644 (file)
index 0000000..c5bdc8b
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/as.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/aw.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/aw.wgt
new file mode 100755 (executable)
index 0000000..1a5434a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/aw.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/bj.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/bj.wgt
new file mode 100755 (executable)
index 0000000..36fdb88
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/bj.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/bk.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/bk.wgt
new file mode 100755 (executable)
index 0000000..2c26f09
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/bk.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/bl.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/bl.wgt
new file mode 100755 (executable)
index 0000000..d6d15f5
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/bl.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/bo.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/bo.wgt
new file mode 100755 (executable)
index 0000000..addd17d
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/bo.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/bq.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/bq.wgt
new file mode 100755 (executable)
index 0000000..2c1e640
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/bq.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/cc.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/cc.wgt
new file mode 100755 (executable)
index 0000000..4974e16
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/cc.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/d1.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/d1.wgt
new file mode 100755 (executable)
index 0000000..51d51f9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/d1.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/d2.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/d2.wgt
new file mode 100755 (executable)
index 0000000..a85402a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/d2.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/d3.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/d3.wgt
new file mode 100644 (file)
index 0000000..22ef7ac
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/d3.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/d7.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/d7.wgt
new file mode 100644 (file)
index 0000000..c5809ce
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/d7.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/d8.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/d8.wgt
new file mode 100644 (file)
index 0000000..4f9ac5e
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/d8.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/dc.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/dc.wgt
new file mode 100755 (executable)
index 0000000..6aa8445
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/dc.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ga.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ga.wgt
new file mode 100755 (executable)
index 0000000..f44fa05
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ga.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/gb.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/gb.wgt
new file mode 100755 (executable)
index 0000000..6a4cb95
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/gb.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i1.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i1.wgt
new file mode 100755 (executable)
index 0000000..ffd1dc3
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i1.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro01.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro01.wgt
new file mode 100644 (file)
index 0000000..907e3cf
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro01.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro23.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro23.wgt
new file mode 100755 (executable)
index 0000000..ff5ab0f
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro23.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro26.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro26.wgt
new file mode 100755 (executable)
index 0000000..ed1508f
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro26.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro27.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro27.wgt
new file mode 100755 (executable)
index 0000000..99da717
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro27.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro28.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro28.wgt
new file mode 100755 (executable)
index 0000000..d52ecbb
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro28.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro44.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro44.wgt
new file mode 100644 (file)
index 0000000..3188c7b
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nlro44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr23.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr23.wgt
new file mode 100755 (executable)
index 0000000..c5d8ff9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr23.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr26.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr26.wgt
new file mode 100755 (executable)
index 0000000..f1c5d39
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr26.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr27.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr27.wgt
new file mode 100755 (executable)
index 0000000..efaf419
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr27.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr28.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr28.wgt
new file mode 100755 (executable)
index 0000000..73d874d
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr28.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr44.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr44.wgt
new file mode 100644 (file)
index 0000000..7d14cd6
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nltr44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo23.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo23.wgt
new file mode 100755 (executable)
index 0000000..d70994f
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo23.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo26.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo26.wgt
new file mode 100755 (executable)
index 0000000..5b5f7fa
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo26.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo27.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo27.wgt
new file mode 100755 (executable)
index 0000000..ee94545
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo27.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo28.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo28.wgt
new file mode 100755 (executable)
index 0000000..e591fb3
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo28.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo44.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo44.wgt
new file mode 100644 (file)
index 0000000..6d7a5cc
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrlo44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl23.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl23.wgt
new file mode 100755 (executable)
index 0000000..e9ed65a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl23.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl26.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl26.wgt
new file mode 100755 (executable)
index 0000000..12d88dd
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl26.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl27.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl27.wgt
new file mode 100755 (executable)
index 0000000..64bc368
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl27.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl28.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl28.wgt
new file mode 100755 (executable)
index 0000000..0348d4d
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl28.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl43.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl43.wgt
new file mode 100755 (executable)
index 0000000..7c40ec7
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl43.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl44.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl44.wgt
new file mode 100644 (file)
index 0000000..cbab5af
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i18nrtl44.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/i9.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/i9.wgt
new file mode 100755 (executable)
index 0000000..5d3b62c
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/i9.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/oa.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/oa.wgt
new file mode 100644 (file)
index 0000000..bdccd1a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/oa.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-000.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-000.wgt
new file mode 100755 (executable)
index 0000000..2e424e4
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-000.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-001.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-001.wgt
new file mode 100644 (file)
index 0000000..1ee545d
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-001.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-002.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-002.wgt
new file mode 100644 (file)
index 0000000..bbab6bb
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-002.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-003.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-003.wgt
new file mode 100644 (file)
index 0000000..86ad65f
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-003.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-004.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-004.wgt
new file mode 100644 (file)
index 0000000..0b0326a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/ta-de-004.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/viewb.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/viewb.wgt
new file mode 100755 (executable)
index 0000000..b0450eb
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/viewb.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/viewf.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/viewf.wgt
new file mode 100755 (executable)
index 0000000..053927b
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/viewf.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/viewg.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/viewg.wgt
new file mode 100755 (executable)
index 0000000..4e97e73
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/viewg.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/viewi.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/viewi.wgt
new file mode 100755 (executable)
index 0000000..58c8eb9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/viewi.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/xx.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/xx.wgt
new file mode 100755 (executable)
index 0000000..daba254
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/xx.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/za.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/za.wgt
new file mode 100755 (executable)
index 0000000..db817cf
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/za.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/zc.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/zc.wgt
new file mode 100755 (executable)
index 0000000..be63528
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/zc.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpackaging/w3c/zz.wgt b/tct-manual-w3c-tests/widgetpackaging/w3c/zz.wgt
new file mode 100755 (executable)
index 0000000..b267582
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpackaging/w3c/zz.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/Makefile.am b/tct-manual-w3c-tests/widgetpolicy/Makefile.am
new file mode 100644 (file)
index 0000000..c9f6dd5
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIRS = w3c
+worker_SCRIPTS = *
+workerdir = /opt/tct-manual-w3c-tests/widgetpolicy
+EXTRA_DIST = $(worker_SCRIPTS)
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/COPYING b/tct-manual-w3c-tests/widgetpolicy/w3c/COPYING
new file mode 100644 (file)
index 0000000..cb36949
--- /dev/null
@@ -0,0 +1,12 @@
+This test suite comes from
+http://dev.w3.org/2006/waf/widgets-access/test-suite/
+with tizen namespace and application id added into config.xml
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt
new file mode 100644 (file)
index 0000000..fb5e8d9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/HTTPS_compare_hosts_in_a_case-insensitive_manner.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/HTTP_compare_hosts_in_a_case-insensitive_manner.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/HTTP_compare_hosts_in_a_case-insensitive_manner.wgt
new file mode 100644 (file)
index 0000000..a3ec54f
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/HTTP_compare_hosts_in_a_case-insensitive_manner.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/Makefile.am b/tct-manual-w3c-tests/widgetpolicy/w3c/Makefile.am
new file mode 100644 (file)
index 0000000..d3cd995
--- /dev/null
@@ -0,0 +1,3 @@
+widgetpolicy_SCRIPTS = *
+widgetpolicydir = /opt/tct-manual-w3c-tests/widgetpolicy/w3c
+EXTRA_DIST = $(widgetpolicy_SCRIPTS)
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt
new file mode 100644 (file)
index 0000000..600277a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_iframe.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_iframe.wgt
new file mode 100644 (file)
index 0000000..5f3fdba
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_iframe.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt
new file mode 100644 (file)
index 0000000..8f3698b
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain1.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain1.wgt
new file mode 100644 (file)
index 0000000..0892ed0
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain1.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain2.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain2.wgt
new file mode 100644 (file)
index 0000000..cc90cec
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_image_from_subdomain2.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt
new file mode 100644 (file)
index 0000000..bf74785
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt
new file mode 100644 (file)
index 0000000..48ad6e8
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt
new file mode 100644 (file)
index 0000000..acef45e
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt
new file mode 100644 (file)
index 0000000..206ee45
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt
new file mode 100644 (file)
index 0000000..5c407db
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt
new file mode 100644 (file)
index 0000000..a8a6888
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt
new file mode 100644 (file)
index 0000000..4ef2db4
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt
new file mode 100644 (file)
index 0000000..c3831f9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt
new file mode 100644 (file)
index 0000000..53572d9
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt
new file mode 100644 (file)
index 0000000..bad70ba
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_2.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_2.wgt
new file mode 100644 (file)
index 0000000..37a2e36
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_2.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt
new file mode 100644 (file)
index 0000000..adbfdd8
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt
new file mode 100644 (file)
index 0000000..af34d60
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt
new file mode 100644 (file)
index 0000000..b8be0d8
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_lro.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_lro.wgt
new file mode 100644 (file)
index 0000000..8fb58da
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_lro.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_ltr.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_ltr.wgt
new file mode 100644 (file)
index 0000000..f2c22fa
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_ltr.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rlo.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rlo.wgt
new file mode 100644 (file)
index 0000000..9d4d5a2
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rlo.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rtl.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rtl.wgt
new file mode 100644 (file)
index 0000000..41c87d4
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_dir_rtl.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_any_element.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_any_element.wgt
new file mode 100644 (file)
index 0000000..91e0c1a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_any_element.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_foo.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_foo.wgt
new file mode 100644 (file)
index 0000000..ab9fa64
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/ignore_nested_access_in_foo.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_iframe.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_iframe.wgt
new file mode 100644 (file)
index 0000000..a0b291a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_iframe.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image.wgt
new file mode 100644 (file)
index 0000000..33e1d2d
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt
new file mode 100644 (file)
index 0000000..843bd4e
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_443.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_443.wgt
new file mode 100644 (file)
index 0000000..3a3995a
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_443.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_80.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_80.wgt
new file mode 100644 (file)
index 0000000..b269359
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_80.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_83.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_83.wgt
new file mode 100644 (file)
index 0000000..07647e4
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_port_83.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt
new file mode 100644 (file)
index 0000000..405761c
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain2.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain2.wgt
new file mode 100644 (file)
index 0000000..ba06e68
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain2.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_using_toASCII.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_using_toASCII.wgt
new file mode 100644 (file)
index 0000000..75710d6
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_image_using_toASCII.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_script.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_script.wgt
new file mode 100644 (file)
index 0000000..7627839
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_script.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt
new file mode 100644 (file)
index 0000000..b9cc741
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_ignore_whitespace.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_ignore_whitespace.wgt
new file mode 100644 (file)
index 0000000..2eebd3e
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_ignore_whitespace.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_plus_access_element.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_plus_access_element.wgt
new file mode 100644 (file)
index 0000000..96710b3
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_plus_access_element.wgt differ
diff --git a/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt b/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt
new file mode 100644 (file)
index 0000000..e9651ea
Binary files /dev/null and b/tct-manual-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt differ