ruffle/core/tests/swfs/avm2
David Wendt f88f2e225a Add tests for `>`, `<`, `<=`, and `>=`.
Note that this does NOT completely test the full range of if instructions for abstract relational comparison. Notably, the Adobe Animate CC compiler compiles each operator into it's negated equivalent, e.g. `<` becomes `ifnlt`.

I do not know how to get it to emit `ifge` or the like, which differ only by how they handle `NaN`s.
2020-08-10 16:38:04 -07:00
..
boolean_negation Implement and test `not`. 2020-08-10 16:38:04 -07:00
class_enumeration Add `as3_object_enumeration` and `as3_class_enumeration` tests. 2020-07-13 17:44:33 -04:00
class_methods Add a test for various types of class methods. 2020-07-13 17:44:19 -04:00
class_to_locale_string Implement and test `toLocaleString`. 2020-07-13 17:44:57 -04:00
class_to_string Add tests for `toString` on objects, functions, and classes. 2020-07-13 17:44:54 -04:00
class_value_of Add tests for `valueOf`. 2020-07-13 17:44:58 -04:00
coerce_string Test for `coerce_s`. 2020-08-10 16:38:04 -07:00
coerce_string_precision Test for `coerce_s`. 2020-08-10 16:38:04 -07:00
constructor_call Add (currently failing) test for constructors. 2020-07-13 17:44:14 -04:00
control_flow_bool Add tests for control flow instructions that use booleans or strict equality. 2020-07-13 17:44:30 -04:00
control_flow_stricteq Add tests for control flow instructions that use booleans or strict equality. 2020-07-13 17:44:30 -04:00
convert_boolean Implement and test for `convert_b`. 2020-08-10 16:38:04 -07:00
convert_integer Add & test ECMA-262 ToInt32 and `convert_i` opcode. 2020-08-10 16:38:04 -07:00
convert_number Add a test for all the above numerical coercions. 2020-08-10 16:38:04 -07:00
convert_uinteger Add and test for `convert_u` using `ToUint32` from ECMA-262 2020-08-10 16:38:04 -07:00
equals Implement and test `equals`. 2020-08-10 16:38:04 -07:00
es3_inheritance Add a test for legacy / ES3 inheritance. 2020-07-13 17:44:56 -04:00
es4_inheritance Since we have an `es3_inheritance` test now, rename the existing inheritance test to `es4_inheritance`. 2020-07-13 17:44:57 -04:00
es4_interfaces Add a test for loading interfaces into the AVM2. 2020-07-13 17:45:07 -04:00
es4_method_binding Add a test for ES4 method binding of `this`. 2020-07-13 17:44:29 -04:00
es4_oop_prototypes Add a test for interactions between prototype and class-trait properties. 2020-07-13 17:44:27 -04:00
falsiness Oh look, I figured out how to emit `istrue`, so that's tested, too. 2020-08-10 16:38:04 -07:00
function_call Add a basic test for function calls. 2020-07-13 17:44:13 -04:00
function_call_via_call Add test of `Function.prototype.call` 2020-07-13 17:44:56 -04:00
function_to_locale_string Implement and test `toLocaleString`. 2020-07-13 17:44:57 -04:00
function_to_string Add tests for `toString` on objects, functions, and classes. 2020-07-13 17:44:54 -04:00
function_value_of Add tests for `valueOf`. 2020-07-13 17:44:58 -04:00
has_own_property Add a test for `has_own_property` in various class instance scenarios. 2020-07-13 17:44:35 -04:00
hello_world Add our first AVM2 regression test: hello world! 2020-07-13 17:44:09 -04:00
if_eq Test for `iseq` and `isne` 2020-08-10 16:38:04 -07:00
if_gt Add tests for `>`, `<`, `<=`, and `>=`. 2020-08-10 16:38:04 -07:00
if_gte Add tests for `>`, `<`, `<=`, and `>=`. 2020-08-10 16:38:04 -07:00
if_lt Add tests for `>`, `<`, `<=`, and `>=`. 2020-08-10 16:38:04 -07:00
if_lte Add tests for `>`, `<`, `<=`, and `>=`. 2020-08-10 16:38:04 -07:00
if_ne Test for `iseq` and `isne` 2020-08-10 16:38:04 -07:00
if_stricteq Add tests for `ifstricteq`, `ifstrictne`, and `strictequals`. 2020-07-13 17:44:59 -04:00
if_strictne Add tests for `ifstricteq`, `ifstrictne`, and `strictequals`. 2020-07-13 17:44:59 -04:00
instanceof Add tests for `instanceof` and `is` operators. 2020-07-13 17:45:10 -04:00
is_prototype_of Actually enable the `isPrototypeOf` test. 2020-07-13 17:44:34 -04:00
istype Add tests for `instanceof` and `is` operators. 2020-07-13 17:45:10 -04:00
object_enumeration Add `as3_object_enumeration` and `as3_class_enumeration` tests. 2020-07-13 17:44:33 -04:00
object_to_locale_string Implement and test `toLocaleString`. 2020-07-13 17:44:57 -04:00
object_to_string Add tests for `toString` on objects, functions, and classes. 2020-07-13 17:44:54 -04:00
object_value_of Add tests for `valueOf`. 2020-07-13 17:44:58 -04:00
property_is_enumerable Add a test for `propertyIsEnumerable`. 2020-07-13 17:44:37 -04:00
set_property_is_enumerable Add test for `setPropertyIsEnumerable` 2020-07-13 17:44:39 -04:00
stored_properties Add a test for stored properties as well. 2020-07-13 17:44:24 -04:00
strict_equality Add tests for `ifstricteq`, `ifstrictne`, and `strictequals`. 2020-07-13 17:44:59 -04:00
truthiness Add test for truthiness. 2020-08-10 16:38:04 -07:00
virtual_properties Add test of AVM2 virtual properties. 2020-07-13 17:44:24 -04:00