Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function testByUrlTransform() {
var resolver = new LocalResolver();
resolver.transformer = new Transformer();
resolver.transformer.replace("transformed.json","original.json");
var p = resolver.resolve(schemaWithTranform, "");
doh.assertEqual(false, p.isResolved());
var original = {x: "test"};
resolver.p["original.json"].resolve(JSON.stringify(original));
doh.assertEqual(true, p.isResolved());
doh.assertEqual("test", schemaWithTranform.car.x);
},
function testByUrlCircle() {
w["opts"]="271*0";
w["oracle"]="4*0,181*0";
w["order"]="30*0,43*0,46*0,66*1,77*0,81*14,86*0,95*0,100*3,111*0,144*0,147*26,164*0,180*0,204*0,206*0,208*0,212*0,213*0,214*0,215*0,246*1,256*0,263*0,295*0";
w["ordered"]="8*0,45*26,100*0";
w["ore"]="273*0";
w["org"]="7*0,75*0,241*0,275*1,276*1,284*0";
w["org.apache.maven.plugins"]="75*0";
w["organization"]="9*1,17*102,36*1,47*0,94*0,111*0,165*0,178*2,213*0,227*0,228*0,257*0,258*0";
w["organizational"]="144*0,178*0,190*1,239*9,240*0,255*26,256*149,257*26,258*27,291*11";
w["organizations"]="38*51,178*0";
w["organize"]="9*2,10*51,14*52,16*52,30*0,34*51,35*0,36*0,69*51,77*52,91*1,93*0,178*0,289*0";
w["organized"]="8*2,11*0,12*0,33*0,35*78,81*27,93*0,100*0,105*51,108*51,110*51,129*2,213*0,220*0,222*51,239*0,253*51,254*0,256*51";
w["organizes"]="8*0,9*26,116*51,126*0,153*1,158*26,159*26,197*0";
w["orginal"]="190*0";
w["original"]="18*0,20*52,26*1,50*1,51*0,54*0,59*52,62*0,105*0,106*26,107*0,110*0,119*27,129*1,194*0,198*1,208*0,217*0,218*1,229*1,231*2,246*0,262*1,287*3,288*0";
w["original.png"]="287*1";
w["originalissue"]="231*0";
w["originally"]="80*0,107*0";
w["originated"]="176*0";
w["originator"]="78*0,246*0,292*1";
w["ors"]="72*0";
w["os"]="4*0";
w["os/x"]="4*0";
w["other"]="0*0,6*51,10*0,16*2,17*2,19*0,27*0,30*106,31*53,33*0,35*1,36*0,40*0,46*0,48*0,54*0,61*0,62*26,72*0,75*26,76*0,77*1,79*0,81*26,83*1,93*0,95*27,96*51,99*0,100*0,101*0,105*0,110*0,111*0,113*51,116*3,117*3,118*0,120*1,121*0,123*30,124*81,129*11,130*0,136*0,140*0,144*0,145*0,148*2,150*26,151*0,160*0,165*0,170*0,175*0,176*2,178*3,182*52,184*0,185*2,187*1,190*1,197*0,203*1,208*0,213*2,217*1,219*0,222*0,224*0,226*26,227*0,228*1,229*0,231*0,238*0,239*0,242*51,244*1,246*0,247*5,248*51,249*36,256*0,257*0,258*1,259*1,262*3,265*0,268*51,270*0,271*51,273*1,274*1,276*51,278*4,281*1,287*0,288*77,289*0,291*11,294*0";
w["otherapps"]="271*0";
w["others"]="4*0,5*1,14*0,16*0,21*1,29*26,34*51,35*1,41*0,42*0,50*1,120*1,133*0,175*1,176*0,179*26,226*26,291*1";
w["otherwise"]="13*0,104*1,111*0,112*1,119*0,121*26,144*0,190*5,203*0,207*0,224*0,246*0,256*0,258*0,262*0,268*0,276*0,278*0,295*0";
w["ou"]="258*1,276*2";
w["our"]="5*0,36*0,53*0,178*0,190*2,244*0,249*0";
w["ourselves"]="185*0";
w["out"]="38*0,44*0,86*0,100*0,104*26,107*0,111*0,140*26,144*0,147*0,151*0,154*0,165*0,176*1,178*2,187*1,213*0,229*1,241*0,246*0,258*0,259*0,262*2,269*51,278*0,280*0";
w["outcome"]="13*0,36*0,262*1";