mirror of
https://github.com/google/pebble.git
synced 2025-05-29 14:33:12 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
16
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-001.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
{
|
||||
}
|
23
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-002.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-002.js
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2014-2015 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test ()
|
||||
{
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
assert (test ());
|
15
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-003.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
{;;}
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-004.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-004.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
{
|
||||
var a = null;
|
||||
;
|
||||
a = 'null';
|
||||
}
|
||||
|
||||
assert(a === 'null');
|
27
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-005.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/12/12.01/12.01-005.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
{
|
||||
{
|
||||
var a = null;
|
||||
;
|
||||
}
|
||||
{
|
||||
{
|
||||
}
|
||||
}
|
||||
a = 'null';
|
||||
}
|
||||
|
||||
assert(a === 'null');
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-001.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a;
|
||||
assert(a === undefined);
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-002.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-002.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 12345;
|
||||
assert(a === 12345);
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-003.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-003.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = null;
|
||||
assert(a === null);
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-004.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = undefined;
|
||||
|
||||
assert(a === undefined);
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-005.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-005.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "undefined";
|
||||
|
||||
assert(a === "undefined");
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-006.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-006.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 'undefined';
|
||||
|
||||
assert(a === "undefined");
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-007.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-007.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 'undefined';
|
||||
|
||||
assert(a === 'undefined');
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-008.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-008.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = false, b = true;
|
||||
|
||||
assert(a === false && b === true);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-009.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-009.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 1,
|
||||
b,
|
||||
c = 4;
|
||||
|
||||
b = a + c;
|
||||
|
||||
assert(b === 5);
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-010.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-010.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a, b = 3.14, c;
|
||||
|
||||
assert(a === undefined && b === 3.14 && c === undefined)
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-011.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-011.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a, b, c;
|
||||
|
||||
assert(a === undefined && b === undefined && c === undefined);
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-012.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-012.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var /*
|
||||
//
|
||||
*/
|
||||
_a1 = 2;
|
||||
|
||||
assert(_a1 === 2);
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-013.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-013.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var /*
|
||||
//
|
||||
*/
|
||||
_a$1 = 2;
|
||||
|
||||
assert(_a$1 === 2);
|
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-014.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-014.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var //
|
||||
//
|
||||
$a = 2;
|
||||
assert($a === 2);
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-015.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-015.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 12 + "abc";
|
||||
|
||||
assert(a === "12abc");
|
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-016.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-016.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = {};
|
||||
var b = typeof (a);
|
||||
|
||||
assert(b === "object" && b === typeof (Object()) && b === typeof ({}));
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-018.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-018.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = [];
|
||||
|
||||
assert(a instanceof Array && a.length === 0);
|
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-019.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-019.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var
|
||||
a = 2
|
||||
|
||||
assert(a === 2);
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-020.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-020.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = RegExp();
|
||||
|
||||
assert(a instanceof RegExp);
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-021.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-021.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = new Date();
|
||||
|
||||
assert(a instanceof Date);
|
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-022.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02-022.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 1;
|
||||
var b = a;
|
||||
|
||||
assert(a === b);
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02.01/12.02.01-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02.01/12.02.01-001.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var eval = 1;
|
||||
assert(eval === 1 && typeof (eval) === "number");
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02.01/12.02.01-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.02/12.02.01/12.02.01-002.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var arguments = 2;
|
||||
assert(arguments === 2 && typeof (arguments) === "number");
|
||||
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.03/12.03-001.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.03/12.03-001.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test()
|
||||
{
|
||||
;
|
||||
return 1;;;;;;
|
||||
}
|
||||
|
||||
test();
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.03/12.03-002.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.03/12.03-002.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test()
|
||||
{
|
||||
;;;;;;
|
||||
return 1
|
||||
}
|
||||
|
||||
test();
|
18
third_party/jerryscript/tests/jerry-test-suite/12/12.03/12.03-003.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/12/12.03/12.03-003.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a="ab;c"
|
||||
;
|
||||
;
|
||||
assert (a === 'ab;c');
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-001.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 5, b = 1;
|
||||
(a + b);
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-002.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-002.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 5, b = 1;
|
||||
a = a && b;
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-003.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-003.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a, b, c
|
||||
a = 2, b = 3, c = 4
|
17
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/12/12.04/12.04-004.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a
|
||||
a = function () {
|
||||
}
|
23
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-001.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-001.js
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test()
|
||||
{
|
||||
if (true) {
|
||||
return 1;
|
||||
}
|
||||
assert(false);
|
||||
}
|
||||
|
||||
test();
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-002.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-002.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test()
|
||||
{
|
||||
if (false) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
test();
|
25
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-003.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-003.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test()
|
||||
{
|
||||
if (true)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
assert(false);
|
||||
}
|
||||
|
||||
test();
|
24
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-004.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-004.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test()
|
||||
{
|
||||
if (false)
|
||||
assert(false);
|
||||
else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
test();
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-005.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-005.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function test()
|
||||
{
|
||||
if(true);
|
||||
}
|
||||
|
||||
test();
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-006.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-006.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 'w\0', b = 'w\0';
|
||||
assert(a === b);
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-007.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-007.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 1, b = 2;
|
||||
var c;
|
||||
if (a === 1)
|
||||
{
|
||||
if (b === 1)
|
||||
c = 3;
|
||||
}
|
||||
else
|
||||
if (b === 2)
|
||||
c = 5;
|
||||
else
|
||||
c = 7;
|
||||
|
||||
assert(c === undefined);
|
27
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-008.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/12/12.05/12.05-008.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 1, b = 2;
|
||||
var c;
|
||||
if (a === 1)
|
||||
if (b === 1)
|
||||
c = 3;
|
||||
else
|
||||
if (b === 2)
|
||||
c = 5;
|
||||
else
|
||||
c = 7;
|
||||
|
||||
assert(c === 5);
|
||||
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-001.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-001.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 1;
|
||||
do
|
||||
cnt++;
|
||||
while (cnt < 10);
|
||||
|
||||
assert(cnt === 10);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-002.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-002.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 1;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
if (cnt === 42) {
|
||||
break;
|
||||
}
|
||||
} while (true);
|
24
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-003.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-003.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 1;
|
||||
do {
|
||||
cnt++;
|
||||
|
||||
if (cnt === 10)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (0, 1);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-004.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-004.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var obj = new Object();
|
||||
obj.x = "defined";
|
||||
do
|
||||
{
|
||||
delete obj.x;
|
||||
}
|
||||
while (obj.x !== undefined);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-005.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-005.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var x = 1 / 3;
|
||||
do
|
||||
{
|
||||
x = 1;
|
||||
}
|
||||
while (x === 3 / 9);
|
||||
assert (x === 1);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-006.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-006.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 1;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while (false);
|
||||
|
||||
assert(cnt === 2);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-007.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-007.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 1;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while (!"string");
|
||||
|
||||
assert(cnt === 2);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-008.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-008.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 0;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while (!(cnt & 0x8000));
|
||||
|
||||
assert(cnt == 32768);
|
25
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-009.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-009.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 0;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while
|
||||
(cnt < 10
|
||||
);
|
||||
|
||||
assert(cnt === 10);
|
||||
|
32
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-010.js
vendored
Normal file
32
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-010.js
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 0;
|
||||
|
||||
function test()
|
||||
{
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
if (cnt === 8)
|
||||
return 1;
|
||||
}
|
||||
while (cnt < 10);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
var r = test();
|
||||
|
||||
assert(cnt === 8 && r === 1);
|
19
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-001.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-001.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 25;
|
||||
while (cnt)
|
||||
cnt--;
|
||||
|
||||
assert(cnt === 0);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-002.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-002.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 0;
|
||||
|
||||
while (1) {
|
||||
cnt++;
|
||||
if (cnt === 10)
|
||||
break;
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-003.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-003.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 0;
|
||||
while ((1234 - 34) % 23 - 1234 * 23.222)
|
||||
{
|
||||
cnt++;
|
||||
if (cnt === 10)
|
||||
break;
|
||||
}
|
||||
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-004.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-004.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 33;
|
||||
|
||||
while ("")
|
||||
cnt /= 2;
|
||||
|
||||
assert(cnt === 33);
|
23
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-005.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-005.js
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var bVal = true;
|
||||
var val = "test";
|
||||
|
||||
while (!bVal)
|
||||
{
|
||||
val += " of while";
|
||||
}
|
||||
|
||||
assert(val === "test");
|
23
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-006.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-006.js
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var bitField = 0x1000000;
|
||||
var cnt = 0;
|
||||
|
||||
while (bitField >>= 1)
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
|
||||
assert(cnt === 24);
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-007.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-007.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
|
||||
var bitField = 0x1000000;
|
||||
var cnt = 0;
|
||||
|
||||
while
|
||||
(
|
||||
bitField >>= 1 &&
|
||||
true
|
||||
)
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
|
||||
assert(cnt === 24);
|
30
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-008.js
vendored
Normal file
30
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.02/12.06.02-008.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 25;
|
||||
|
||||
function test()
|
||||
{
|
||||
while (cnt)
|
||||
{
|
||||
cnt--;
|
||||
if (cnt === 3)
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
r = test();
|
||||
|
||||
assert(cnt === 3 && r === 1);
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-001.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-001.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cnt = 1;
|
||||
|
||||
for (var i = 0; i < 10; i++)
|
||||
cnt++;
|
||||
|
||||
assert(cnt === 11 && i === 10);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-002.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-002.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var cond = 1.999;
|
||||
var cnt = 0;
|
||||
|
||||
for (; cond < 10.333; cond += 1.121)
|
||||
cnt++;
|
||||
|
||||
assert(cnt == 8);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-003.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-003.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var i;
|
||||
|
||||
for (i = 0; ; i += 5)
|
||||
{
|
||||
if (i === 100)
|
||||
break;
|
||||
}
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-004.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-004.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var i;
|
||||
|
||||
for (i = 1; i < 20; )
|
||||
i *= 2;
|
||||
|
||||
assert(i === 32);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-005.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-005.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var i = 0;
|
||||
for (; ; )
|
||||
{
|
||||
if (i++ === 100)
|
||||
break;
|
||||
}
|
||||
|
24
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-006.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-006.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
for (var i = 1; i <= 10; i++)
|
||||
{
|
||||
for (var j = 1; j <= 5; j++)
|
||||
{
|
||||
sum += i * j;
|
||||
}
|
||||
}
|
||||
|
||||
assert(sum === 825);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-007.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-007.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
for (var i = 1, j = 1, k = 1; i + j + k <= 100; i++, j += 2, k += 3)
|
||||
{
|
||||
sum += i + j + k;
|
||||
}
|
||||
|
||||
assert(sum == 867);
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-008.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-008.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 1;
|
||||
|
||||
for (var i = 0; i < 10; i++, sum *= i)
|
||||
;
|
||||
|
||||
assert(sum === 3628800);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-009.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-009.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var init;
|
||||
|
||||
for (init = (129 - 8) / 11; init != 11; )
|
||||
{
|
||||
init = 33;
|
||||
}
|
||||
|
||||
assert(init == 11);
|
27
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-010.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-010.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
for
|
||||
(
|
||||
var i = 0
|
||||
;
|
||||
i < 10
|
||||
;
|
||||
i++
|
||||
)
|
||||
{
|
||||
i++;
|
||||
}
|
||||
|
||||
assert(i == 10);
|
30
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-011.js
vendored
Normal file
30
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.03/12.06.03-011.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var i;
|
||||
|
||||
function test()
|
||||
{
|
||||
for (i = 0; i < 10; i++)
|
||||
{
|
||||
if (i === 4)
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
var r = test();
|
||||
|
||||
assert(r === 1 && i === 4);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-001.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-001.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {a: 1, b: 2, c: 3};
|
||||
|
||||
for (var p in o)
|
||||
{
|
||||
o[p] += 4;
|
||||
}
|
||||
|
||||
assert(o.a === 5 && o.b === 6 && o.c === 7);
|
25
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-002.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-002.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = new Array(1, 2, 3, 4, 5, 6, 7);
|
||||
a.eight = 8;
|
||||
|
||||
var p;
|
||||
for (p in a)
|
||||
{
|
||||
a[p] += 1;
|
||||
}
|
||||
|
||||
assert(a[0] === 2 && a[1] === 3 && a[2] === 4 && a[3] === 5 &&
|
||||
a[4] === 6 && a[5] === 7 && a[6] === 8 && a['eight'] === 9);
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-003.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-003.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = null;
|
||||
|
||||
for (var p in a)
|
||||
{
|
||||
assert(false);
|
||||
}
|
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-004.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-004.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a;
|
||||
|
||||
for (var p in a)
|
||||
{
|
||||
assert(false);
|
||||
}
|
31
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-005.js
vendored
Normal file
31
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-005.js
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
|
||||
var b = {basep: "base"};
|
||||
|
||||
function dConstr()
|
||||
{
|
||||
this.derivedp = "derived";
|
||||
}
|
||||
dConstr.prototype = b;
|
||||
|
||||
var d = new dConstr();
|
||||
|
||||
for (var p in d)
|
||||
{
|
||||
d[p] += "A";
|
||||
}
|
||||
|
||||
assert(d.basep === "baseA" && d.derivedp === "derivedA");
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-006.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-006.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {a: 1, b: 2, c: 3};
|
||||
|
||||
for
|
||||
(
|
||||
var
|
||||
p in o
|
||||
)
|
||||
{
|
||||
o[p] += 4;
|
||||
}
|
||||
|
||||
assert(o.a === 5 && o.b === 6 && o.c === 7);
|
32
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-007.js
vendored
Normal file
32
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.04/12.06.04-007.js
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {a: 1, b: 2, c: 3, d: 4, e: 5};
|
||||
|
||||
function test()
|
||||
{
|
||||
for (var p in o)
|
||||
{
|
||||
if (p === 'c')
|
||||
return 1;
|
||||
|
||||
o[p] += 4;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
var r = test();
|
||||
|
||||
assert(((o.a === 5 && o.b === 6 && o.c === 3) ||
|
||||
(o.c === 3 && o.d === 8 && o.e === 9)) && r === 1);
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-001.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-001.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
for (var i = 0; i < 10; i++)
|
||||
{
|
||||
if (i === 5)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
sum += i;
|
||||
}
|
||||
|
||||
assert(sum === 40);
|
25
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-002.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-002.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
for (var i = 0; i < 10; i++)
|
||||
for (var j = 0; j < 20; j++)
|
||||
{
|
||||
if (j > 9)
|
||||
continue;
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
|
||||
assert(sum === 100);
|
38
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-003.js
vendored
Normal file
38
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-003.js
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {p1: 1, p2: 2, p3: {p1: 100, p2: 200, p3: 100}, p4: 4, p5: 5}, sum = 0;
|
||||
|
||||
top:
|
||||
for (var p in o)
|
||||
{
|
||||
if (p === "p2")
|
||||
continue;
|
||||
|
||||
if (typeof (o[p]) === "object")
|
||||
{
|
||||
for (var pp in o[p])
|
||||
{
|
||||
if (pp === "p2")
|
||||
continue top;
|
||||
|
||||
sum += o[p][pp];
|
||||
}
|
||||
}
|
||||
|
||||
sum += 20;
|
||||
|
||||
}
|
||||
|
||||
assert(sum === 160);
|
25
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-004.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-004.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {a: 1, b: 2, c: 3};
|
||||
|
||||
ForLabel:
|
||||
for (var p in o)
|
||||
{
|
||||
if (p === "b")
|
||||
continue ForLabel;
|
||||
o[p] += 4;
|
||||
}
|
||||
|
||||
assert(o.a === 5 && o.b === 2 && o.c === 7);
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-005.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-005.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
|
||||
ForLabel:
|
||||
for (var i = 0; i < 10; i++)
|
||||
{
|
||||
if (i === 5)
|
||||
{
|
||||
continue ForLabel;
|
||||
}
|
||||
|
||||
sum += i;
|
||||
}
|
||||
|
||||
assert(sum === 40);
|
30
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-006.js
vendored
Normal file
30
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-006.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
top:
|
||||
for (var i = 0; i < 10; i++)
|
||||
{
|
||||
for (var j = 0; j < 20; j++)
|
||||
{
|
||||
if (j > 9 && i % 2)
|
||||
continue top;
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
|
||||
assert(sum === 155);
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-007.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-007.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var mask = 0xff0f;
|
||||
var numZeroes = 0;
|
||||
|
||||
while (mask)
|
||||
{
|
||||
mask >>= 1;
|
||||
|
||||
if (mask & 1)
|
||||
continue;
|
||||
|
||||
numZeroes++;
|
||||
}
|
||||
|
||||
assert(numZeroes === 5);
|
33
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-008.js
vendored
Normal file
33
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-008.js
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var i = 10;
|
||||
var cnt = 0;
|
||||
|
||||
while (i-- > 0)
|
||||
{
|
||||
if (i % 2)
|
||||
continue;
|
||||
|
||||
var j = 0;
|
||||
while (j++ < 20)
|
||||
{
|
||||
if (j % 2 === 0)
|
||||
continue;
|
||||
cnt++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
assert(cnt === 50);
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-009.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-009.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0, i = 0;
|
||||
|
||||
WhileLabel:
|
||||
while (++i < 10)
|
||||
{
|
||||
if (i === 5)
|
||||
{
|
||||
continue WhileLabel;
|
||||
}
|
||||
|
||||
sum += i;
|
||||
}
|
||||
|
||||
assert(sum === 40);
|
32
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-010.js
vendored
Normal file
32
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-010.js
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
var i = 0, j = 0;
|
||||
top:
|
||||
while (i++ < 10)
|
||||
{
|
||||
j = 0;
|
||||
while (j++ < 20)
|
||||
{
|
||||
if (j > 9 && i % 2)
|
||||
continue top;
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
|
||||
assert(sum === 150);
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-011.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-011.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var mask = 0xff0f;
|
||||
var numZeroes = 0;
|
||||
|
||||
do
|
||||
{
|
||||
mask >>= 1;
|
||||
|
||||
if (mask & 1)
|
||||
continue;
|
||||
|
||||
numZeroes++;
|
||||
} while (mask);
|
||||
|
||||
assert(numZeroes === 5);
|
34
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-012.js
vendored
Normal file
34
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-012.js
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var i = 10;
|
||||
var cnt = 0;
|
||||
|
||||
do
|
||||
{
|
||||
if (i % 2)
|
||||
continue;
|
||||
|
||||
var j = 0;
|
||||
do
|
||||
{
|
||||
if (j % 2 === 0)
|
||||
continue;
|
||||
cnt++;
|
||||
}
|
||||
while (j++ < 20)
|
||||
}
|
||||
while (i-- > 0);
|
||||
|
||||
assert(cnt === 60);
|
29
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-013.js
vendored
Normal file
29
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-013.js
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0, i = 0;
|
||||
|
||||
DoWhileLabel:
|
||||
do
|
||||
{
|
||||
if (i === 5)
|
||||
{
|
||||
continue DoWhileLabel;
|
||||
}
|
||||
|
||||
sum += i;
|
||||
}
|
||||
while (++i < 10);
|
||||
|
||||
assert(sum === 40);
|
35
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-014.js
vendored
Normal file
35
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-014.js
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
var i = 0, j = 0;
|
||||
top:
|
||||
do
|
||||
{
|
||||
j = 0;
|
||||
|
||||
do
|
||||
{
|
||||
if (j > 9 && i % 2)
|
||||
continue top;
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
while (j++ < 20);
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
while (i++ < 10);
|
||||
|
||||
assert(sum === 182);
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-015.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-015.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {p1: 1, p2: 2, p3: 3, p4: 4, p5: 5}, sum = 0;
|
||||
for (var p in o)
|
||||
{
|
||||
if (p == "p3")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
sum += o[p];
|
||||
}
|
||||
|
||||
assert(sum == 12)
|
36
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-016.js
vendored
Normal file
36
third_party/jerryscript/tests/jerry-test-suite/12/12.07/12.07-016.js
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {p1: 1, p2: 2, p3: {p1: 100, p2: 200}, p4: 4, p5: 5}, sum = 0;
|
||||
for (var p in o)
|
||||
{
|
||||
if (p === "p2")
|
||||
continue;
|
||||
|
||||
if (typeof (o[p]) === "object")
|
||||
{
|
||||
for (var pp in o[p])
|
||||
{
|
||||
if (pp === "p2")
|
||||
continue;
|
||||
|
||||
sum += o[p][pp];
|
||||
}
|
||||
}
|
||||
else {
|
||||
sum += o[p];
|
||||
}
|
||||
}
|
||||
|
||||
assert(sum === 110);
|
47
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-001.js
vendored
Normal file
47
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-001.js
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {p1: 1,
|
||||
p2: {p1: 100, p2: 200, p3: 100},
|
||||
p3: 4,
|
||||
p4: 7,
|
||||
p5: 124686,
|
||||
p6: {p1: 100, p2: 200, p3: 100},
|
||||
p7: 1},
|
||||
sum = 0;
|
||||
|
||||
|
||||
for (var p in o)
|
||||
{
|
||||
if (p === "p4")
|
||||
break;
|
||||
|
||||
if (typeof (o[p]) === "object")
|
||||
{
|
||||
top:
|
||||
for (var pp in o[p])
|
||||
{
|
||||
if (pp === "p2")
|
||||
break top;
|
||||
|
||||
sum += o[p][pp];
|
||||
}
|
||||
}
|
||||
|
||||
sum += 20;
|
||||
|
||||
}
|
||||
|
||||
assert(sum === 160);
|
||||
|
45
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-002.js
vendored
Normal file
45
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-002.js
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var o = {p1: 1,
|
||||
p2: {p1: 100, p2: 200, p3: 100},
|
||||
p3: 4,
|
||||
p4: 7,
|
||||
p5: 124686,
|
||||
p6: {p1: 100, p2: 200, p3: 100},
|
||||
p7: 1},
|
||||
sum = 0;
|
||||
|
||||
for (var p in o)
|
||||
{
|
||||
if (p === "p4")
|
||||
break;
|
||||
|
||||
if (typeof (o[p]) === "object")
|
||||
{
|
||||
for (var pp in o[p])
|
||||
{
|
||||
if (pp === "p2")
|
||||
break;
|
||||
|
||||
sum += o[p][pp];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sum += 20;
|
||||
}
|
||||
}
|
||||
|
||||
assert(sum === 140);
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-003.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-003.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
for (var i = 0; i < 10; i++)
|
||||
{
|
||||
if (i === 5)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
sum += i;
|
||||
}
|
||||
|
||||
assert(sum === 10);
|
30
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-004.js
vendored
Normal file
30
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-004.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function main()
|
||||
{
|
||||
var sum = 0;
|
||||
for (var i = 0; i < 10; i++)
|
||||
for (var j = 0; j < 20; j++)
|
||||
{
|
||||
if (j === 10)
|
||||
break;
|
||||
|
||||
sum += 1;
|
||||
}
|
||||
|
||||
assert(sum === 100);
|
||||
}
|
||||
|
||||
main ();
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-005.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.08/12.08-005.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var sum = 0;
|
||||
|
||||
ForLabel:
|
||||
for (var i = 0; i < 10; i++)
|
||||
{
|
||||
if (i === 5)
|
||||
{
|
||||
break ForLabel;
|
||||
}
|
||||
|
||||
sum += i;
|
||||
}
|
||||
|
||||
assert(sum === 10);
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue