dom功能測試

dom功能測試,一種針對功能的測試。

基本介紹

  • 中文名:dom功能測試
  • 分類:針對功能的測試
using System;
using System.Xml;
class DomFeatureChecker
private static readonly string versions = new string
"1.0", "2.0";
private static readonly string features = new string
"Core", "XML", "HTML", "Views", "Stylesheets", "CSS",
"CSS2", "Events", "UIEvents", "MouseEvents", "MutationEvents",
"HTMLEvents", "Range", "Traversal" ;
public static void Main(string ARGs)
XmlImplementation impl = new XmlImplementation;
foreach (string version in versions)
foreach (string feature in features)
Console.WriteLine{0} {1}={2}, feature, version,
impl.HasFeature(feature, null);

熱門詞條

聯絡我們