зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1041237 - The bitmask enums flags calculation for getBitToEnumValue is flawed, r=jsantell
This commit is contained in:
Родитель
a9a0c9ee2b
Коммит
fb723a53a7
|
@ -26,6 +26,11 @@ function ifTestingSupported() {
|
|||
is(functionCalls[0].argsPreview, "DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT | COLOR_BUFFER_BIT",
|
||||
"The bits passed into `gl.clear` have been cast to their enum values.");
|
||||
|
||||
is(functionCalls[1].name, "bindTexture",
|
||||
"The function's name is correct.");
|
||||
is(functionCalls[1].argsPreview, "TEXTURE_2D, null",
|
||||
"The bits passed into `gl.bindTexture` have been cast to their enum values.");
|
||||
|
||||
yield removeTab(target.tab);
|
||||
finish();
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
function drawScene() {
|
||||
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT);
|
||||
gl.bindTexture(gl.TEXTURE_2D, null);
|
||||
window.requestAnimationFrame(drawScene);
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -210,9 +210,12 @@ let FunctionCallActor = protocol.ActorClass({
|
|||
// XXX: All of this sucks. Make this smarter, so that the frontend
|
||||
// can inspect each argument, be it object or primitive. Bug 978960.
|
||||
let serializeArgs = () => args.map((arg, i) => {
|
||||
if (typeof arg == "undefined") {
|
||||
if (arg === undefined) {
|
||||
return "undefined";
|
||||
}
|
||||
if (arg === null) {
|
||||
return "null";
|
||||
}
|
||||
if (typeof arg == "function") {
|
||||
return "Function";
|
||||
}
|
||||
|
@ -643,7 +646,7 @@ CallWatcherFront.ENUM_METHODS[CallWatcherFront.CANVAS_WEBGL_CONTEXT] = {
|
|||
* For example, when gl.clear(gl.COLOR_BUFFER_BIT) is called, the actual passed
|
||||
* argument's value is 16384, which we want identified as "COLOR_BUFFER_BIT".
|
||||
*/
|
||||
var gEnumRegex = /^[A-Z_]+$/;
|
||||
var gEnumRegex = /^[A-Z][A-Z0-9_]+$/;
|
||||
var gEnumsLookupTable = {};
|
||||
|
||||
// These values are returned from errors, or empty values,
|
||||
|
|
Загрузка…
Ссылка в новой задаче