mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 762454 - File filtering @ operator doesn't search for functions; r=past
This commit is contained in:
parent
902eb57eb8
commit
a44e0a1fdb
@ -406,7 +406,7 @@ ScriptsView.prototype = {
|
||||
|
||||
let rawLength = rawValue.length;
|
||||
let lastColon = rawValue.lastIndexOf(":");
|
||||
let lastAt = rawValue.lastIndexOf("@");
|
||||
let lastAt = rawValue.lastIndexOf("#");
|
||||
|
||||
let fileEnd = lastColon != -1 ? lastColon : lastAt != -1 ? lastAt : rawLength;
|
||||
let lineEnd = lastAt != -1 ? lastAt : rawLength;
|
||||
|
@ -56,7 +56,7 @@ function testScriptSearching() {
|
||||
gEditor.getCaretPosition().col == 0,
|
||||
"The editor didn't jump to the correct line.");
|
||||
|
||||
write("@debugger");
|
||||
write("#debugger");
|
||||
ok(gEditor.getCaretPosition().line == 2 &&
|
||||
gEditor.getCaretPosition().col == 44,
|
||||
"The editor didn't jump to the correct token. (1)");
|
||||
@ -82,27 +82,27 @@ function testScriptSearching() {
|
||||
"The editor didn't jump to the correct token. (5)");
|
||||
|
||||
|
||||
write(":bogus@debugger;");
|
||||
write(":bogus#debugger;");
|
||||
ok(gEditor.getCaretPosition().line == 8 &&
|
||||
gEditor.getCaretPosition().col == 2,
|
||||
"The editor didn't jump to the correct token. (7)");
|
||||
|
||||
write(":13@debugger;");
|
||||
write(":13#debugger;");
|
||||
ok(gEditor.getCaretPosition().line == 8 &&
|
||||
gEditor.getCaretPosition().col == 2,
|
||||
"The editor didn't jump to the correct token. (7)");
|
||||
|
||||
write(":@debugger;");
|
||||
write(":#debugger;");
|
||||
ok(gEditor.getCaretPosition().line == 8 &&
|
||||
gEditor.getCaretPosition().col == 2,
|
||||
"The editor didn't jump to the correct token. (8)");
|
||||
|
||||
write("::@debugger;");
|
||||
write("::#debugger;");
|
||||
ok(gEditor.getCaretPosition().line == 8 &&
|
||||
gEditor.getCaretPosition().col == 2,
|
||||
"The editor didn't jump to the correct token. (9)");
|
||||
|
||||
write(":::@debugger;");
|
||||
write(":::#debugger;");
|
||||
ok(gEditor.getCaretPosition().line == 8 &&
|
||||
gEditor.getCaretPosition().col == 2,
|
||||
"The editor didn't jump to the correct token. (10)");
|
||||
@ -113,7 +113,7 @@ function testScriptSearching() {
|
||||
gEditor.getCaretPosition().col == 2,
|
||||
"The editor didn't remain at the correct token. (11)");
|
||||
|
||||
write("@__i do not exist__");
|
||||
write("#__i do not exist__");
|
||||
ok(gEditor.getCaretPosition().line == 8 &&
|
||||
gEditor.getCaretPosition().col == 2,
|
||||
"The editor didn't remain at the correct token. (12)");
|
||||
@ -124,7 +124,7 @@ function testScriptSearching() {
|
||||
gEditor.getCaretPosition().col == 0,
|
||||
"The editor didn't jump to the correct line. (13)");
|
||||
|
||||
write("@don't@find@me@instead@find@debugger");
|
||||
write("#don't#find#me#instead#find#debugger");
|
||||
ok(gEditor.getCaretPosition().line == 2 &&
|
||||
gEditor.getCaretPosition().col == 44,
|
||||
"The editor didn't jump to the correct token. (14)");
|
||||
|
@ -105,7 +105,7 @@ function secondSearch() {
|
||||
});
|
||||
}
|
||||
});
|
||||
write(".*-02\.js@debugger;");
|
||||
write(".*-02\.js#debugger;");
|
||||
}
|
||||
|
||||
function finalCheck() {
|
||||
|
Loading…
Reference in New Issue
Block a user