Global Metrics
path: .metrics.mi.mi_visual_studio
old: 24.33708747066639
new: 24.33134443652784
path: .metrics.mi.mi_sei
old: 6.14544822894436
new: 6.131280114794379
path: .metrics.mi.mi_original
old: 41.616419574839526
new: 41.6065989864626
path: .metrics.halstead.difficulty
old: 18.35135135135135
new: 18.445945945945947
path: .metrics.halstead.time
old: 3483.738292087011
new: 3508.31516854591
path: .metrics.halstead.volume
old: 3417.03932625913
new: 3423.4987578777677
path: .metrics.halstead.level
old: 0.05449189985272459
new: 0.05421245421245421
path: .metrics.halstead.N2
old: 194.0
new: 195.0
path: .metrics.halstead.purity_ratio
old: 0.9693809413333624
new: 0.9675519206893374
path: .metrics.halstead.bugs
old: 0.526127210545861
new: 0.5285987714984371
path: .metrics.halstead.effort
old: 62707.2892575662
new: 63149.673033826395
path: .metrics.halstead.length
old: 529.0
new: 530.0
Spaces Data
Minimal test - lines (75, 100)
path: .spaces[2].metrics.mi.mi_original
old: 88.06256151549889
new: 87.9866477585089
path: .spaces[2].metrics.mi.mi_visual_studio
old: 51.49857398567187
new: 51.45417997573619
path: .spaces[2].metrics.mi.mi_sei
old: 51.44838865378125
new: 51.33886825303654
path: .spaces[2].metrics.halstead.bugs
old: 0.05823460238709211
new: 0.06030243427993205
path: .spaces[2].metrics.halstead.time
old: 128.28652724252677
new: 135.1797512742236
path: .spaces[2].metrics.halstead.N2
old: 26.0
new: 27.0
path: .spaces[2].metrics.halstead.difficulty
old: 7.3125
new: 7.59375
path: .spaces[2].metrics.halstead.effort
old: 2309.157490365482
new: 2433.235522936025
path: .spaces[2].metrics.halstead.length
old: 68.0
new: 69.0
path: .spaces[2].metrics.halstead.level
old: 0.13675213675213677
new: 0.13168724279835392
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.360725367837953
new: 1.3410047103330551
path: .spaces[2].metrics.halstead.volume
old: 315.78222090468125
new: 320.426077094456
Code
async function doSearch(
win,
tab,
engineName,
templateUrl,
inputText = "query"
) {
await searchInSearchbar(win, inputText);
Assert.ok(
win.BrowserSearch.searchBar.textbox.popup.searchbarEngineName
.getAttribute("value")
.includes(engineName),
"Should have the correct engine name displayed in the bar"
);
let p = BrowserTestUtils.browserLoaded(tab.linkedBrowser);
EventUtils.synthesizeKey("KEY_Enter", {}, win);
await p;
Assert.equal(
tab.linkedBrowser.currentURI.spec,
templateUrl + inputText,
"Should have loaded the expected search page."
);
}