Web Inspector: Quick Open fails to match pattern "bB" in file "abBc"
[WebKit-https.git] / LayoutTests / inspector / unit-tests / resource-query-controller.html
index e9663a4..c877395 100644 (file)
@@ -179,6 +179,11 @@ function test()
                     filename: "abCd",
                     expected: " bC"
                 },
+                {
+                    query: "bb",
+                    filename: "abBc",
+                    expected: " bB"
+                }
             ];
 
             for (let {query, filename, expected} of tests) {
@@ -187,7 +192,7 @@ function test()
 
                 let results = matcher.executeQuery(query);
                 InspectorTest.assert(results.length === 1, "Should return exactly one match.");
-                let actual = results[0].__test_createMatchesMask();
+                let actual = results.length ? results[0].__test_createMatchesMask() : null;
                 InspectorTest.expectThat(actual === expected, `Query "${query}" should match "${expected}" in "${filename}".`);
             }
         }