Runs the test case.
Document doc;
Element element;
String prefixValue;
java.util.List prefixValues = new java.util.ArrayList();
prefixValues.add("_:");
prefixValues.add(":0");
prefixValues.add(":");
prefixValues.add("_::");
prefixValues.add("a:0:c");
doc = (Document) load("staffNS", true);
element = doc.createElementNS("http://www.w3.org/DOM/Test/L2", "dom:elem");
for (int indexN10050 = 0; indexN10050 < prefixValues.size(); indexN10050++) {
prefixValue = (String) prefixValues.get(indexN10050);
{
boolean success = false;
try {
element.setPrefix(prefixValue);
} catch (DOMException ex) {
success = (ex.code == DOMException.NAMESPACE_ERR);
}
assertTrue("throw_NAMESPACE_ERR", success);
}
}